/**
 * Festival Public Frontend Styles
 * 
 * Design inspired by Fusebox Festival with Janix branding.
 * Uses CSS custom properties for theming.
 */

/* =============================================================================
   CSS Variables / Design Tokens
   ============================================================================= */

:root {
    /* Colors - Fusebox Brand Palette */
    --color-primary: #ec0244;      /* Secondary Red */
    --color-primary-dark: #7b0035; /* Tertiary Burgundy */
    --color-primary-light: #ff4d6d;
    
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-surface-alt: #f5f5f5;
    
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-text-light: #999999;
    
    --color-border: #e5e5e5;
    --color-border-dark: #cccccc;
    
    /* Event type badge colors - Fusebox brand palette */
    --badge-performance: #7b0035;  /* Tertiary Burgundy */
    --badge-film: #182fc4;         /* Tertiary Blue */
    --badge-installation: #0a6000; /* Tertiary Green */
    --badge-workshop: #ec0244;     /* Secondary Red */
    --badge-talk: #262f35;         /* Dark Neutral */
    --badge-party: #ec0244;        /* Secondary Red */
    --badge-panel: #7b0035;        /* Tertiary Burgundy */
    
    /* Sidebar accent - Fusebox Brand */
    --sidebar-bg: #262f35;    /* Dark Neutral */
    --sidebar-text: #ffffff;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-xxl: 64px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    
    /* Layout */
    --max-width: 1200px;
    --sidebar-width: 340px;
}

/* =============================================================================
   Reset & Base
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
   Navigation - Unified Header
   ============================================================================= */

.festival-nav {
    background: #dddfd8;  /* Light Neutral from Fusebox brand */
    color: #262f35;       /* Dark Neutral for text */
    padding: 8px 0;       /* Tight padding, logo provides height */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--color-primary);
}

.festival-nav .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header layout containers */
.header-left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

/* Left side: Branding */
.header-brand {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-brand .logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #262f35;  /* Dark Neutral for light nav */
    white-space: nowrap;
}

.header-brand .logo img,
.nav-logo img {
    max-height: 100px !important;  /* Bold, prominent logo like fusebox.org */
    width: auto;
    height: auto;
    display: block !important;
    /* Smooth fade-in when logo loads */
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

.header-brand .logo img[src]:not([src=""]),
.nav-logo img[src]:not([src=""]) {
    opacity: 1;
}

/* Hide text when logo image is loaded */
.nav-logo img[src]:not([src=""]) + span,
.header-brand .logo img[src]:not([src=""]) + span {
    display: none !important;
}

.header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 1px solid rgba(38,47,53,0.2);  /* Dark Neutral border */
    padding-left: 24px;
}

.header-date {
    font-size: 13px;
    font-weight: 600;
    color: #ec0244;  /* Fusebox Red for emphasis */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-tagline {
    font-size: 12px;
    color: rgba(38,47,53,0.7);  /* Dark Neutral muted */
    max-width: 400px;
    line-height: 1.3;
}

/* Right side: Navigation */
.nav-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-menu a {
    color: #262f35;  /* Dark Neutral */
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.nav-menu a:hover {
    color: #ec0244;  /* Fusebox Red on hover */
}

.nav-menu a.active {
    border-bottom: 2px solid #ec0244;  /* Fusebox Red */
    padding-bottom: 4px;
    color: #ec0244;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(38,47,53,0.2);  /* Dark Neutral divider */
    margin: 0 16px;
}

.nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background var(--transition-fast);
}

.nav-cta:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* Legacy support */
.festival-nav .logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #262f35;  /* Dark Neutral - matches logo color */
}

.festival-nav .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.festival-nav .nav-links a {
    color: #262f35;  /* Dark Neutral */
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.festival-nav .nav-links a:hover {
    color: #ec0244;  /* Red on hover */
}

.my-tickets-btn {
    background: var(--color-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.my-tickets-btn:hover {
    background: var(--color-primary-dark);
}

/* Ticket Count Badge */
.ticket-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #fff;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 10px;
}

/* Auth Container & Dropdown */
.auth-container {
    position: relative;
}

.auth-dropdown {
    position: relative;
}

.auth-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(38, 47, 53, 0.1);  /* Dark Neutral subtle bg */
    border: 1px solid rgba(38, 47, 53, 0.2);
    border-radius: 8px;
    color: #262f35;  /* Dark Neutral */
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.auth-dropdown-toggle:hover {
    background: rgba(38, 47, 53, 0.15);
    border-color: #ec0244;
}

.auth-dropdown-toggle .user-icon {
    font-size: 16px;
}

.auth-dropdown-toggle .user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-dropdown-toggle .dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s;
}

.auth-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.auth-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.auth-dropdown.open .auth-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s;
}

.auth-dropdown-menu .dropdown-item:hover {
    background: #f5f5f5;
}

