/* =============================================
   political.day — Brutalist Jewel Bento
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0C0808;
    color: #A898B8;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* =============================================
   Aurora Shimmer Overlay — Primary
   ============================================= */
#aurora-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(100, 40, 160, 0.06),
        rgba(40, 160, 100, 0.06),
        rgba(160, 100, 40, 0.06),
        rgba(100, 40, 160, 0.06)
    );
    background-size: 300% 100%;
    animation: auroraShimmer 12s ease-in-out infinite;
}

#aurora-overlay-secondary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(96, 128, 192, 0.03),
        transparent 40%,
        rgba(192, 96, 128, 0.03) 60%,
        transparent 80%,
        rgba(96, 192, 128, 0.03)
    );
    background-size: 400% 400%;
    animation: auroraShimmerSecondary 18s ease-in-out infinite;
}

@keyframes auroraShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes auroraShimmerSecondary {
    0% { background-position: 0% 0%; }
    33% { background-position: 100% 50%; }
    66% { background-position: 50% 100%; }
    100% { background-position: 0% 0%; }
}

/* =============================================
   Abstract Geometric Shapes Background
   ============================================= */
#geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
}

.shape-1 {
    top: 5%;
    right: 10%;
    width: 350px;
    height: 350px;
    animation: geoFloat1 20s ease-in-out infinite;
}

.shape-2 {
    bottom: 15%;
    left: 5%;
    width: 400px;
    height: 400px;
    animation: geoFloat2 25s ease-in-out infinite;
}

.shape-3 {
    top: 40%;
    right: 25%;
    width: 300px;
    height: 300px;
    animation: geoFloat3 18s ease-in-out infinite;
}

.shape-4 {
    bottom: 5%;
    right: 5%;
    width: 280px;
    height: 280px;
    animation: geoFloat1 22s ease-in-out infinite reverse;
}

.shape-5 {
    top: 65%;
    left: 15%;
    width: 240px;
    height: 240px;
    animation: geoFloat3 24s ease-in-out infinite reverse;
}

.shape-6 {
    top: 15%;
    left: 30%;
    width: 260px;
    height: 260px;
    animation: geoFloat2 20s ease-in-out infinite reverse;
}

@keyframes geoFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(3deg); }
    66% { transform: translate(-10px, 10px) rotate(-2deg); }
}

@keyframes geoFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, 15px) rotate(-4deg); }
    66% { transform: translate(10px, -10px) rotate(2deg); }
}

@keyframes geoFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
}

/* =============================================
   Bento Container - Main Grid
   ============================================= */
#bento-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 3px;
    padding: 3px;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
}

/* =============================================
   Bento Cells
   ============================================= */
.bento-cell {
    background: #141010;
    border: 2px solid #2A2020;
    position: relative;
    overflow: hidden;
    transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 300ms ease-out;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
}

.bento-cell.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 200ms ease-out, border-color 300ms ease-out;
}

.bento-cell:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    z-index: 5;
}

.bento-cell.visible:hover {
    transform: translateY(-8px);
}

/* Jewel-tone inner glows */
.bento-cell[data-glow="amethyst"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 40px rgba(232, 216, 240, 0.05);
    pointer-events: none;
    z-index: 0;
    transition: box-shadow 300ms ease-out;
}

.bento-cell[data-glow="sapphire"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 40px rgba(96, 128, 192, 0.08);
    pointer-events: none;
    z-index: 0;
    transition: box-shadow 300ms ease-out;
}

.bento-cell[data-glow="emerald"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 40px rgba(96, 192, 128, 0.08);
    pointer-events: none;
    z-index: 0;
    transition: box-shadow 300ms ease-out;
}

.bento-cell[data-glow="ruby"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 0 0 40px rgba(192, 96, 128, 0.08);
    pointer-events: none;
    z-index: 0;
    transition: box-shadow 300ms ease-out;
}

/* Cell bottom edge jewel glow line */
.bento-cell[data-glow="amethyst"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 216, 240, 0.15), transparent);
    pointer-events: none;
    z-index: 1;
}

.bento-cell[data-glow="sapphire"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 128, 192, 0.2), transparent);
    pointer-events: none;
    z-index: 1;
}

.bento-cell[data-glow="emerald"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 192, 128, 0.2), transparent);
    pointer-events: none;
    z-index: 1;
}

.bento-cell[data-glow="ruby"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 96, 128, 0.2), transparent);
    pointer-events: none;
    z-index: 1;
}

