/* politics.day - Light-Academia Horizontal Broadsheet */
/* Palette: #FF6B9D, #FFD93D, #6C5CE7, #2D2A32, #FFF5E4, #00D2D3, #FF8A5C, #A29BCC */

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

html {
    overflow: hidden;
    height: 100vh;
}

body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: #FFF5E4;
    color: #2D2A32;
    height: 100vh;
    overflow: hidden;
}

/* ================================
   PROGRESS BAR
   ================================ */
.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: #FF6B9D;
    z-index: 100;
    transition: width 0.15s ease-out;
}

/* ================================
   DOT NAVIGATION
   ================================ */
.dot-nav {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #A29BCC;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    padding: 0;
}

.dot:hover {
    transform: scale(1.4);
}

.dot.active {
    background: #FF6B9D;
    transform: scale(1.2);
}

/* ================================
   SCROLL CONTAINER
   ================================ */
.scroll-container {
    display: flex;
    width: 500vw;
    height: 100vh;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

/* ================================
   PANELS (BASE)
   ================================ */
.panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Plus-sign micro-pattern background */
.plus-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='10' y='12' font-size='8' text-anchor='middle' fill='%236C5CE7' opacity='0.05'%3E%2B%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
}

/* ================================
   HUD ELEMENTS
   ================================ */