.auth-dropdown-menu .dropdown-item .ticket-count-badge {
    margin-left: auto;
    background: var(--color-primary);
    color: #fff;
}

.auth-dropdown-menu .logout-btn {
    border-top: 1px solid #eee;
    color: #e53e3e;
}

.auth-dropdown-menu .logout-btn:hover {
    background: #fef2f2;
}

.sign-in-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.sign-in-btn:hover {
    background: var(--color-primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .header-meta {
        display: none;
    }

    .header-left {
        gap: 16px;
    }

    .header-right {
        gap: 16px;
    }

    .nav-menu {
        gap: 16px;
    }

    .header-brand .logo {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 12px;
    }

    .nav-menu,
    .nav-divider,
    .auth-container {
        display: none;
    }
}

/* =============================================================================
   Mobile Hamburger Menu
   ============================================================================= */

.nav-hamburger {
    display: none;  /* Hidden on desktop, shown at <768px */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    order: 10;  /* Push to right edge */
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #262f35;
    position: relative;
    transition: background 0.2s ease;
}

.nav-hamburger span::before,
.nav-hamburger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #262f35;
    transition: transform 0.2s ease;
}

.nav-hamburger span::before {
    top: -7px;
}

.nav-hamburger span::after {
    top: 7px;
}

/* Animate to X when open */
.nav-hamburger.active span {
    background: transparent;
}

.nav-hamburger.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-hamburger.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Mobile drawer overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile drawer panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #dddfd8;
    z-index: 101;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(38, 47, 53, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #262f35;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-date {
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #ec0244;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(38, 47, 53, 0.1);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    flex: 1;
}

.mobile-menu-links a {
    display: block;
    padding: 16px 24px;
    color: #262f35;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: rgba(236, 2, 68, 0.08);
    color: #ec0244;
}

.mobile-menu-auth {
    padding: 16px 24px;
    border-top: 1px solid rgba(38, 47, 53, 0.1);
}

.mobile-menu-auth a {
    display: block;
    text-align: center;
    background: #ec0244;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-menu-auth a:hover {
    background: #7b0035;
    color: #fff;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Show hamburger on mobile (must come after .nav-hamburger base rule) */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
}

/* =============================================================================
   Hero Image - Fixed Dimensions (IM-00)

   Images display at exact dimensions - no cropping.
   On larger screens, sidebars/margins expand (not the image).
   Specs: 1200x500 (web), max-width 768px (mobile, height auto-scales to image aspect ratio)
   ============================================================================= */

.hero-image {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 20px auto 0 auto;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; /* No black bars */
    border-radius: 8px;
}

/* Gradient overlay removed per Ron's request — show images without filter */

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: var(--badge-performance);
}

.hero-badge.film { background: var(--badge-film); }
.hero-badge.installation { background: var(--badge-installation); }
.hero-badge.workshop { background: var(--badge-workshop); }
.hero-badge.talk { background: var(--badge-talk); }
.hero-badge.party { background: var(--badge-party); }
.hero-badge.panel { background: var(--badge-panel); }

/* =============================================================================
   Main Content Layout
   ============================================================================= */

.project-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) 20px;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--space-xl);
}

.project-main {
    min-width: 0;
}

.project-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

/* =============================================================================
   Back Link
   ============================================================================= */

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-primary);
}

/* =============================================================================
   Project Header
   ============================================================================= */

.project-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.project-artists {
    font-size: 20px;
    margin-bottom: var(--space-sm);
}

.project-artists a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-primary);
    text-underline-offset: 3px;
}

.project-artists a:hover {
    color: var(--color-primary);
}

.project-partnerships {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.project-partnerships a {
    color: var(--color-text-muted);
}

.project-partnerships a:hover {
    color: var(--color-primary);
}

/* =============================================================================
   Project Description
   ============================================================================= */

.project-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--space-xl);
}

.project-description p {
    margin-bottom: var(--space-md);
}

.project-description h3,
.project-description h4 {
    font-family: var(--font-display);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.project-description blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* =============================================================================
   Section Headers
   ============================================================================= */

.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

/* =============================================================================
   Credits List
   ============================================================================= */

.credits-list {
    list-style: none;
    font-size: 15px;
    line-height: 1.8;
}

.credits-list li {
    padding: var(--space-xs) 0;
}

.credits-list .role {
    color: var(--color-text-muted);
}

.credits-list .name {
    font-weight: 500;
}

.credits-expand {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 14px;
    cursor: pointer;
    padding: var(--space-sm) 0;
    margin-top: var(--space-sm);
}

.credits-expand:hover {
    text-decoration: underline;
}

/* =============================================================================
   Sponsors
   ============================================================================= */

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    align-items: center;
}

