/* --- Color Variables & Basic Setup --- */
:root {
    --primary-color: #e50914;
    --primary-hover: #b2070f;
    --background-dark: #141414;
    --background-light: #f4f4f4;
    --text-dark: #141414;
    --text-light: #f4f4f4;
    --card-bg-dark: #333;
    --card-text-dark: #aaa;
    --border-color: #e50914;

    /* Semantic variables for easy switching */
    --c-bg: var(--background-dark);
    --c-text: var(--text-light);
    --c-card-bg: var(--card-bg-dark);
    --c-card-subtext: var(--card-text-dark);
    --c-logo: var(--text-light);
    --c-header-bg: rgba(20, 20, 20, 0.8);
    --c-footer-bg: var(--card-bg-dark);
}

body.light-mode {
    --c-bg: var(--background-light);
    --c-text: var(--text-dark);
    --c-card-bg: #ffffff;
    --c-card-subtext: #555;
    --c-logo: var(--text-dark);
    --c-header-bg: rgba(255, 255, 255, 0.8);
    --c-footer-bg: #e9e9e9;
}


/* --- Global & Reset Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Prevents fixed header from covering anchor link targets */
    scroll-padding-top: 100px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

.section-padding {
    padding: 60px 0;
}

.bg-grey {
    background-color: var(--c-card-bg);
    transition: background-color 0.3s ease;
}

.text-center {
    text-align: center;
}


/* --- Header & Navigation --- */
header {
    background-color: var(--c-header-bg);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
    transition: background-color 0.3s ease;
    height: 100px;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    color: var(--c-logo);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    transition: color 0.3s ease;
}
header .logo:hover {
    color: var(--primary-color);
}

.nav-wrapper {
    display: flex;
    align-items: center;
}

/* Desktop Navigation Styles */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu nav ul {
    display: flex;
    list-style: none;
}

.nav-menu nav ul li a {
    color: var(--c-text);
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-menu nav ul li a:hover {
    color: var(--primary-color);
}

/* Hamburger button is hidden on desktop */
.hamburger {
    display: none;
}


/* --- Theme Switch Slider --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    pointer-events: none;
}

.slider-icons svg {
    width: 18px;
    height: 18px;
    transition: opacity 0.4s ease;
}

.slider-icons .sun-icon {
    color: #f1c40f;
    opacity: 0;
}

.slider-icons .moon-icon {
    color: white;
    opacity: 1;
}

input:checked + .slider .slider-icons .sun-icon {
    opacity: 1;
}

input:checked + .slider .slider-icons .moon-icon {
    opacity: 0;
}


/* --- Mobile Navigation (Hamburger Menu) --- */
@media (max-width: 820px) {
    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
    }
    .hamburger-bar {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--c-text);
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }
    .hamburger-bar:nth-child(1) { top: 0; }
    .hamburger-bar:nth-child(2) { top: 9px; }
    .hamburger-bar:nth-child(3) { bottom: 0; }
    .hamburger.active .hamburger-bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active .hamburger-bar:nth-child(2) { opacity: 0; }
    .hamburger.active .hamburger-bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Start off-screen */
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--c-card-bg);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-menu nav ul {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .nav-menu nav ul li a {
        font-size: 1.5rem;
        padding: 1rem;
    }
}


/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hero-background.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 120px 20px 40px 20px;
}
.hero-content h1 {
    font-size: 6rem;
    line-height: 1;
}
.hero-content .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}


/* --- Countdown Timer --- */
#countdown-container { margin-top: 2rem; color: #fff; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
#countdown-container h2 { font-size: 2rem; letter-spacing: 1px; font-family: var(--font-body); font-weight: 400; }
.countdown { display: flex; justify-content: center; gap: 20px; margin-top: 1rem; flex-wrap: wrap; }
.countdown-item { position: relative; width: 110px; height: 110px; text-align: center; }
.countdown-svg { position: absolute; top: 0; left: 0; width: 110px; height: 110px; transform: rotateY(-180deg) rotateZ(-90deg); }
.countdown-svg circle { stroke-width: 8px; fill: none; }
.countdown-svg circle:first-of-type { stroke: rgba(255, 255, 255, 0.2); }
.countdown-svg circle:last-of-type { stroke: var(--primary-color); stroke-linecap: round; stroke-dasharray: 314.159; transition: stroke-dashoffset 1s linear; }
.countdown-number { font-family: var(--font-heading); font-size: 3rem; line-height: 110px; position: relative; z-index: 1; }
.countdown-label { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; position: absolute; bottom: -5px; width: 100%; left: 0; }


/* --- About Section --- */
#about .tagline { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); margin: -20px 0 30px 0; text-transform: uppercase; letter-spacing: 1px; }
.section-intro { max-width: 800px; margin: 0 auto 1rem auto; font-size: 1.1rem; line-height: 1.7; }


