/* bada.news — Seapunk News Broadcast */

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

:root {
    --deep-teal: #1a3a4a;
    --seafoam: #a8c5b8;
    --cyan: #00e5cc;
    --mist: #e8f4f0;
    --coral-pink: #ff6b8a;
    --biolum-purple: #c5a3ff;
    --abyss: #0b2027;
    --amber: #ffb347;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: var(--abyss);
    color: var(--mist);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

/* Horizontal Scroll Container */
.scroll-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    height: 100vh;
    width: 100vw;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Panels */
.panel {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 90vw;
}

/* Lens Flares */
.lens-flare {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    opacity: 0.3;
    animation: flare-pulse 4s ease-in-out infinite alternate;
}

.lens-flare-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
    top: -100px;
    right: 10%;
}

.lens-flare-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--coral-pink) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    animation-delay: -2s;
}

.lens-flare-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--biolum-purple) 0%, transparent 70%);
    top: 5%;
    left: 20%;
}

.lens-flare-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: -1s;
}

.lens-flare-5 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--cyan) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes flare-pulse {
    0% { opacity: 0.2; transform: scale(1); }
    100% { opacity: 0.4; transform: scale(1.15); }
}

/* Hero Panel */
.panel-hero {
    background: linear-gradient(135deg, var(--abyss) 0%, var(--deep-teal) 100%);
}

.hero-title {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 800, 'slnt' 0;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    line-height: 1.0;
    color: var(--mist);
}

.title-dot {
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan), 0 0 40px var(--cyan);
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    color: var(--seafoam);
    margin-top: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.signal-bar {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 229, 204, 0.05);
    border: 1px solid rgba(0, 229, 204, 0.2);
    border-radius: 4px;
    width: fit-content;
}

.signal-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--cyan);
}

.signal-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--cyan);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.scroll-hint {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    color: var(--seafoam);
    letter-spacing: 0.1em;
    opacity: 0.6;
    animation: hint-bounce 2s ease-in-out infinite;
}

@keyframes hint-bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

/* Headlines Panel */
.panel-headlines {
    background: linear-gradient(160deg, var(--deep-teal) 0%, var(--abyss) 100%);
}

.section-title {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 700, 'slnt' 0;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    color: var(--mist);
}

.headline-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
}

.headline-card {
    padding: 1.5rem 2rem;
    background: rgba(168, 197, 184, 0.05);
    border-left: 3px solid var(--cyan);
    border-radius: 0 8px 8px 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.headline-card:hover {
    transform: translateX(8px);
    background: rgba(168, 197, 184, 0.1);
}

.headline-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--cyan);
    background: rgba(0, 229, 204, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
}

.headline-card h3 {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 0.5, 'wght' 600, 'slnt' 0;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    line-height: 1.3;
    color: var(--mist);
}

.headline-meta {
    font-size: 0.8rem;
    color: var(--seafoam);
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Feature Panel */
.panel-feature {
    background: linear-gradient(180deg, var(--abyss) 0%, #0d2a33 100%);
}

.feature-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.feature-visual {
    flex-shrink: 0;
}

.coral-illustration {
    width: 280px;
    height: 280px;
}

.coral-node {
    animation: node-glow 3s ease-in-out infinite alternate;
}

.coral-node:nth-child(2) { animation-delay: -0.5s; }
.coral-node:nth-child(3) { animation-delay: -1s; }
.coral-node:nth-child(4) { animation-delay: -1.5s; }
.coral-node:nth-child(5) { animation-delay: -2s; }

@keyframes node-glow {
    0% { opacity: 0.4; r: 3; }
    100% { opacity: 1; r: 6; }
}

.feature-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--coral-pink);
}

.feature-text h2 {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 800, 'slnt' 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--seafoam);
    max-width: 500px;
}

.feature-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 229, 204, 0.15);
}

.stat-value {
    display: block;
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 700, 'slnt' 0;
    font-size: 1.8rem;
    color: var(--cyan);
}

.stat-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--seafoam);
    opacity: 0.7;
}

/* Grid Panel */
.panel-grid {
    background: linear-gradient(200deg, var(--deep-teal) 0%, var(--abyss) 100%);
}

.broadcast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 650px;
}

.grid-cell {
    padding: 2rem;
    background: rgba(26, 58, 74, 0.4);
    border: 1px solid rgba(0, 229, 204, 0.1);
    border-radius: 8px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.grid-cell:hover {
    border-color: rgba(0, 229, 204, 0.4);
    transform: translateY(-4px);
}

.cell-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.grid-cell h4 {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 0.5, 'wght' 600, 'slnt' 0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.grid-cell p {
    font-size: 0.85rem;
    color: var(--seafoam);
    line-height: 1.5;
    opacity: 0.8;
}

/* Sign-off Panel */
.panel-signoff {
    background: radial-gradient(ellipse at center, var(--deep-teal) 0%, var(--abyss) 100%);
}

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

.signoff-title {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 800, 'slnt' 0;
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.signoff-text {
    font-size: 1.1rem;
    color: var(--seafoam);
    line-height: 1.8;
}

.signoff-logo {
    margin-top: 3rem;
}

.logo-text {
    font-family: 'Recursive', monospace;
    font-variation-settings: 'MONO' 0, 'CASL' 1, 'wght' 800, 'slnt' 0;
    font-size: 2.5rem;
    color: var(--mist);
}

.logo-dot {
    color: var(--cyan);
    text-shadow: 0 0 15px var(--cyan);
}

/* Fish Animations */
.fish-swim {
    position: absolute;
    z-index: 1;
    animation: swim 20s linear infinite;
    opacity: 0.7;
}

.fish-swim-1 {
    top: 20%;
    right: -150px;
    animation-duration: 25s;
}

.fish-swim-2 {
    bottom: 15%;
    left: -120px;
    animation-direction: reverse;
    animation-duration: 30s;
}

.fish-swim-3 {
    top: 60%;
    right: -100px;
    animation-duration: 22s;
}

.fish-swim-4 {
    top: 30%;
    left: -100px;
    animation-direction: reverse;
    animation-duration: 28s;
}

.fish {
    width: 80px;
    height: auto;
}

@keyframes swim {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-30vw) translateY(-20px); }
    50% { transform: translateX(-60vw) translateY(10px); }
    75% { transform: translateX(-90vw) translateY(-15px); }
    100% { transform: translateX(-120vw) translateY(0); }
}

/* Coral Border */
.coral-border {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--cyan), var(--coral-pink), var(--biolum-purple), transparent);
    opacity: 0.4;
}

.coral-border-left {
    left: 0;
}

/* Bubble Field */
.bubble-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Caustic Canvas */
#causticCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10;
    opacity: 0.04;
    mix-blend-mode: screen;
}
