/* Coffee with Claude - Cinematic Design System */

:root {
    /* Colors - Dark Cinema Palette */
    --bg-color: #050505;
    /* Deep Black */
    --bg-secondary: #0a0a0a;
    /* Off-black for contrast */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;

    /* Accents */
    --accent-blue: #4a9eff;
    /* Claude's voice/tech */
    --accent-gold: #cfa86e;
    /* Human warmth/cinema */
    --accent-alert: #ff4a4a;
    /* Critical points */

    /* Typography */
    --font-serif: 'Playfair Display', 'Georgia', serif;
    /* Titles */
    --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
    /* Body */
    --font-mono: 'Space Mono', 'Fira Code', monospace;
    /* Tech data */

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Effects */
    --glow-blue: 0 0 10px rgba(74, 158, 255, 0.3);
    --glow-gold: 0 0 10px rgba(207, 168, 110, 0.3);
    --glass-bg: rgba(20, 20, 20, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Chat Button */
.chat-fab {
    position: fixed;
    /* Forced fixed positioning */
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    /* Max z-index to ensure visibility */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-blue);
    padding: 1rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.chat-fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
    background: rgba(74, 158, 255, 0.15);
    border-color: #fff;
    cursor: pointer;
}

.chat-fab .icon {
    font-size: 1.2rem;
}

.chat-fab .text {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 400px;
    height: 600px;
    max-height: 80vh;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.chat-modal.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(74, 158, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(74, 158, 255, 0.05);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-blue);
}

.chat-header h3 {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 0;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent-alert);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(0, 0, 0, 0.3);
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.5rem;
}

#userInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    outline: none;
}

#userInput:focus {
    border-color: var(--accent-blue);
}

#sendBtn {
    background: var(--accent-blue);
    color: var(--bg-color);
    border: none;
    padding: 0 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

#sendBtn:hover {
    background: #fff;
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.5);
}

.chat-footer {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-align: right;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    cursor: pointer;
    opacity: 0.6;
}

.text-btn:hover {
    opacity: 1;
    color: var(--accent-alert);
}

/* Chat Messages */
.message {
    display: flex;
    flex-direction: column;
    max-width: 90%;
    animation: fadeIn 0.3s ease-in;
}

.message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.message.assistant {
    align-self: flex-start;
}

.message-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message.assistant .message-content {
    border-left: 2px solid var(--accent-blue);
}

.message.user .message-content {
    border-right: 2px solid var(--accent-gold);
    background: rgba(207, 168, 110, 0.1);
    text-align: right;
}

.typing-indicator {
    color: var(--accent-blue);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    animation: blink 1s infinite;
}

.welcome-message {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.welcome-message h2 {
    font-family: var(--font-mono);
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.sub-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .chat-modal {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        max-height: 100vh;
    }
}

/* Base Reset & Setup */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

/* Typography Defaults */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-xs);
    display: inline-block;
}

p {
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 var(--accent-alert), -2px 0 var(--accent-blue);
    }

    2% {
        text-shadow: 0 0 0;
    }

    98% {
        text-shadow: 0 0 0;
    }

    100% {
        text-shadow: 2px 0 var(--accent-alert), -2px 0 var(--accent-blue);
    }
}

/* Header */
.cinematic-header {
    padding: var(--space-md) 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.8;
    text-decoration: none;
    animation: glitch 5s infinite-alternate;
}

.main-nav {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--space-xl) var(--space-md);
    text-align: center;
}

.movie-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.tagline {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.meta-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
}

.separator {
    color: var(--accent-gold);
    opacity: 0.5;
}

.hero-video-container {
    width: 100%;
    max-width: 900px;
    margin-top: var(--space-lg);
    border: 1px solid rgba(74, 158, 255, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Synopsis */
.synopsis-section {
    padding: var(--space-xl) 0;
    background: radial-gradient(circle at center, #111 0%, #050505 100%);
}

.container.narrow {
    max-width: 800px;
}

.synopsis-text {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.synopsis-text p.lead {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.synopsis-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.registration-badge {
    border: 1px solid var(--accent-gold);
    padding: var(--space-md);
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.registration-badge::before,
.registration-badge::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid var(--accent-gold);
    transition: all 0.3s ease;
}

.registration-badge::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.registration-badge::after {
    bottom: -1px;
    right: -1px;
    border-left: 0;
    border-top: 0;
}

.laurel-icon {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.registration-badge p {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin: 0;
}

/* Acts Section */
.acts-section {
    padding: var(--space-xl) 0;
}

.act-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.act {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-md);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.act:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    background: rgba(74, 158, 255, 0.05);
}

.act-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    display: flex;
    flex-direction: column;
}

.act-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-blue);
    margin-bottom: var(--space-xs);
}

.act h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.act .duration {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    align-self: flex-end;
    margin-top: -1.5rem;
    /* Pull up next to title visually if space allows, or use grid/flex logic */
}

/* Quote Section */
.quote-section {
    padding: var(--space-xl) 0;
    text-align: center;
}

.cinematic-quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.4;
}

.cinematic-quote footer {
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-blue);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Release Section */
.release-section {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.release-dates {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.date-item .label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
}

.date-item .value {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--accent-gold);
}

/* Footer */
.cinematic-footer {
    padding: var(--space-md) 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cinematic-footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* ── Festival Laurels Horizontal Slider ─────────────────────── */
.festival-laurels {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.laurels-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    opacity: 0.85;
    margin: 0;
    max-width: none;
}

.laurels-track-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.laurels-arrow {
    background: none;
    border: 1px solid rgba(207, 168, 110, 0.3);
    color: var(--accent-gold);
    font-size: 2rem;
    line-height: 1;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.laurels-arrow:hover {
    background: rgba(207, 168, 110, 0.12);
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold);
}

.laurels-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

/* The clipping window — flex: 1 so it takes all space between arrows */
.laurels-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

/* The sliding inner rail */
.laurels-slides {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Each slide is 1/3 of the track minus the gaps */
.laurel-slide {
    flex: 0 0 calc((100% - 3rem) / 3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.laurel-slide img {
    height: 140px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.laurel-slide img:hover {
    transform: scale(1.06) translateY(-4px);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.7))
            drop-shadow(0 0 8px rgba(207, 168, 110, 0.25));
}

/* Dot indicators */
.laurels-dots {
    display: flex;
    gap: 0.5rem;
}

.laurel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.laurel-dot.active {
    background: var(--accent-gold);
    transform: scale(1.4);
}

@media (max-width: 768px) {
    .laurel-slide {
        /* Show 2 at a time on mobile */
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }

    .movie-title {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .laurel-slide {
        /* Show 1 at a time on small phones */
        flex: 0 0 100%;
    }
}