/* --- Guest Grid --- */
.guest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: start; }
.guest-card { background-color: var(--c-card-bg); border-radius: 8px; overflow: hidden; text-align: center; transition: transform 0.3s ease, background-color 0.3s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; height: 100%; }
.guest-card:hover { transform: translateY(-10px); }
.guest-card img { width: 100%; height: 250px; object-fit: cover; display: block; flex-shrink: 0; }
.guest-card h3 { font-size: 1.8rem; margin: 15px 0 5px; color: var(--c-text); }
.guest-card p { font-size: 1rem; padding: 0 15px 15px; color: var(--c-card-subtext); }
.guest-card-info { padding: 15px; text-align: left; display: flex; flex-direction: column; flex-grow: 1; }
.guest-card-info h3 { text-align: center; margin: 0 0 5px; }
.guest-card-info .guest-title { text-align: center; font-style: italic; color: var(--c-card-subtext); margin: 0 0 15px 0; padding: 0; }
.guest-card-info .guest-bio { font-size: 0.9rem; line-height: 1.5; color: var(--c-text); padding: 0; margin: 0; flex-grow: 1; }

/* Styles for Expandable Bio */
.guest-bio.expandable {
    position: relative;
    max-height: 4.5em; /* Approx 3 lines of text */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.guest-bio.expandable:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, transparent, var(--c-card-bg));
    pointer-events: none; /* Allows clicks to pass through */
}
.guest-bio.expandable.expanded {
    max-height: 1000px; /* A large value to allow full expansion */
}
.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    padding: 8px 0 0 0;
    margin-top: 5px;
    font-size: 0.9rem;
    display: inline-block;
}
.read-more-btn:hover {
    text-decoration: underline;
}

.view-all-container { text-align: center; margin-top: 40px; }


/* --- Tickets Section --- */
.ticket-info-box { background-color: var(--c-card-bg); border: 2px solid var(--primary-color); border-radius: 12px; padding: 30px 40px; max-width: 700px; margin: 20px auto 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: background-color 0.3s ease; }
.ticket-info-box h3 { font-size: 3rem; color: var(--primary-color); margin-bottom: 10px; }
.ticket-info-box .details { font-size: 1.2rem; font-weight: 700; color: var(--c-text); margin-bottom: 20px; }
.ticket-info-box .final-cta { font-size: 1.1rem; color: var(--c-card-subtext); }


/* --- Venue & Location Section --- */
.location-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; margin-top: 20px; }
@media (min-width: 768px) { .location-grid { grid-template-columns: 1fr 1fr; } }
.location-details h3 { font-size: 2.5rem; color: var(--c-text); margin-bottom: 1rem; }
.location-details p { font-size: 1.2rem; margin-bottom: 1.5rem; }
.location-map iframe { width: 100%; height: 350px; border-radius: 8px; border: 3px solid var(--border-color); }


/* --- Interior Page Styles (Guests, Vendors, Stores) --- */
.page-content { padding-top: 100px; }
.page-title { font-size: 4rem; text-align: center; margin-bottom: 40px; }


/* --- Vendor List --- */
.vendor-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.vendor-card { background-color: var(--c-card-bg); border-left: 5px solid var(--primary-color); padding: 20px; border-radius: 8px; transition: transform 0.3s ease, background-color 0.3s ease; }
.vendor-card:hover { transform: translateY(-5px); }
.vendor-card h3 { font-size: 1.8rem; margin-bottom: 5px; color: var(--c-text); }
.vendor-card .category { font-size: 0.9rem; color: var(--c-card-subtext); margin-bottom: 15px; }
.vendor-card .booth { display: inline-block; background-color: var(--primary-color); color: var(--text-light); padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 1rem; }


/* --- Store Listings Page --- */
.store-listings { margin-top: 40px; }
.city-heading { font-size: 2.5rem; text-transform: uppercase; color: var(--primary-color); text-align: left; margin-top: 40px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--c-text); }
.city-heading:first-of-type { margin-top: 0; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.store-card { background-color: var(--c-card-bg); padding: 20px; border-radius: 8px; border-left: 5px solid var(--primary-color); }
.store-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--c-text); }
.store-card .store-address { font-size: 1rem; color: var(--c-card-subtext); margin-bottom: 15px; line-height: 1.5; }
.store-card .store-phone { font-size: 1rem; font-weight: bold; color: var(--c-text); }


/* --- Buttons --- */
.btn-primary { background-color: var(--primary-color); color: var(--text-light); padding: 1rem 2rem; font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 2px; border-radius: 5px; transition: background-color 0.3s ease; }
.btn-primary:hover { background-color: var(--primary-hover); }
.btn-secondary { background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 0.8rem 1.8rem; font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 1px; border-radius: 5px; transition: all 0.3s ease; display: inline-block; }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--text-light); }


/* --- Footer --- */
footer { background-color: var(--c-footer-bg); padding: 2rem 0; margin-top: 40px; transition: background-color 0.3s ease; }
footer p a:hover { text-decoration: underline; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
@media(min-width: 768px) { .footer-content { flex-direction: row; justify-content: space-between; } }
footer .social-links a { margin: 0 10px; color: var(--c-text); font-size: 1.2rem; }
footer .social-links a:hover { color: var(--primary-color); }


/* --- Scroll to Top Button --- */
#scrollTopBtn { position: fixed; bottom: 20px; right: 20px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); background-color: var(--primary-color); color: var(--text-light); border: none; border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.3); transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; }
#scrollTopBtn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#scrollTopBtn:hover { background-color: var(--primary-hover); }
#scrollTopBtn svg { width: 24px; height: 24px; }