/* ═══════════════════════════════════════════════════════════════════════════
   OVERDRIVE HORIZON — Component Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────
   PARTICLE BACKGROUND
   ───────────────────────────────────────────────────────────────────────── */

.particle-container {
    position: fixed;
    inset: 0;
    z-index: var(--z-particles);
    pointer-events: none;
    overflow: hidden;
}

#particle-canvas {
    width: 100%;
    height: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────
   INTRO OVERLAY
   ───────────────────────────────────────────────────────────────────────── */

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--color-deep-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
    transition: opacity var(--duration-slower) var(--ease-out-expo),
        visibility var(--duration-slower) var(--ease-out-expo);
}

.intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg,
            var(--color-pure-white) 0%,
            var(--color-neon-red) 50%,
            var(--color-burning-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--color-neon-red-glow));
}

.intro-btn {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-pure-white);
    background: transparent;
    border: 2px solid var(--color-electric-cyan);
    border-radius: var(--radius-full);
    padding: var(--space-6) var(--space-12);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.intro-btn:hover {
    background: var(--color-electric-cyan);
    color: var(--color-deep-black);
    box-shadow: var(--glow-cyan);
}

.intro-subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-dim);
    margin-top: var(--space-8);
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO SECTION
   ───────────────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
    overflow: hidden;
    /* Transparent background so visible via scrolling but particles show through */
}

/* Artwork now behaves as a fixed background graphic or parallax element */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: var(--z-background);
}

.hero__artwork {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(30px) saturate(1.3);
    transform: scale(1.1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 15, 26, 0.4) 0%,
            rgba(15, 15, 26, 0.8) 100%);
}

.hero__content {
    position: relative;
    z-index: var(--z-content);
    max-width: 800px;
    animation: fade-in var(--duration-slower) var(--ease-out-expo);
}

.hero__artist {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-electric-cyan);
    margin-bottom: var(--space-4);
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: var(--weight-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg,
            var(--color-pure-white) 0%,
            var(--color-neon-red) 50%,
            var(--color-burning-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--color-neon-red-glow));
}

.hero__tagline {
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-12);
    max-width: 600px;
}

/* ─────────────────────────────────────────────────────────────────────────
   PLAY BUTTON (Hero)
   ───────────────────────────────────────────────────────────────────────── */

.play-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-pure-white);
    background: linear-gradient(135deg,
            var(--color-neon-red) 0%,
            var(--color-burning-orange) 100%);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    animation: glow-breathe 3s ease-in-out infinite;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow:
        0 0 40px var(--color-neon-red-glow),
        0 0 80px var(--color-neon-red-glow);
}

.play-button__icon {
    width: 24px;
    height: 24px;
    transition: transform var(--duration-fast) var(--ease-out-expo);
}

/* ─────────────────────────────────────────────────────────────────────────
   AUDIO PLAYER
   ───────────────────────────────────────────────────────────────────────── */

.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-overlay);
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(15, 15, 26, 0.95) 20%,
            var(--color-deep-black) 100%);
    padding: var(--space-6) var(--space-8);
    transform: translateY(100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
    backdrop-filter: blur(20px);
}

.audio-player.visible {
    transform: translateY(0);
}

.audio-player__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.audio-player__controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.audio-player__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 2px solid var(--color-neon-red);
    border-radius: var(--radius-full);
    color: var(--color-neon-red);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.audio-player__btn:hover {
    background: var(--color-neon-red);
    color: var(--color-pure-white);
    box-shadow: var(--glow-red);
}

.audio-player__btn svg {
    width: 20px;
    height: 20px;
}

.audio-player__progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.audio-player__progress-bar {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
}

.audio-player__progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg,
            var(--color-neon-red) 0%,
            var(--color-burning-orange) 100%);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
}

.audio-player__time {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.audio-player__volume {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 120px;
}

.audio-player__volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
}

.audio-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--color-electric-cyan);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--glow-cyan);
}

/* ─────────────────────────────────────────────────────────────────────────
   LYRICS SECTION
   ───────────────────────────────────────────────────────────────────────── */

.lyrics-section {
    position: relative;
    z-index: 20;
    min-height: 80vh;
    /* Reduced from 100vh so flow is better */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    /* Semi-transparent background for "combination" feel */
    background: linear-gradient(180deg,
            rgba(15, 15, 26, 0) 0%,
            rgba(15, 15, 26, 0.6) 20%,
            rgba(15, 15, 26, 0.6) 80%,
            rgba(15, 15, 26, 0) 100%);
}

.lyrics-container {
    max-width: var(--content-width);
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: visible;
    text-align: center;
    scroll-behavior: smooth;
    padding: var(--space-8) var(--space-16);
    /* Scrollbar styling handles visibility */
}

.lyrics-line {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-medium);
    line-height: 2;
    color: var(--color-text-dim);
    padding: var(--space-2) 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
}

.lyrics-line:hover {
    color: var(--color-text-muted);
}

.lyrics-line.active {
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--color-neon-red);
    text-shadow: var(--glow-red);
    transform: scale(1.05);
}

/* ─────────────────────────────────────────────────────────────────────────
   STORY CONTENT (No longer toggled)
   ───────────────────────────────────────────────────────────────────────── */

.story-content {
    position: relative;
    z-index: 20;
    padding: var(--space-16) var(--space-8);
    /* Transparent background with subtle gradient */
    background: linear-gradient(180deg,
            rgba(15, 15, 26, 0.2) 0%,
            rgba(15, 15, 26, 0.8) 50%,
            rgba(15, 15, 26, 0.95) 100%);
}

.story-section {
    max-width: var(--content-width);
    margin: 0 auto var(--space-12);
}

.story-section__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-electric-cyan);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.story-section__title::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--color-electric-cyan);
}

.story-section__content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-text-muted);
}

.prompt-display {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--color-burning-orange);
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    overflow-x: auto;
}

/* ─────────────────────────────────────────────────────────────────────────
   STREAMING LINKS
   ───────────────────────────────────────────────────────────────────────── */

.streaming-section {
    position: relative;
    z-index: 20;
    padding: var(--space-16) var(--space-8);
    text-align: center;
    background: var(--color-deep-black);
}

.streaming-section__title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-8);
    color: var(--color-pure-white);
}

.streaming-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.streaming-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--color-pure-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.streaming-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-electric-cyan);
    transform: translateY(-4px);
    box-shadow: var(--glow-cyan);
}

.streaming-link svg {
    width: 24px;
    height: 24px;
}

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────── */

.footer {
    position: relative;
    z-index: 20;
    padding: var(--space-8);
    text-align: center;
    background: var(--color-deep-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.footer__share {
    display: flex;
    gap: var(--space-3);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.share-btn:hover {
    color: var(--color-electric-cyan);
    border-color: var(--color-electric-cyan);
    box-shadow: var(--glow-cyan);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* ─────────────────────────────────────────────────────────────────────────
   RESPONSIVE STYLES
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .intro-title {
        font-size: var(--text-3xl);
    }

    .hero__title {
        font-size: var(--text-4xl);
    }

    .hero__tagline {
        font-size: var(--text-base);
    }

    .audio-player__inner {
        flex-direction: column;
        gap: var(--space-4);
    }

    .audio-player__volume {
        width: 100%;
    }

    .lyrics-line {
        font-size: var(--text-xl);
    }

    .lyrics-line.active {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--space-6);
    }

    .play-button {
        padding: var(--space-4) var(--space-8);
        font-size: var(--text-base);
    }

    .audio-player {
        padding: var(--space-4);
    }
}