.cell-inner {
    position: relative;
    z-index: 1;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Cell accent lines */
.cell-accent-line {
    width: 40px;
    height: 2px;
    margin-top: 1.2rem;
    opacity: 0.6;
    transition: width 300ms ease-out, opacity 300ms ease-out;
}

.bento-cell:hover .cell-accent-line {
    width: 60px;
    opacity: 1;
}

.accent-sapphire { background: #6080C0; }
.accent-emerald { background: #60C080; }
.accent-ruby { background: #C06080; }
.accent-amethyst { background: #E8D8F0; }

/* =============================================
   Grid Cell Placement
   ============================================= */

/* Hero: spans all 4 columns, taller */
.cell-hero {
    grid-column: 1 / -1;
    grid-row: span 2;
    min-height: 60vh;
}

.cell-hero .cell-inner {
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Analysis: 2 columns wide */
.cell-analysis {
    grid-column: span 2;
    grid-row: span 2;
}

/* Discourse: 2 columns */
.cell-discourse {
    grid-column: span 2;
}

/* Data: 2 columns, tall */
.cell-data {
    grid-column: span 2;
    grid-row: span 2;
}

/* Policy: 1 column */
.cell-policy {
    grid-column: span 1;
}

/* Opinion: 1 column */
.cell-opinion {
    grid-column: span 1;
}

/* Global: 2 columns */
.cell-global {
    grid-column: span 2;
}

/* History: 2 columns */
.cell-history {
    grid-column: span 2;
}

/* Quote: full width */
.cell-quote {
    grid-column: 1 / -1;
}

/* Media: 1 column */
.cell-media {
    grid-column: span 1;
}

/* Economy: 2 columns */
.cell-economy {
    grid-column: span 2;
}

/* Justice: 1 column */
.cell-justice {
    grid-column: span 1;
}

/* =============================================
   Typography
   ============================================= */

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 7vw, 6rem);
    color: #E8D8F0;
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #A898B8;
    letter-spacing: 0.15em;
    text-transform: lowercase;
}

/* Hero decorative borders */
.hero-border-top,
.hero-border-bottom {
    width: 80px;
    height: 2px;
    margin: 0 auto;
}

.hero-border-top {
    background: linear-gradient(90deg, #6080C0, #C06080);
    margin-bottom: 2.5rem;
}

.hero-border-bottom {
    background: linear-gradient(90deg, #C06080, #60C080);
    margin-top: 2rem;
}

.bento-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: #60C080;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    display: block;
}

.cell-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: #E8D8F0;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.cell-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    color: #A898B8;
    line-height: 1.8;
}

/* =============================================
   Data Visual (bars)
   ============================================= */
.data-visual {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.data-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.data-bar-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.65rem;
    color: #A898B8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.data-bar {
    height: 6px;
    background: #2A2020;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.data-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--bar-color);
    transition: width 1.2s ease-out;
}

.data-bar.animated::after {
    width: var(--bar-width);
}

/* =============================================
   Economy Indicators
   ============================================= */
.economy-indicators {
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
}

.indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.indicator::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #2A2020;
}

.indicator:last-child::after {
    display: none;
}

.indicator-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: #C06080;
}

.indicator-label {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #A898B8;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
}

/* =============================================
   Brutalist Quote
   ============================================= */
.brutalist-quote {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    color: #E8D8F0;
    text-align: center;
    line-height: 1.4;
    padding: 2rem 3rem;
    position: relative;
}

.quote-mark {
    color: #C06080;
    font-size: 1.2em;
    vertical-align: -0.05em;
    opacity: 0.6;
}

.brutalist-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C06080, #6080C0);
}

.brutalist-quote::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6080C0, #60C080);
}

/* =============================================
   Hover Glow Enhancement
   ============================================= */
.bento-cell[data-glow="amethyst"]:hover::before {
    box-shadow: inset 0 0 60px rgba(232, 216, 240, 0.1);
}

.bento-cell[data-glow="sapphire"]:hover::before {
    box-shadow: inset 0 0 60px rgba(96, 128, 192, 0.15);
}

.bento-cell[data-glow="emerald"]:hover::before {
    box-shadow: inset 0 0 60px rgba(96, 192, 128, 0.15);
}

.bento-cell[data-glow="ruby"]:hover::before {
    box-shadow: inset 0 0 60px rgba(192, 96, 128, 0.15);
}

/* =============================================
   Cell border accent on hover
   ============================================= */
.bento-cell[data-glow="amethyst"]:hover {
    border-color: rgba(232, 216, 240, 0.2);
}

.bento-cell[data-glow="sapphire"]:hover {
    border-color: rgba(96, 128, 192, 0.3);
}

.bento-cell[data-glow="emerald"]:hover {
    border-color: rgba(96, 192, 128, 0.3);
}

.bento-cell[data-glow="ruby"]:hover {
    border-color: rgba(192, 96, 128, 0.3);
}

/* =============================================
   Footer
   ============================================= */
#bento-footer {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3px;
}

.footer-inner {
    background: #141010;
    border: 2px solid #2A2020;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #E8D8F0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-divider {
    width: 30px;
    height: 1px;
    background: #2A2020;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    color: #A898B8;
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* =============================================
   Responsive - Tablet
   ============================================= */
@media (max-width: 1024px) {
    #bento-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .cell-hero {
        grid-column: 1 / -1;
        min-height: 50vh;
    }

    .cell-analysis {
        grid-column: 1 / -1;
    }

    .cell-data {
        grid-column: 1 / -1;
    }

    .cell-quote {
        grid-column: 1 / -1;
    }

    .cell-global {
        grid-column: 1 / -1;
    }

    .cell-history {
        grid-column: 1 / -1;
    }

    .cell-economy {
        grid-column: 1 / -1;
    }
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 640px) {
    #bento-container {
        grid-template-columns: 1fr;
    }

    .bento-cell {
        grid-column: 1 / -1 !important;
        grid-row: span 1 !important;
    }

    .cell-hero {
        min-height: 70vh;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .cell-inner {
        padding: 1.5rem;
    }

    .economy-indicators {
        gap: 1rem;
    }

    .indicator-value {
        font-size: 1.2rem;
    }

    .brutalist-quote {
        padding: 1.5rem;
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-divider {
        width: 1px;
        height: 20px;
    }
}