/* Corner brackets */
.hud-bracket {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(108, 92, 231, 0.5);
    border-style: solid;
    border-width: 0;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hud-tl {
    top: 20px;
    left: 20px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.hud-tr {
    top: 20px;
    right: 20px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.hud-bl {
    bottom: 20px;
    left: 20px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.hud-br {
    bottom: 20px;
    right: 20px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* Inner brackets for dialectic sub-blocks */
.hud-bracket-inner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(108, 92, 231, 0.35);
    border-style: solid;
    border-width: 0;
    z-index: 10;
    pointer-events: none;
}

.hud-bracket-inner.hud-tl {
    top: 12px;
    left: 12px;
    border-top-width: 1px;
    border-left-width: 1px;
}

.hud-bracket-inner.hud-tr {
    top: 12px;
    right: 12px;
    border-top-width: 1px;
    border-right-width: 1px;
}

.hud-bracket-inner.hud-bl {
    bottom: 12px;
    left: 12px;
    border-bottom-width: 1px;
    border-left-width: 1px;
}

.hud-bracket-inner.hud-br {
    bottom: 12px;
    right: 12px;
    border-bottom-width: 1px;
    border-right-width: 1px;
}

/* Crosshair targets */
.hud-crosshair {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid rgba(108, 92, 231, 0.4);
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    animation: crosshairSpin 12s linear infinite;
}

.hud-crosshair::before,
.hud-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(108, 92, 231, 0.4);
}

.hud-crosshair::before {
    width: 1px;
    height: 16px;
    top: -3px;
    left: 5px;
}

.hud-crosshair::after {
    width: 16px;
    height: 1px;
    top: 5px;
    left: -3px;
}

@keyframes crosshairSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hud-ch-1 { top: 15%; right: 25%; }
.hud-ch-2 { bottom: 20%; left: 12%; }
.hud-ch-3 { top: 20%; right: 15%; }
.hud-ch-4 { bottom: 30%; right: 30%; }
.hud-ch-5 { top: 12%; left: 8%; }

/* Micro-text readouts */
.hud-micro-text {
    position: absolute;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A29BCC;
    z-index: 10;
    pointer-events: none;
}

.hud-micro-1 { bottom: 60px; left: 24px; }
.hud-micro-2 { top: 24px; right: 80px; }
.hud-micro-3 { top: 24px; left: 80px; }
.hud-micro-4 { bottom: 60px; right: 24px; }
.hud-micro-5 { top: 24px; right: 80px; }
.hud-micro-6 { bottom: 60px; left: 24px; }
.hud-micro-7 { top: 24px; left: 80px; }
.hud-micro-8 { bottom: 60px; right: 24px; }
.hud-micro-9 { top: 24px; right: 80px; }
.hud-micro-10 { bottom: 60px; left: 24px; }

/* Scan line */
.scan-line {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 211, 0.2), transparent);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
}

.scan-line.animate {
    opacity: 1;
    animation: scanSweep 3s ease-in-out forwards;
}

@keyframes scanSweep {
    0% { top: 0; left: 0; opacity: 1; }
    100% { top: 100%; left: 0; opacity: 0; }
}

/* Panel dividers */
.panel-divider {
    position: absolute;
    top: 0;
    width: 1px;
    height: 100vh;
    border-left: 1px dashed rgba(255, 217, 61, 0.3);
    z-index: 50;
    pointer-events: none;
}

/* Rosettes */
.rosette {
    position: absolute;
    z-index: 10;
    pointer-events: none;
}

.rosette-1 { bottom: 80px; left: 50%; }
.rosette-2 { top: 80px; right: 60px; }
.rosette-3 { top: 60px; left: 60px; }

/* ================================
   PANEL 1: HERO
   ================================ */
.panel-hero {
    background: #FFF5E4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: left;
    padding: 0 5vw;
    width: 100%;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    color: #FF6B9D;
    letter-spacing: -0.02em;
    line-height: 0.88;
    display: flex;
    flex-direction: column;
}

.hero-word-politics {
    font-size: clamp(5rem, 18vw, 16rem);
    display: block;
}

.hero-word-day {
    font-size: clamp(4rem, 14vw, 12rem);
    display: block;
    margin-top: -0.05em;
}

.hero-dateline {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dateline-label {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6C5CE7;
}

.dateline-date {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FF6B9D;
}

/* Scroll arrow */
.scroll-arrow {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    animation: arrowBounce 1.5s ease-in-out infinite;
    cursor: pointer;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(10px); }
}

/* ================================
   PANEL 2: EDITORIAL
   ================================ */
.panel-editorial {
    background: #FFF5E4;
    display: flex;
    align-items: center;
}

.duotone-bg {
    position: absolute;
    inset: 0;
    /* Simulated duotone photo of parliamentary chamber */
    background:
        linear-gradient(135deg,
            rgba(255, 107, 157, 0.35) 0%,
            rgba(45, 42, 50, 0.6) 40%,
            rgba(255, 107, 157, 0.25) 60%,
            rgba(45, 42, 50, 0.7) 100%
        ),
        /* Architectural pattern evoking chamber arches */
        repeating-linear-gradient(
            80deg,
            rgba(45, 42, 50, 0.15) 0px,
            rgba(45, 42, 50, 0.15) 2px,
            transparent 2px,
            transparent 60px
        ),
        repeating-linear-gradient(
            -10deg,
            rgba(255, 107, 157, 0.08) 0px,
            rgba(255, 107, 157, 0.08) 1px,
            transparent 1px,
            transparent 40px
        ),
        radial-gradient(ellipse at 60% 40%, rgba(255, 107, 157, 0.3) 0%, rgba(45, 42, 50, 0.5) 50%, rgba(45, 42, 50, 0.8) 100%);
    background-color: #2D2A32;
    opacity: 0.7;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.panel-editorial:hover .duotone-bg {
    opacity: 0.77;
}

.editorial-content {
    position: relative;
    z-index: 5;
    padding: 0 8vw;
    width: 60%;
}

.pull-quote-block {
    background: rgba(255, 217, 61, 0.15);
    padding: 3rem 2.5rem;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.pull-quote-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(45, 42, 50, 0.12);
}

.pull-quote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.5;
    color: #FFF5E4;
    margin: 1.5rem 0;
}

.quote-attribution {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FF6B9D;
    display: block;
    margin-bottom: 1rem;
}

.attr-dash {
    color: #FFD93D;
}

.heavy-rule {
    height: 8px;
    background: #FFD93D;
    width: 100%;
}

/* ================================
   PANEL 3: DATA
   ================================ */
.panel-data {
    background: #2D2A32;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-content {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 6vw;
    padding: 0 6vw;
    align-items: flex-start;
}

.stat-block {
    flex: 1;
    text-align: left;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(4rem, 12vw, 10rem);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
}

.stat-1 .stat-number { color: #00D2D3; }
.stat-2 .stat-number { color: #FF6B9D; }
.stat-3 .stat-number { color: #FFD93D; }

.stat-label {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #A29BCC;
    line-height: 1.6;
    display: block;
    margin-top: 1rem;
    max-width: 20ch;
}

/* ================================
   PANEL 4: DIALECTIC
   ================================ */
.panel-dialectic {
    display: flex;
    align-items: stretch;
}

.dialectic-content {
    position: relative;
    z-index: 5;
    display: flex;
    width: 100%;
    height: 100%;
}

.dialectic-left,
.dialectic-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4vw;
    position: relative;
}

.dialectic-left {
    background: #FFF5E4;
}

.dialectic-right {
    background: rgba(255, 138, 92, 0.15);
}

.dialectic-divider {
    width: 1px;
    background: none;
    border-left: 1px dashed #6C5CE7;
    align-self: stretch;
    z-index: 10;
}

.dialectic-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    color: #2D2A32;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.dialectic-heading-left {
    transform: rotate(-2deg);
    transform-origin: left center;
}

.dialectic-heading-right {
    transform: rotate(2deg);
    transform-origin: right center;
}

.dialectic-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: #2D2A32;
    max-width: 42ch;
}

.dialectic-label {
    font-family: 'DM Mono', monospace;
    font-size: clamp(0.65rem, 1vw, 0.8rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6C5CE7;
    margin-top: 2rem;
    display: block;
}

/* ================================
   PANEL 5: IMMERSIVE
   ================================ */
.panel-immersive {
    background: #FFF5E4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.immersive-content {
    position: relative;
    z-index: 5;
    padding: 0 10vw;
    max-width: 900px;
}

.immersive-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.7;
    color: #2D2A32;
}

.hw {
    display: inline;
    padding: 2px 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    background-color: transparent;
}

.hw.highlighted {
    background-color: #FFD93D;
    color: #2D2A32;
}

.immersive-closing {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: -0.02em;
    color: #FF6B9D;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.immersive-closing.visible {
    opacity: 1;
    transform: translateY(0);
}

.immersive-closing em {
    font-style: italic;
    color: #6C5CE7;
}

/* ================================
   HOVER-LIFT INTERACTION
   ================================ */
.pull-quote-block,
.stat-block,
.dialectic-left,
.dialectic-right {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.stat-block:hover {
    transform: translateY(-8px);
}

/* ================================
   RESPONSIVE (MOBILE)
   ================================ */
@media (max-width: 768px) {
    .hero-word-politics {
        font-size: clamp(3.5rem, 20vw, 8rem);
    }

    .hero-word-day {
        font-size: clamp(3rem, 16vw, 7rem);
    }

    .editorial-content {
        width: 85%;
        padding: 0 5vw;
    }

    .pull-quote {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .data-content {
        flex-direction: column;
        gap: 3rem;
        padding: 0 6vw;
    }

    .stat-number {
        font-size: clamp(3rem, 16vw, 6rem);
    }

    .dialectic-content {
        flex-direction: column;
    }

    .dialectic-divider {
        width: 80%;
        height: 1px;
        align-self: center;
        border-left: none;
        border-top: 1px dashed #6C5CE7;
    }

    .dialectic-left,
    .dialectic-right {
        padding: 2rem 5vw;
    }

    .dialectic-heading {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .immersive-content {
        padding: 0 6vw;
    }

    .scroll-arrow {
        right: 16px;
    }

    .dot-nav {
        bottom: 16px;
        right: 16px;
    }

    .hud-bracket {
        width: 24px;
        height: 24px;
    }
}
