/* ============================================
   matchumnews.com - Neubrutalist News Experience
   Dopamine Neon Palette + Horizontal Scroll
   ============================================ */

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

html, body {
    height: 100vh;
    overflow: hidden;
    background: #000000;
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.65;
    color: #000000;
}

/* --- Scroll Container (Horizontal) --- */
#scroll-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    height: 100vh;
    width: 100vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

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

/* --- Panel Base --- */
.panel {
    min-width: 100vw;
    height: 100vh;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Panel Colors --- */
.panel[data-bg="pink"] {
    background: #FF0080;
    color: #000000;
}

.panel[data-bg="cyan"] {
    background: #00FFFF;
    color: #000000;
}

.panel[data-bg="yellow"] {
    background: #FFFF00;
    color: #000000;
}

.panel[data-bg="green"] {
    background: #00FF80;
    color: #000000;
}

.panel[data-bg="black"] {
    background: #000000;
    color: #FFFFFF;
}

/* --- Typography --- */

/* Headlines - Anton, oversized condensed sans */
.story-headline,
.end-headline,
#logotype {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -2px;
}

#logotype {
    font-size: clamp(80px, 16vw, 220px);
    color: #000000;
    position: relative;
    z-index: 2;
}

.story-headline {
    font-size: clamp(64px, 12vw, 180px);
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

.end-headline {
    font-size: clamp(72px, 14vw, 200px);
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
}

/* Body text - Work Sans */
.story-body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.65;
    color: #000000;
    max-width: 600px;
}

/* Labels - Space Mono */
.label-text {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.story-label {
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* --- Hero Panel --- */
.hero-border-frame {
    border: 4px solid #000000;
    padding: 60px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-tagline {
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 22px);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #000000;
}

.hero-scroll-hint {
    margin-top: 30px;
}

.hero-scroll-hint .label-text {
    color: #000000;
    opacity: 0.6;
    animation: pulseHint 2s ease-in-out infinite;
}

@keyframes pulseHint {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --- Crystalline Containers --- */
.crystalline-container {
    background: rgba(255, 255, 255, 0.15);
    clip-path: polygon(5% 0%, 95% 3%, 100% 90%, 8% 100%, 0% 15%);
    padding: 50px 60px;
    position: relative;
    z-index: 2;
    max-width: 700px;
    border: 4px solid #000000;
}

.panel[data-bg="black"] .crystalline-container {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FFFFFF;
}

.panel[data-bg="black"] .story-body {
    color: #FFFFFF;
}

.panel[data-bg="black"] .story-label {
    color: #FFFFFF;
}

/* --- Shake Animation --- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
}

.shake-target.shaking {
    animation: shake 0.3s ease-in-out;
}

/* --- Decorative Shapes --- */
.deco-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

/* Triangles */
.deco-triangle-1 {
    width: 0;
    height: 0;
    border-left: 120px solid transparent;
    border-right: 120px solid transparent;
    border-bottom: 200px solid #00FFFF;
    top: -40px;
    right: 80px;
    opacity: 0.7;
}

.deco-triangle-2 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 180px solid #FF0080;
    bottom: 40px;
    right: 60px;
    opacity: 0.6;
}

.deco-triangle-3 {
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-bottom: 220px solid #00FF80;
    top: 20px;
    right: 120px;
    opacity: 0.5;
}

.deco-triangle-4 {
    width: 0;
    height: 0;
    border-left: 90px solid transparent;
    border-right: 90px solid transparent;
    border-bottom: 160px solid #FF0080;
    top: 60px;
    right: 40px;
    opacity: 0.6;
}

.deco-triangle-5 {
    width: 0;
    height: 0;
    border-left: 110px solid transparent;
    border-right: 110px solid transparent;
    border-bottom: 190px solid #FFFF00;
    bottom: 30px;
    left: 80px;
    opacity: 0.5;
}

.deco-triangle-6 {
    width: 0;
    height: 0;
    border-left: 130px solid transparent;
    border-right: 130px solid transparent;
    border-bottom: 200px solid #00FFFF;
    top: 30px;
    right: 100px;
    opacity: 0.6;
}

.deco-triangle-7 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 250px solid #FF0080;
    bottom: -60px;
    left: 50px;
    opacity: 0.4;
}

/* Parallelograms */
.deco-parallelogram-1 {
    width: 200px;
    height: 120px;
    background: #FFFF00;
    transform: skewX(-20deg);
    bottom: 60px;
    left: 80px;
    opacity: 0.5;
}

.deco-parallelogram-2 {
    width: 250px;
    height: 100px;
    background: #FF0080;
    transform: skewX(-15deg);
    top: 80px;
    left: 60px;
    opacity: 0.4;
}

.deco-parallelogram-3 {
    width: 180px;
    height: 90px;
    background: #00FFFF;
    transform: skewX(-25deg);
    bottom: 100px;
    right: 80px;
    opacity: 0.5;
}

.deco-parallelogram-4 {
    width: 220px;
    height: 110px;
    background: #00FF80;
    transform: skewX(-18deg);
    top: 60px;
    right: 50px;
    opacity: 0.4;
}

.deco-parallelogram-5 {
    width: 200px;
    height: 100px;
    background: #00FFFF;
    transform: skewX(-22deg);
    top: 100px;
    right: 80px;
    opacity: 0.3;
}

/* Blocks */
.deco-block-1 {
    width: 160px;
    height: 160px;
    background: #FFFF00;
    border: 4px solid #000000;
    top: 60px;
    left: 40px;
    opacity: 0.4;
    transform: rotate(12deg);
}

.deco-block-2 {
    width: 140px;
    height: 140px;
    background: #00FFFF;
    border: 4px solid #000000;
    bottom: 80px;
    right: 60px;
    opacity: 0.5;
    transform: rotate(-8deg);
}

.deco-block-3 {
    width: 120px;
    height: 180px;
    background: #FFFF00;
    border: 4px solid #000000;
    top: 40px;
    right: 60px;
    opacity: 0.4;
    transform: rotate(6deg);
}

.deco-block-4 {
    width: 180px;
    height: 130px;
    background: #FF0080;
    border: 4px solid #000000;
    bottom: 60px;
    left: 50px;
    opacity: 0.5;
    transform: rotate(-15deg);
}

/* --- End Panel --- */
.panel-end .panel-inner {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.end-tagline {
    color: #00FFFF;
    font-size: 14px;
    letter-spacing: 4px;
}

/* --- Raw Borders on Story Content --- */
.panel-story .story-headline {
    border-bottom: 4px solid #000000;
    padding-bottom: 10px;
    display: inline-block;
}

.panel[data-bg="black"] .story-headline {
    border-bottom-color: #FFFFFF;
}

/* --- Mobile adjustments --- */
@media (max-width: 768px) {
    .panel-inner {
        padding: 24px 28px;
    }

    .hero-border-frame {
        padding: 30px;
    }

    .crystalline-container {
        padding: 30px 35px;
    }

    #logotype {
        font-size: clamp(60px, 14vw, 160px);
    }

    .story-headline {
        font-size: clamp(48px, 10vw, 120px);
    }

    .deco-shape {
        opacity: 0.3;
        transform: scale(0.6);
    }
}
