/* ==========================================================================
   National Bal Shree Award Explorer Styling
   Creative Talent Recognition for Children
   ========================================================================== */

.bal-shree-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;
}

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

/* --- Hero Banner --- */
.bal-shree-hero {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(30, 20, 50, 0.9) 100%);
    border: 1px solid rgba(255, 153, 51, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

.bal-shree-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;
}

.bal-shree-hero-stat strong {
    font-size: 1.8rem;
    color: #FF9933;
    display: block;
}

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

/* --- Navigation Tabs --- */
.bal-shree-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);
}

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

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

.bal-shree-tab.active {
    background: #FF9933;
    color: #0B0F19;
    border-color: #FF9933;
}

/* --- Content Sections --- */
.bal-shree-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.bal-shree-section.active {
    display: block;
}

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

.bal-shree-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);
}

.bal-shree-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.3);
    padding-bottom: 12px;
}

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

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

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

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

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

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

.bal-shree-content strong {
    color: #F8FAFC;
}

/* --- Eligibility Grid --- */
.eligibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

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

.eligibility-item h3 {
    font-size: 1.1rem;
    color: #D4AF37;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* --- Categories Grid --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

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

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

.category-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

.category-card h3 {
    font-size: 1.3rem;
    color: #F8FAFC;
    margin: 0 0 12px;
    text-align: center;
}

.category-card p {
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.category-card ul {
    margin: 0;
    padding-left: 20px;
}

.category-card li {
    font-size: 0.88rem;
    margin-bottom: 6px;
}

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

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

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

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

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

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

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

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

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

/* --- Fields Accordion --- */
.fields-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.field-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.field-item h3 {
    margin: 0;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #F8FAFC;
}

.field-item h3:hover {
    background: rgba(212, 175, 55, 0.15);
}

.field-details {
    padding: 0 20px 20px;
    display: none;
}

.field-item.active .field-details {
    display: block;
}

.field-item.active h3 {
    background: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

.field-details p {
    margin: 12px 0;
}

.field-details ul {
    margin: 8px 0;
}

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

.winner-card {
    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;
}

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

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

.winner-card h3 {
    font-size: 1.1rem;
    color: #F8FAFC;
    margin: 0 0 4px;
}

.winner-year {
    font-size: 0.85rem;
    color: #D4AF37;
    margin: 0 0 12px;
    font-weight: 600;
}

.winner-card p {
    font-size: 0.88rem;
    margin: 0;
}

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

.notable-alumni h3 {
    margin: 0 0 16px;
    color: #D4AF37;
}

.notable-alumni ul {
    margin: 0;
    padding-left: 20px;
}

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

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

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

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

.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;
}

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

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

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

.annual-cycle h3 {
    margin: 0 0 16px;
    color: #D4AF37;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.cycle-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
}

.cycle-item h4 {
    margin: 0 0 8px;
    color: #FF9933;
    font-size: 0.95rem;
}

.cycle-item p {
    margin: 0;
    font-size: 0.85rem;
}

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

.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;
}

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

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

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

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

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

.media-highlights h3 {
    margin: 0 0 16px;
    color: #D4AF37;
}

.media-highlights ul {
    margin: 0;
    padding-left: 20px;
}

/* --- Footer --- */
.bal-shree-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;
}

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

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .bal-shree-hero h1 {
        font-size: 2rem;
    }
    
    .bal-shree-hero p {
        font-size: 1rem;
    }
    
    .bal-shree-content-card {
        padding: 20px;
    }
    
    .bal-shree-nav-tabs {
        gap: 8px;
    }
    
    .bal-shree-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .eligibility-grid,
    .categories-grid,
    .winners-gallery,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .selection-step {
        flex-direction: column;
        gap: 12px;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .cycle-grid {
        grid-template-columns: 1fr;
    }
}

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

.light-theme .bal-shree-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    border-color: rgba(255, 153, 51, 0.3);
}

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

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

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

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

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

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

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

.light-theme .bal-shree-content h3 {
    color: #D4AF37;
}

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

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

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

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

.light-theme .bal-shree-tab.active {
    background: #FF9933;
    color: #FFFFFF;
}

.light-theme .eligibility-item,
.light-theme .category-card,
.light-theme .field-item,
.light-theme .winner-card,
.light-theme .timeline-content,
.light-theme .cycle-item,
.light-theme .gallery-item {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

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

.light-theme .evaluation-criteria,
.light-theme .notable-alumni,
.light-theme .annual-cycle,
.light-theme .media-highlights {
    background: rgba(241, 245, 249, 0.8);
    border-color: rgba(212, 175, 55, 0.3);
}
