/* ==========================================================================
   National Film Awards Explorer Styling
   India's most prestigious government-sponsored film awards
   ========================================================================== */

.nfa-page-body {
    background-color: var(--bg-primary, #0B0F19);
    color: var(--text-primary, #E2E8F0);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.nfa-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

/* --- Hero Banner --- */
.nfa-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(40, 18, 60, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.nfa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF9933 0%, #D4AF37 50%, #138808 100%);
}

.nfa-kicker {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.15);
    color: #FCD34D;
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.nfa-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-heading, #F8FAFC);
    margin: 0 0 12px;
}

.nfa-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary, #94A3B8);
    max-width: 850px;
    margin: 0 auto 24px;
}

.nfa-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.nfa-hero-stat {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.nfa-hero-stat strong {
    font-size: 1.6rem;
    color: #D4AF37;
    display: block;
}

.nfa-hero-stat span {
    font-size: 0.82rem;
    color: #94A3B8;
    text-transform: uppercase;
}

/* --- Navigation Tabs --- */
.nfa-nav-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nfa-tab {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary, #94A3B8);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nfa-tab:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #FCD34D;
    border-color: #D4AF37;
}

.nfa-tab.active {
    background: linear-gradient(135deg, #7C3AED 0%, #D4AF37 100%);
    color: #FFFFFF;
    border-color: #D4AF37;
}

/* --- Content Sections --- */
.nfa-section {
    display: none;
    animation: nfaFadeIn 0.3s ease;
}

.nfa-section.active {
    display: block;
}

@keyframes nfaFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nfa-content-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nfa-content-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 24px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 12px;
}

.nfa-content {
    color: var(--text-secondary, #94A3B8);
}

.nfa-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.nfa-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4AF37;
    margin: 24px 0 12px;
}

.nfa-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #F8FAFC;
    margin: 16px 0 8px;
}

.nfa-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.nfa-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.nfa-content strong {
    color: #F8FAFC;
}

.nfa-content em {
    color: #FCD34D;
    font-style: italic;
}

/* --- Category Grid --- */
.nfa-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.nfa-category-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nfa-category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nfa-category-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.nfa-category-item h3 {
    font-size: 1.15rem;
    color: #F8FAFC;
    margin: 0 0 12px;
}

.nfa-category-item p {
    font-size: 0.92rem;
    margin: 0;
}

/* --- Tables --- */
.nfa-table-wrap {
    margin: 24px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
}

.nfa-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.nfa-table thead th {
    position: sticky;
    top: 0;
    background: #1E293B;
    color: #D4AF37;
    text-align: left;
    padding: 14px 20px;
    font-weight: 700;
    border-bottom: 2px solid rgba(212, 175, 55, 0.4);
}

.nfa-table tbody td {
    padding: 11px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #94A3B8);
}

.nfa-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.5);
}

.nfa-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.12);
}

.nfa-table tbody tr td:first-child {
    color: #D4AF37;
    font-weight: 600;
}

/* --- Acting Grid --- */
.nfa-acting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.nfa-acting-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nfa-acting-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nfa-acting-item h3 {
    font-size: 1.15rem;
    color: #D4AF37;
    margin: 0 0 12px;
}

.nfa-acting-item p {
    font-size: 0.92rem;
    margin: 0;
}

/* --- Technical Awards Grid --- */
.nfa-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.nfa-tech-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nfa-tech-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.nfa-tech-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.nfa-tech-item h3 {
    font-size: 1.1rem;
    color: #D4AF37;
    margin: 0 0 12px;
}

.nfa-tech-item p {
    font-size: 0.92rem;
    margin: 0;
}

/* --- Selection Steps --- */
.nfa-selection-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
}

.nfa-selection-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.nfa-step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #7C3AED 0%, #D4AF37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #0B0F19;
}

.nfa-selection-step h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.nfa-selection-step p {
    margin: 0;
    font-size: 0.92rem;
}

.nfa-evaluation {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.nfa-evaluation h3 {
    margin: 0 0 16px;
    color: #D4AF37;
}

.nfa-evaluation ul {
    margin: 0;
    padding-left: 20px;
}

.nfa-evaluation li {
    margin-bottom: 10px;
}

/* --- Timeline --- */
.nfa-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 24px 0;
    position: relative;
}

.nfa-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #FF9933 0%, #D4AF37 50%, #138808 100%);
}

.nfa-timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    position: relative;
}

.nfa-timeline-year {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7C3AED 0%, #D4AF37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0B0F19;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-align: center;
}

.nfa-timeline-content {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
}

.nfa-timeline-content h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    color: #F8FAFC;
}

