/* ============================================
   political.bar - Styles
   Blobitecture aesthetic, immersive-scroll layout
   Forest-green civic palette, sci-fi HUD motifs
   ============================================ */

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

:root {
    --forest-deep: #1A3828;
    --canopy-green: #308050;
    --civic-amber: #D8A830;
    --bark-brown: #483828;
    --leaf-white: #E8F0E0;
    --hud-cyan: #40C8D0;
    --flare-gold: #F0D060;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: var(--leaf-white);
    background-color: var(--forest-deep);
    overflow-x: hidden;
}

/* --- PUB DOOR (Hero) --- */
#pub-door {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: var(--forest-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* HUD Overlay SVGs */
.hud-overlay {
    position: absolute;
    width: 180px;
    height: 180px;
    opacity: 0;
    animation: hudFadeIn 1200ms ease-out forwards;
}

.hud-top-left {
    top: 40px;
    left: 40px;
    animation-delay: 200ms;
}

.hud-top-right {
    top: 40px;
    right: 40px;
    animation-delay: 400ms;
}

.hud-bottom-left {
    bottom: 100px;
    left: 40px;
    animation-delay: 600ms;
}

.hud-bottom-right {
    bottom: 100px;
    right: 40px;
    animation-delay: 800ms;
}

@keyframes hudFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.6;
        transform: scale(1);
    }
}

.hud-arc {
    fill: none;
    stroke: var(--civic-amber);
    stroke-width: 1.5;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    animation: hudArcDraw 1000ms ease-out forwards;
}

.hud-arc-1 { animation-delay: 300ms; }
.hud-arc-2 { animation-delay: 500ms; stroke: var(--hud-cyan); stroke-dasharray: 377; stroke-dashoffset: 377; }
.hud-arc-3 { animation-delay: 500ms; }
.hud-arc-4 { animation-delay: 700ms; stroke: var(--hud-cyan); stroke-dasharray: 346; stroke-dashoffset: 346; }
.hud-arc-5 { animation-delay: 700ms; stroke-dasharray: 220; stroke-dashoffset: 220; }
.hud-arc-6 { animation-delay: 900ms; stroke: var(--hud-cyan); stroke-dasharray: 220; stroke-dashoffset: 220; }

@keyframes hudArcDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.hud-line {
    stroke: var(--civic-amber);
    stroke-width: 1;
    opacity: 0.5;
}

.hud-dot {
    fill: var(--hud-cyan);
}

.hud-label-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    fill: var(--civic-amber);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Lens Flare - Hero */
.lens-flare {
    position: absolute;
    pointer-events: none;
}

#hero-flare {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: heroFlareIn 400ms ease-out 600ms forwards;
}

@keyframes heroFlareIn {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: heroTextIn 800ms ease-out 400ms forwards;
}

@keyframes heroTextIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 72px);
    color: var(--leaf-white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-shadow: 0 0 40px rgba(240, 208, 96, 0.15);
}

.hero-tagline {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 22px);
    color: var(--civic-amber);
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: scrollIndicatorIn 600ms ease-out 1400ms forwards;
}

@keyframes scrollIndicatorIn {
    to { opacity: 0.6; }
}

.scroll-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--civic-amber);
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- BLOB SECTIONS --- */
.blob-section {
    position: relative;
    width: 100%;
    padding: 80px 24px;
    overflow: hidden;
}

.blob-inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 60px 48px;
    display: flex;
    align-items: center;
    gap: 48px;
}

/* Blobitecture organic shapes */
.blob-1 {
    background-color: var(--canopy-green);
}
.blob-1 .blob-inner {
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 55%;
    background-color: rgba(26, 56, 40, 0.5);
}

.blob-2 {
    background-color: var(--forest-deep);
}
.blob-2 .blob-inner {
    border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%;
    background-color: rgba(48, 128, 80, 0.2);
}

.blob-3 {
    background-color: var(--canopy-green);
}
.blob-3 .blob-inner {
    border-radius: 50% 50% 45% 55% / 60% 40% 55% 45%;
    background-color: rgba(26, 56, 40, 0.5);
    flex-direction: column;
}

.blob-4 {
    background-color: var(--forest-deep);
}
.blob-4 .blob-inner {
    border-radius: 40% 60% 50% 50% / 45% 55% 45% 55%;
    background-color: rgba(48, 128, 80, 0.15);
    flex-direction: column;
}

.blob-5 {
    background-color: var(--canopy-green);
}
.blob-5 .blob-inner {
    border-radius: 55% 45% 60% 40% / 50% 50% 55% 45%;
    background-color: rgba(26, 56, 40, 0.5);
}

/* Blob content */
.blob-content {
    flex: 1;
    min-width: 0;
}

.blob-content.centered {
    text-align: center;
}

.section-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 3.5vw, 52px);
    color: var(--leaf-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: var(--leaf-white);
    opacity: 0.9;
    margin-bottom: 16px;
}

.section-body:last-child {
    margin-bottom: 0;
}

/* --- HUD GAUGES --- */
.section-hud {
    flex-shrink: 0;
}

.hud-gauge {
    width: 120px;
    height: 120px;
}

.gauge-track {
    fill: none;
    stroke: rgba(232, 240, 224, 0.15);
    stroke-width: 6;
}

.gauge-fill {
    fill: none;
    stroke: var(--civic-amber);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 1.2s ease-out;
}

