/* ============================================
   GABS.NEWS — Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #1a0a10;
    color: #d4c5b8;
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    font-weight: 400;
    line-height: 1.72;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.intro-title {
    font-family: 'Poiret One', cursive;
    font-size: 8vw;
    letter-spacing: 0.3em;
    color: #c9a84c;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 800ms ease;
}

.intro-title.visible {
    opacity: 1;
}

.intro-line {
    width: 0;
    height: 1px;
    background: #c9a84c;
    margin: 1.5rem auto;
    transition: width 1000ms cubic-bezier(0.23, 1, 0.32, 1);
}

.intro-line.visible {
    width: 80%;
}

.intro-tagline {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a84c;
    min-height: 1.5em;
}

.intro-chevron {
    position: absolute;
    bottom: 3rem;
    font-size: 2rem;
    color: #c9a84c;
    animation: pulse-chevron 2s ease-in-out infinite;
}

@keyframes pulse-chevron {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.7; transform: translateY(6px); }
}

/* ============================================
   SIGNAL BAR (Ticker)
   ============================================ */
.signal-bar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 48px;
    background: #2a1220;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.signal-bar-inner {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
}

.signal-bar-inner span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #8a7263;
    letter-spacing: 0.05em;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   DOSSIER GRID
   ============================================ */
.dossier-grid {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ============================================
   MODULE BASE
   ============================================ */
.module {
    border: 1px solid rgba(201, 168, 76, 0.3);
    background: rgba(26, 10, 16, 0.8);
    padding: 2rem 2.5rem;
    position: relative;
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.23, 1, 0.32, 1),
                clip-path 800ms cubic-bezier(0.23, 1, 0.32, 1);
}

.module.left {
    align-self: flex-start;
    max-width: 60%;
    clip-path: inset(0 100% 0 0);
}

.module.right {
    align-self: flex-end;
    max-width: 55%;
    clip-path: inset(0 0 0 100%);
}

.module.revealed {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* ============================================
   HEADLINE CAPSULE
   ============================================ */
.headline-capsule {
    max-width: 280px !important;
    padding: 2.5rem 2rem;
}

.headline-capsule h2 {
    font-family: 'Poiret One', cursive;
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d4c5b8;
    line-height: 1.15;
}

.headline-capsule .deco-border {
    width: 40px;
    height: 1px;
    background: #c9a84c;
    margin: 1rem 0;
}

/* Deco corner accents */
.headline-capsule::before,
.headline-capsule::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #c9a84c;
    border-style: solid;
}

.headline-capsule::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.headline-capsule::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

/* ============================================
   DIGEST PANEL
   ============================================ */
.digest-panel {
    max-width: 55%;
}

.digest-panel.wide {
    max-width: 65%;
}

.digest-panel p {
    margin-bottom: 1rem;
}

.gold-rule {
    width: 60px;
    height: 1px;
    background: #c9a84c;
    margin: 0.75rem 0 1.25rem;
}

/* ============================================
   TOPIC TAG
   ============================================ */
.topic-tag {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c9a84c;
    display: inline-block;
}

/* ============================================
   META TEXT
   ============================================ */
.meta-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.1em;
    color: #8a7263;
    display: block;
    margin-top: 1rem;
}

/* ============================================
   VOID SPACER
   ============================================ */
.void-spacer {
    height: 120px;
    border: none;
    background: transparent;
}

/* ============================================
   SEAL MOTIF
   ============================================ */
.seal {
    align-self: center;
    opacity: 0;
    transition: opacity 800ms ease;
}

.seal.revealed {
    opacity: 1;
}