.sponsor-logo {
    height: 50px;
    transition: all var(--transition-normal);
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

/* =============================================================================
   Sidebar Card - Redesigned for Better UX
   ============================================================================= */

.sidebar-card {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* CTA Section - Prominent at top */
.sidebar-cta-section {
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

.sidebar-cta-section .sidebar-section {
    margin-bottom: 0;
}

.sidebar-cta-section .sidebar-cta {
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 18px;
    border: none;
}

.sidebar-cta-section .sidebar-cta:hover {
    background: rgba(255,255,255,0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.sidebar-cta-section .free-badge {
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    padding: var(--space-md) var(--space-lg);
    border-radius: 8px;
}

.sidebar-body {
    padding: var(--space-lg);
}

.sidebar-section {
    margin-bottom: var(--space-lg);
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
    margin-bottom: var(--space-sm);
}

/* Showtimes - Clean informational display */
.showtimes-section {
    background: rgba(255,255,255,0.05);
    margin: 0 calc(-1 * var(--space-lg));
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.showtime-single {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.showtime-icon {
    font-size: 24px;
    opacity: 0.9;
}

.showtime-details {
    flex: 1;
}

.showtime-primary {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.showtimes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.showtime-item {
    display: flex;
    align-items: flex-start;
    padding: var(--space-xs) 0;
    font-size: 14px;
    gap: var(--space-sm);
}

.showtime-bullet {
    color: var(--color-accent);
    font-size: 8px;
    margin-top: 6px;
}

.showtime-date {
    flex: 1;
    line-height: 1.4;
}

/* Venue Section */
.venue-section {
    padding-top: var(--space-md);
}

.sidebar-venue {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.sidebar-venue-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.venue-feature {
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.sidebar-address {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.5;
}

.directions-link {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 13px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.directions-link:hover {
    text-decoration: underline;
}

.showtime-ticket-link {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.showtime-ticket-link:hover {
    background: var(--color-primary);
    color: #fff;
}

/* External ticket styling */
.sidebar-cta.external-tickets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sidebar-cta .external-note {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
}

/* Schedule items (party format) */
.schedule-item {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-weight: 600;
    font-size: 14px;
}

.schedule-desc {
    font-size: 14px;
    opacity: 0.9;
}

/* Price */
.sidebar-price {
    font-size: 18px;
    font-weight: 600;
}

/* CTA Button */
.sidebar-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: #fff;
    color: var(--sidebar-bg);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

.sidebar-cta:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.sidebar-cta.disabled {
    background: #666;
    cursor: not-allowed;
}

.sidebar-cta.disabled:hover {
    transform: none;
}

.ticket-note {
    font-size: 13px;
    opacity: 0.8;
    margin-top: var(--space-sm);
    text-align: center;
}

/* Free event */
.free-badge {
    background: var(--badge-installation);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.share-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* =============================================================================
   Related Events
   ============================================================================= */

.related-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-xl) 20px;
    border-top: 1px solid var(--color-border);
}

.related-title {
    font-family: var(--font-display);
    font-size: 28px;
    margin-bottom: var(--space-lg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* =============================================================================
   Event Cards
   ============================================================================= */

.event-card {
    background: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    position: relative;
}

.event-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--badge-performance);
}

/* Event card badge type colors - Fusebox brand */
.event-card-badge.performance { background: var(--badge-performance); }
.event-card-badge.film { background: var(--badge-film); }
.event-card-badge.installation { background: var(--badge-installation); }
.event-card-badge.workshop { background: var(--badge-workshop); }
.event-card-badge.talk { background: var(--badge-talk); }
.event-card-badge.party { background: var(--badge-party); }
.event-card-badge.panel { background: var(--badge-panel); }

.event-card-body {
    padding: var(--space-md);
}

.event-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.event-card-artists {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.event-card-meta {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Sold Out Badge on Event Cards */
.event-card-badge.sold-out {
    background: #666;
    color: #fff;
}

.event-card.is-sold-out .event-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.event-card.is-sold-out .event-card-title {
    color: var(--color-text-muted);
}

.sold-out-indicator {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* =============================================================================
   Artist Placeholder (for missing photos)
   ============================================================================= */

.artist-placeholder {
    background: linear-gradient(135deg, var(--color-surface-alt) 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-placeholder::before {
    content: '';
    width: 40%;
    height: 40%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
}

/* =============================================================================
   Footer
   ============================================================================= */

.festival-footer {
    background: #262f35;  /* Dark Neutral from Fusebox brand */
    color: #fff;
    padding: var(--space-xxl) 20px;
    margin-top: var(--space-xxl);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-sponsors {
    margin-bottom: var(--space-xl);
}

.footer-sponsors-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.footer-sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    align-items: center;
}

.footer-sponsor-logo {
    height: 40px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-fast);
}

.footer-sponsor-logo:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: #fff;
    opacity: 0.7;
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    color: #fff;
    opacity: 0.7;
    font-size: 20px;
}

.footer-social a:hover {
    opacity: 1;
}

/* =============================================================================
   Loading & Empty States
   ============================================================================= */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xxl);
    text-align: center;
    color: var(--color-text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: var(--space-md);
}

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

.empty-state {
    text-align: center;
    padding: var(--space-xxl);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--color-text-muted);
}

.error-state {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    color: #dc2626;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
    }
    
    .project-sidebar {
        position: static;
        order: -1;
        max-width: 400px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .festival-nav .nav-links {
        display: none;
    }

    .project-title {
        font-size: 32px;
    }

    /* Mobile hero: max-width 768px, height determined by actual image */
    .hero-image {
        height: auto;
        max-width: 768px;
        min-height: unset; /* Remove minimum on mobile */
        background-color: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Use actual img tag for mobile to get natural dimensions */
    .hero-image img {
        width: 100%;
        max-width: 768px;
        height: auto;
        display: block;
        border-radius: 8px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
}

/* =============================================================================
   Utilities
   ============================================================================= */

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

.hidden {
    display: none !important;
}

/* =============================================================================
   Inline Ticket Modal
   ============================================================================= */

.ticket-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-md);
}

.ticket-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ticket-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.ticket-modal-overlay.active .ticket-modal {
    transform: translateY(0);
}

.ticket-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.ticket-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.ticket-modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.ticket-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    padding-right: 40px;
}

.ticket-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.ticket-modal-body {
    padding: var(--space-lg);
}

.ticket-modal-body h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.ticket-tiers {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.ticket-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.ticket-tier:hover {
    border-color: var(--color-primary);
}

.ticket-tier.sold-out {
    opacity: 0.6;
}

.tier-info {
    flex: 1;
}

.tier-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.tier-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.tier-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.tier-price .sliding-scale {
    font-size: 14px;
    color: #ec0244;
}

.tier-price .free-tier {
    color: #28a745;
}

.tier-action {
    text-align: right;
}

.tier-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.qty-dropdown {
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    background: #fff;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 70px;
    text-align: center;
}

.qty-dropdown:hover {
    border-color: var(--color-primary-dark);
    background: #f8f9fa;
}

.qty-dropdown:focus {
    outline: none;
    border-color: var(--color-primary-dark);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.tier-quantity span {
    font-size: 18px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.tier-avail {
    font-size: 12px;
    color: var(--color-text-muted);
}

.tier-avail.low-stock {
    color: #28a745;
    font-weight: 600;
}

.sold-out-badge {
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.no-tickets {
    text-align: center;
    padding: var(--space-xl);
    background: #f8f9fa;
    border-radius: 8px;
}

.no-tickets p {
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.no-tickets .hint {
    font-size: 13px;
}

.ticket-modal-footer {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 15px;
}

.cart-total {
    font-weight: 700;
    font-size: 18px;
}

.btn-checkout {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-checkout:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Donation section in ticket modal */
.donation-section {
    margin-top: var(--space-lg);
    padding: 20px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.donation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.donation-icon {
    font-size: 20px;
}

.donation-title {
    font-size: 15px;
    margin: 0;
    color: #333;
    font-weight: 600;
}

.donation-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 15px;
}

.donation-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.donation-section .donation-btn {
    padding: 10px 16px;
    background: white;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.donation-section .donation-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.donation-section .donation-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: transparent;
}

.donation-custom-toggle {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.donation-custom-toggle:hover {
    color: #333;
}

.donation-custom-toggle .toggle-chevron {
    transition: transform 0.2s ease;
    display: inline-block;
}

.donation-custom-toggle.open .toggle-chevron {
    transform: rotate(180deg);
}

.donation-custom {
    display: flex;
    gap: 8px;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
    margin-top: 0;
}

.donation-custom.open {
    max-height: 60px;
    opacity: 1;
    margin-top: 8px;
}

.donation-custom input {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
}

.donation-clear-btn {
    padding: 10px 16px;
    background: #f0f0f0;
    color: #666;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-secondary {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.ticket-modal-loading,
.ticket-modal-error {
    padding: var(--space-xxl);
    text-align: center;
}

.ticket-modal-loading .spinner {
    margin: 0 auto var(--space-md);
}

/* Showtime ticket button */
/* Showtime inline buttons - hidden, replaced by single CTA for better UX */
.showtime-ticket-link {
    display: none;
}

/* Sliding Scale Slider Styles */
.sliding-scale-section {
    margin: 8px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.sliding-scale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sliding-scale-label {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sliding-scale-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.slider-track {
    position: relative;
    margin: 10px 0 6px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
}

.slider-input {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.slider-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

.slider-labels .center {
    font-weight: 600;
    color: var(--color-primary);
}

.sliding-scale {
    color: var(--color-primary);
    font-weight: 600;
}

