/* =============================================================
   DeltaWerks Cinematic Scroll-Journey Homepage Styles
   ============================================================= */

/* ---- Container ---- */
.cinema-journey {
    position: relative;
    width: 100%;
    background: #02050b; /* prevents flash of white during video buffer */
}

/* ---- Layer 1: Video ---- */
.cinema-video-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.cinema-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cinema-video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #02050b;
}
.cinema-loading-pulse {
    width: 60px;
    height: 60px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 50%;
    animation: cinema-pulse 1.6s ease-in-out infinite;
}
@keyframes cinema-pulse {
    0%, 100% { transform: scale(0.85); opacity: 0.4; }
    50%      { transform: scale(1.05); opacity: 1; }
}

/* ---- Layer 2: Overlays ---- */
.cinema-overlay-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.cinema-station-overlay {
    position: absolute;
    inset: 0;
    transition: opacity 120ms linear;
    color: white;
}

/* ---- Scroll spacer ---- */
.cinema-scroll-spacer {
    position: relative;
    z-index: -1;
    pointer-events: none;
}

/* ---- Hero content (always text-on-scene, no panel variants) ---- */
.cinema-hero-content {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: 760px;
}
.cinema-hero-headline {
    font-family: 'Orbitron', system-ui, sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.75);
}
.cinema-rule {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.7), transparent);
    margin: 0.7rem 0;
}
.cinema-rule-accent {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.7), transparent);
}
.cinema-hero-subline {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    line-height: 1.55;
    color: rgba(220, 230, 250, 0.85);
    max-width: 50ch;
    margin: 0 0 1.2rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

/* ---- CTA buttons (shared across hero + stations) ---- */
.cinema-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}
.cinema-cta {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 200ms ease, border-color 200ms ease;
}
.cinema-cta-primary {
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.6);
    color: rgba(245, 200, 100, 1);
}
.cinema-cta-primary:hover {
    background: rgba(245, 158, 11, 0.28);
}
.cinema-cta-secondary {
    background: rgba(2, 5, 11, 0.4);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: rgba(150, 200, 255, 0.95);
}
.cinema-cta-secondary:hover {
    background: rgba(96, 165, 250, 0.15);
}

/* ---- Scroll cue (chevron at hero bottom) ---- */
.cinema-scroll-chevron {
    font-size: 1.4rem;
    animation: cinema-bob 2s ease-in-out infinite;
}
@keyframes cinema-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ===========================================================
   STATION CONTENT — three panel variants
   Driven by [data-panel-style="..."] on .cinema-journey root
   =========================================================== */

/* Common station content base */
.cinema-station-content { color: white; }
.cinema-station-rune {
    color: rgba(96, 165, 250, 0.7);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    margin: 0 0 0.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.cinema-station-headline {
    font-family: 'Orbitron', system-ui, sans-serif;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.0;
    margin: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}
.cinema-station-subline {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.5;
    color: rgba(220, 230, 250, 0.82);
    max-width: 50ch;
    margin: 0 0 1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* Accent colors (per station) */
.cinema-accent-gold .cinema-headline-accent { color: #fbbf24; }
.cinema-accent-blue .cinema-headline-accent { color: #60a5fa; }
.cinema-accent-cyan .cinema-headline-accent { color: #22d3ee; }
.cinema-accent-gold .cinema-rule-accent {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.7), transparent);
}
.cinema-accent-blue .cinema-rule-accent {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.7), transparent);
}
.cinema-accent-cyan .cinema-rule-accent {
    background: linear-gradient(90deg, rgba(34, 211, 238, 0.7), transparent);
}

/* ===== Variant: WIDE (D) — wide bottom-anchored panel ===== */
[data-panel-style="wide"] .cinema-panel {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 8%;
    background: rgba(2, 5, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(96, 165, 250, 0.45);
    border-radius: 10px;
    padding: 1.4rem 1.8rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(59, 130, 246, 0.18);
}
[data-panel-style="wide"] .cinema-accent-gold .cinema-panel {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 28px rgba(245, 158, 11, 0.18);
}
[data-panel-style="wide"] .cinema-panel:hover {
    transform: perspective(800px) rotateX(0.5deg) rotateY(-0.5deg);
    transition: transform 280ms ease;
}

/* ===== Variant: SIDE (F) — left-anchored vertical panel ===== */
[data-panel-style="side"] .cinema-panel {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 38%;
    min-width: 320px;
    max-width: 520px;
    background: rgba(2, 5, 11, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-left: 3px solid rgba(96, 165, 250, 0.7);
    border-radius: 4px;
    padding: 1.6rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(59, 130, 246, 0.2);
}
[data-panel-style="side"] .cinema-accent-gold .cinema-panel {
    border-left-color: rgba(245, 158, 11, 0.85);
}
[data-panel-style="side"] .cinema-panel:hover {
    transform: translateY(-50%) perspective(800px) rotateY(-1deg);
    transition: transform 280ms ease;
}

/* ===== Variant: TEXT-ON-SCENE (G) — no panel ===== */
[data-panel-style="text-on-scene"] .cinema-panel {
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: 720px;
    /* No background, no border, no blur — just text */
    background: transparent;
    border: none;
    padding: 0;
}
[data-panel-style="text-on-scene"] .cinema-station-overlay {
    /* Add a bottom-gradient darkening to the overlay itself for readability */
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(2, 5, 11, 0.55) 100%
    );
}

/* ---- Mobile (<768px): collapse panels to bottom-strip regardless of variant ---- */
@media (max-width: 767px) {
    [data-panel-style] .cinema-panel {
        position: absolute;
        left: 4%;
        right: 4%;
        bottom: 6%;
        top: auto;
        transform: none;
        width: auto;
        min-width: 0;
        max-width: none;
        background: rgba(2, 5, 11, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(96, 165, 250, 0.45);
        border-radius: 8px;
        padding: 1rem 1.2rem;
    }
    .cinema-station-headline { font-size: 1.4rem; }
    .cinema-hero-headline    { font-size: 1.6rem; }
}

/* ---- Reduced motion: disable all animation and transition ---- */
@media (prefers-reduced-motion: reduce) {
    .cinema-station-overlay,
    .cinema-cta,
    .cinema-panel {
        transition: none !important;
        animation: none !important;
    }
    .cinema-scroll-chevron { animation: none; }
    .cinema-loading-pulse  { animation: none; opacity: 0.4; }
}