.seal-rings {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seal-ring {
    position: absolute;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 50%;
}

.seal-ring:nth-child(1) {
    width: 80px;
    height: 80px;
}

.seal-ring:nth-child(2) {
    width: 56px;
    height: 56px;
}

.seal-ring:nth-child(3) {
    width: 32px;
    height: 32px;
}

.seal-letter {
    font-family: 'Poiret One', cursive;
    font-size: 18px;
    color: #c9a84c;
    position: relative;
    z-index: 1;
}

/* ============================================
   3D TOTEM SECTION
   ============================================ */
.totem-section {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.totem-container {
    perspective: 600px;
}

.totem {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: totem-rotate 30s linear infinite;
}

@keyframes totem-rotate {
    0% { transform: rotateY(0deg) rotateX(15deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

/* Octahedron faces */
.octahedron .face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
}

.octahedron .face-1 {
    border-bottom: 100px solid rgba(74, 14, 42, 0.7);
    transform: rotateY(0deg) translateZ(0px) rotateX(35deg);
    transform-origin: bottom center;
}
.octahedron .face-2 {
    border-bottom: 100px solid rgba(122, 26, 58, 0.6);
    transform: rotateY(90deg) translateZ(0px) rotateX(35deg);
    transform-origin: bottom center;
}
.octahedron .face-3 {
    border-bottom: 100px solid rgba(74, 14, 42, 0.5);
    transform: rotateY(180deg) translateZ(0px) rotateX(35deg);
    transform-origin: bottom center;
}
.octahedron .face-4 {
    border-bottom: 100px solid rgba(122, 26, 58, 0.4);
    transform: rotateY(270deg) translateZ(0px) rotateX(35deg);
    transform-origin: bottom center;
}
.octahedron .face-5 {
    border-top: 100px solid rgba(74, 14, 42, 0.7);
    transform: rotateY(0deg) translateZ(0px) rotateX(-35deg);
    transform-origin: top center;
}
.octahedron .face-6 {
    border-top: 100px solid rgba(122, 26, 58, 0.6);
    transform: rotateY(90deg) translateZ(0px) rotateX(-35deg);
    transform-origin: top center;
}
.octahedron .face-7 {
    border-top: 100px solid rgba(74, 14, 42, 0.5);
    transform: rotateY(180deg) translateZ(0px) rotateX(-35deg);
    transform-origin: top center;
}
.octahedron .face-8 {
    border-top: 100px solid rgba(122, 26, 58, 0.4);
    transform: rotateY(270deg) translateZ(0px) rotateX(-35deg);
    transform-origin: top center;
}

/* Pyramid faces */
.pyramid .face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
}

.pyramid .face-1 {
    border-bottom: 120px solid rgba(74, 14, 42, 0.7);
    transform: rotateY(0deg) translateZ(35px) rotateX(30deg);
    transform-origin: bottom center;
}
.pyramid .face-2 {
    border-bottom: 120px solid rgba(122, 26, 58, 0.6);
    transform: rotateY(90deg) translateZ(35px) rotateX(30deg);
    transform-origin: bottom center;
}
.pyramid .face-3 {
    border-bottom: 120px solid rgba(74, 14, 42, 0.5);
    transform: rotateY(180deg) translateZ(35px) rotateX(30deg);
    transform-origin: bottom center;
}
.pyramid .face-4 {
    border-bottom: 120px solid rgba(122, 26, 58, 0.4);
    transform: rotateY(270deg) translateZ(35px) rotateX(30deg);
    transform-origin: bottom center;
}
.pyramid .face-5 {
    /* base */
    width: 120px;
    height: 120px;
    background: rgba(42, 18, 32, 0.6);
    transform: rotateX(90deg) translateZ(-60px);
    border: none;
}

/* Totem glow */
.totem {
    filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.15));
}

/* ============================================
   HOVER STATES
   ============================================ */
.module:hover {
    background: #4a0e2a;
    border-color: #7a1a3a;
    transition: background 300ms ease, border-color 300ms ease;
}

/* Breaking news indicator (Signal Red) */
.module.breaking::before {
    content: '◆ BREAKING';
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #c43a3a;
    animation: blink-red 1.5s ease-in-out infinite;
}

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

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.footer-line {
    width: 120px;
    height: 1px;
    background: #c9a84c;
    margin: 0 auto 2rem;
}

.footer-text {
    font-family: 'Poiret One', cursive;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    color: #c9a84c;
    text-transform: uppercase;
}

.footer-meta {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.18em;
    color: #8a7263;
    margin-top: 0.75rem;
    text-transform: uppercase;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 768px) {
    .module.left,
    .module.right,
    .digest-panel,
    .digest-panel.wide,
    .headline-capsule {
        max-width: 100% !important;
        align-self: stretch;
    }

    .intro-title {
        font-size: 12vw;
    }

    .dossier-grid {
        padding: 2rem 1rem;
    }

    .totem-section {
        height: 60vh;
    }
}