.nfa-timeline-content p {
    margin: 0;
    font-size: 0.92rem;
}

/* --- Notable Winners Grid --- */
.nfa-winner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.nfa-winner-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.nfa-winner-item:hover {
    transform: translateY(-4px);
}

.nfa-winner-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.nfa-winner-item h3 {
    font-size: 1.1rem;
    color: #D4AF37;
    margin: 0 0 12px;
}

.nfa-winner-item p {
    font-size: 0.92rem;
    margin: 0;
}

/* --- Gallery --- */
.nfa-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.nfa-gallery-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.nfa-gallery-item:hover {
    transform: scale(1.02);
}

.nfa-gallery-placeholder {
    font-size: 4rem;
    margin-bottom: 12px;
}

.nfa-gallery-item h3 {
    font-size: 1.1rem;
    color: #F8FAFC;
    margin: 0 0 8px;
}

.nfa-gallery-item p {
    font-size: 0.88rem;
    margin: 0;
}

/* --- Notes --- */
.nfa-note {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.nfa-note h3 {
    margin: 0 0 16px;
    color: #D4AF37;
}

.nfa-note p {
    margin: 0;
}

.nfa-note ul {
    margin: 0;
    padding-left: 20px;
}

/* --- Footer --- */
.nfa-footer {
    text-align: center;
    padding: 30px;
    font-size: 0.88rem;
    color: #64748B;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
}

.nfa-footer a {
    color: #FF9933;
    text-decoration: none;
}

.nfa-footer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nfa-hero h1 {
        font-size: 2rem;
    }

    .nfa-hero p {
        font-size: 1rem;
    }

    .nfa-content-card {
        padding: 20px;
    }

    .nfa-nav-tabs {
        gap: 8px;
    }

    .nfa-tab {
        padding: 8px 14px;
        font-size: 0.83rem;
    }

    .nfa-category-grid,
    .nfa-acting-grid,
    .nfa-tech-grid,
    .nfa-winner-grid,
    .nfa-gallery {
        grid-template-columns: 1fr;
    }

    .nfa-selection-step {
        flex-direction: column;
        gap: 12px;
    }

    .nfa-timeline::before {
        left: 30px;
    }

    .nfa-timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.7rem;
    }

    .nfa-timeline-item {
        flex-direction: column;
        gap: 12px;
    }

    .nfa-table thead th,
    .nfa-table tbody td {
        padding: 10px 14px;
    }
}

/* --- Light Theme Support --- */
.light-theme .nfa-page-body {
    background-color: #F8FAFC;
    color: #1E293B;
}

.light-theme .nfa-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 245, 255, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

.light-theme .nfa-hero h1 {
    color: #1E293B;
}

.light-theme .nfa-hero p {
    color: #64748B;
}

.light-theme .nfa-hero-stat {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .nfa-hero-stat span {
    color: #64748B;
}

.light-theme .nfa-kicker {
    background: rgba(212, 175, 55, 0.15);
    color: #92600A;
}

.light-theme .nfa-content-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .nfa-content-card h2 {
    color: #1E293B;
}

.light-theme .nfa-content {
    color: #475569;
}

.light-theme .nfa-content h3 {
    color: #B8860B;
}

.light-theme .nfa-content h4 {
    color: #1E293B;
}

.light-theme .nfa-content strong {
    color: #1E293B;
}

.light-theme .nfa-content em {
    color: #92600A;
}

.light-theme .nfa-nav-tabs {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .nfa-tab {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
    color: #64748B;
}

.light-theme .nfa-tab.active {
    background: linear-gradient(135deg, #7C3AED 0%, #D4AF37 100%);
    color: #FFFFFF;
}

.light-theme .nfa-category-item,
.light-theme .nfa-acting-item,
.light-theme .nfa-tech-item,
.light-theme .nfa-winner-item,
.light-theme .nfa-gallery-item,
.light-theme .nfa-timeline-content {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .nfa-category-item h3,
.light-theme .nfa-tech-item h3,
.light-theme .nfa-winner-item h3,
.light-theme .nfa-gallery-item h3,
.light-theme .nfa-timeline-content h3 {
    color: #1E293B;
}

.light-theme .nfa-evaluation,
.light-theme .nfa-note {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(184, 134, 11, 0.3);
}

.light-theme .nfa-table thead th {
    background: #F1F5F9;
    color: #B8860B;
    border-bottom: 2px solid rgba(184, 134, 11, 0.4);
}

.light-theme .nfa-table tbody td {
    color: #475569;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.light-theme .nfa-table tbody tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.8);
}

.light-theme .nfa-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.15);
}

.light-theme .nfa-table tbody tr td:first-child {
    color: #B8860B;
}