.gauge-value {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 2.5vw, 40px);
    fill: var(--flare-gold);
}

.gauge-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    fill: var(--hud-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* HUD Data Frames */
.hud-data-frame {
    width: 180px;
    height: 140px;
}

.frame-border {
    fill: none;
    stroke: var(--civic-amber);
    stroke-width: 1.5;
    opacity: 0.7;
}

.frame-line {
    stroke: var(--civic-amber);
    stroke-width: 0.5;
    opacity: 0.4;
}

.frame-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 10px;
    fill: var(--hud-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.frame-data {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 28px;
    fill: var(--flare-gold);
}

.frame-subtitle {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 10px;
    fill: var(--leaf-white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.frame-stat {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 16px;
    fill: var(--civic-amber);
}

.frame-stat-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 8px;
    fill: var(--hud-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Data HUD Row */
.data-hud-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.hud-meter {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- PERSPECTIVES GRID --- */
.perspectives-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 32px;
}

.perspective-card {
    position: relative;
    padding: 28px;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    background-color: rgba(26, 56, 40, 0.6);
    border: 1px solid rgba(64, 200, 208, 0.15);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.perspective-card:hover {
    border-color: var(--canopy-green);
    transform: scale(1.03);
    box-shadow: 0 0 30px rgba(48, 128, 80, 0.3);
}

.card-hud-accent {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--hud-cyan);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.perspective-card:hover .card-hud-accent {
    opacity: 1;
    box-shadow: 0 0 8px var(--hud-cyan);
}

.card-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--civic-amber);
    margin-bottom: 10px;
}

.card-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 0.9vw, 15px);
    line-height: 1.7;
    color: var(--leaf-white);
    opacity: 0.8;
}

/* --- LENS FLARES (within sections) --- */
.flare-small {
    width: 100px;
    height: 100px;
    top: 20px;
    right: -20px;
}

.flare-medium {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.flare-animate {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.flare-animate.visible {
    opacity: 1;
}

.flare-animate.pulse {
    animation: flarePulse 600ms ease-out;
}

@keyframes flarePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.flare-medium.visible {
    transform: translateX(-50%) scale(1);
}

.flare-medium.pulse {
    animation: flarePulseCentered 600ms ease-out;
}

@keyframes flarePulseCentered {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.3); }
    100% { transform: translateX(-50%) scale(1); }
}

/* --- FOOTER (Last Orders) --- */
#last-orders {
    position: relative;
    width: 100%;
    background-color: var(--bark-brown);
    padding: 0;
}

.footer-blob {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 80px 48px;
    display: flex;
    align-items: center;
    gap: 48px;
    border-radius: 50% 50% 0 0 / 20% 20% 0 0;
    overflow: hidden;
}

.footer-hud {
    flex-shrink: 0;
}

.footer-gauge {
    width: 100px;
    height: 100px;
}

.gauge-fill-footer {
    stroke: var(--canopy-green);
}

.footer-content {
    flex: 1;
}

.footer-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 3vw, 40px);
    color: var(--leaf-white);
    margin-bottom: 12px;
}

.footer-text {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: var(--leaf-white);
    opacity: 0.8;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-link {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--civic-amber);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    border: 1px solid rgba(216, 168, 48, 0.4);
    border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.footer-link:hover {
    background-color: var(--civic-amber);
    color: var(--forest-deep);
    border-color: var(--civic-amber);
    transform: scale(1.03);
}

.flare-footer {
    width: 200px;
    height: 200px;
    top: -40px;
    right: -60px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    border-top: 1px solid rgba(232, 240, 224, 0.1);
}

.footer-domain {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--civic-amber);
}

.footer-copy {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--leaf-white);
    opacity: 0.4;
}

/* --- BLOB SECTION VIEWPORT ANIMATION --- */
.blob-section .blob-inner {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.blob-section.in-view .blob-inner {
    opacity: 1;
    transform: translateY(0);
}

/* --- HUD DATA FRAME DRAW ANIMATION --- */
.hud-data-frame .frame-border {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1s ease-out;
}

.in-view .hud-data-frame .frame-border {
    stroke-dashoffset: 0;
}

/* --- HOVER INTERACTIONS --- */
.blob-section:hover .blob-inner {
    box-shadow: 0 0 40px rgba(48, 128, 80, 0.2);
}

.hud-gauge:hover .gauge-fill {
    stroke: var(--hud-cyan);
}

.hud-data-frame:hover .frame-border {
    stroke: var(--hud-cyan);
    opacity: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .blob-inner {
        flex-direction: column;
        padding: 40px 28px;
        gap: 32px;
    }

    .hud-overlay {
        width: 100px;
        height: 100px;
    }

    .hud-top-left { top: 20px; left: 20px; }
    .hud-top-right { top: 20px; right: 20px; }
    .hud-bottom-left { bottom: 80px; left: 20px; }
    .hud-bottom-right { bottom: 80px; right: 20px; }

    .perspectives-grid {
        grid-template-columns: 1fr;
    }

    .data-hud-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .footer-blob {
        flex-direction: column;
        padding: 60px 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 28px;
    }

    .footer-links {
        justify-content: center;
    }

    .blob-section {
        padding: 48px 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .hud-overlay {
        width: 70px;
        height: 70px;
    }

    .perspectives-grid {
        gap: 16px;
    }

    .perspective-card {
        padding: 20px;
    }
}