/* ==========================================================
   FESTIVAL DATES PAGE â€” festival-dates.css
   Builds on: css/style.css  +  css/activities.css
   Uses only the tokens established in style.css :root,
   plus one festival-specific gold accent.
   ========================================================== */

/* ----------------------------------------------------------
   Footer brand description paragraph
   ---------------------------------------------------------- */
.footer-brand-desc {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ----------------------------------------------------------
   Hero Section
   ---------------------------------------------------------- */
.festival-hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height, 80px);
}

.festival-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.6);
}

.festival-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 31, 78, 0.4), rgba(13, 31, 78, 0.85));
    z-index: 1;
}

.festival-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 720px;
    margin: 0 auto;
}



/* Page Title */
.festival-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 16px;
    animation: fd-fadeInUp 0.9s ease-out both;
}

/* Sub-text */
.festival-hero-sub {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
    animation: fd-fadeInUp 1s ease-out both;
}

/* Year Switcher */
.year-switcher {
    display: inline-flex;
    gap: 12px;
    animation: fd-fadeInUp 1.1s ease-out both;
}

.year-btn {
    padding: 10px 30px;
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1.5px solid var(--glass-border);
    color: var(--text-white);
    background: var(--glass-bg);
    backdrop-filter: var(--blur-standard);
}

.year-btn.active,
.year-btn:hover {
    background: var(--bg-body);
    border-color: var(--text-white);
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 174, 43, 0.3);
}

/* ----------------------------------------------------------
   Table Section
   ---------------------------------------------------------- */
.festival-table-section {
    padding: 60px 0 80px;
    background: var(--bg-deep);
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------
   Search Bar
   ---------------------------------------------------------- */
.festival-search-wrapper {
    max-width: 500px;
    margin: 0 auto 50px;
    position: relative;
}

.festival-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.88rem;
    pointer-events: none;
    opacity: 0.5;
}

.festival-search-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 14px 22px 14px 50px;
    color: var(--text-white);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.festival-search-input::placeholder {
    color: var(--text-light);
    opacity: 0.45;
}

.festival-search-input:focus {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

/* Count note */
.festivals-count-note {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: 0.83rem;
    color: var(--text-light);
    opacity: 0.6;
    margin-bottom: 36px;
    letter-spacing: 0.4px;
}

/* ----------------------------------------------------------
   Table
   ---------------------------------------------------------- */
.festival-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.festival-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-family: var(--font-secondary);
}

/* Head row */
.festival-table thead tr {
    background: var(--bg-body);
}

.festival-table thead th {
    padding: 18px 24px;
    text-align: left;
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--bg-deep);
    white-space: nowrap;
}

/* Body rows */
.festival-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
    transition: background 0.25s ease;
}

.festival-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.festival-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
}

/* Hidden rows (search filter) */
.festival-table tbody tr.fd-hidden {
    display: none;
}

/* Cells */
.festival-table td {
    padding: 15px 24px;
    font-size: 0.91rem;
    color: var(--text-light);
    vertical-align: middle;
}

.festival-table td:first-child {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.93rem;
}

/* ----------------------------------------------------------
   Month Separator Rows
   ---------------------------------------------------------- */
.month-header-row td {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-family: var(--font-accent);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 9px 24px;
    border-top: 1px solid var(--glass-border);
}

/* ----------------------------------------------------------
   Icon Cells
   ---------------------------------------------------------- */
.td-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-location i {
    color: var(--text-white);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.td-date {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.td-date i {
    color: var(--text-white);
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* Empty date placeholder */
.date-empty {
    color: var(--text-light);
    opacity: 0.35;
    font-style: italic;
    font-size: 0.82rem;
}

/* ----------------------------------------------------------
   No Results Row
   ---------------------------------------------------------- */
.no-results-row {
    display: none;
}

.no-results-row.fd-visible {
    display: table-row;
}

.no-results-row td {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-light);
    opacity: 0.5;
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.no-results-row td i,
.fd-no-results-icon {
    color: var(--text-white);
    margin-right: 8px;
}

/* ----------------------------------------------------------
   Note Block
   ---------------------------------------------------------- */
.festival-note {
    margin-top: 38px;
    padding: 20px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--text-white);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-secondary);
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.75;
}

.festival-note strong {
    color: var(--text-white);
    font-weight: 600;
}

/* ----------------------------------------------------------
   PDF Download Button
   ---------------------------------------------------------- */
.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 12px 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-white);
    font-family: var(--font-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.pdf-download-btn:hover {
    background: var(--bg-deep);
    border-color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.pdf-download-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */
@keyframes fd-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fd-fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .festival-table-section {
        padding: 60px 0 90px;
    }
}

@media (max-width: 768px) {
    .festival-hero {
        height: 100vh;
        min-height: 480px;
    }

    .festival-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.6rem);
    }

    .festival-hero-sub {
        font-size: 0.92rem;
    }

    .festival-table td,
    .festival-table thead th {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    .festival-table td:first-child {
        font-size: 0.84rem;
    }

    .year-btn {
        padding: 9px 22px;
        font-size: 0.8rem;
    }

    .festival-note {
        padding: 16px 20px;
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .year-switcher {
        gap: 8px;
    }

    .year-btn {
        padding: 8px 18px;
        font-size: 0.77rem;
    }

    .festival-table-wrapper {
        border-radius: 10px;
    }

    .pdf-download-btn {
        font-size: 0.7rem;
        padding: 10px 22px;
    }
}
