/* ReconstructionUSA Frontend Styles */

.recon-links-page {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.recon-link-button {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.recon-link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.recon-link-button a {
    text-decoration: none !important;
    display: block;
    padding: 20px;
    transition: opacity 0.2s ease;
}

.recon-link-button a:hover {
    opacity: 0.95;
}

.recon-link-button h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: inherit;
}

.recon-link-button p {
    margin: 0;
    color: inherit;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Events Preview */
.recon-events-preview {
    display: grid;
    gap: 20px;
}

.recon-event-item {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 6px;
    background: #f9f9f9;
    transition: box-shadow 0.2s ease;
}

.recon-event-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recon-event-item h4 {
    margin-bottom: 8px;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.recon-event-date {
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.recon-event-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.recon-event-link {
    display: inline-block;
    background: #0073aa;
    color: white !important;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.recon-event-link:hover {
    background: #005a87;
    text-decoration: none;
}

/* Responsive Design */
@media (min-width: 768px) {
    .recon-links-page {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 767px) {
    .recon-link-button a {
        padding: 15px;
    }
    
    .recon-link-button h3 {
        font-size: 1.1rem;
    }
    
    .recon-event-item {
        padding: 12px;
    }
}

/* Loading States */
.recon-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.recon-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: recon-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes recon-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error States */
.recon-error {
    background: #fff2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

.recon-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
}

/* Accessibility */
.recon-link-button a:focus,
.recon-event-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}