/* =====================
   DESIGN SYSTEM
====================== */
:root {
    --bg-dark: #050507;
    --text-primary: #f2f2f5;
    --text-muted: #9aa0a6;
    
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    
    --red: #e63946;
    --red-glow: rgba(230, 57, 70, 0.5);
    
    --blue: #457b9d;
    --pale: #c1cab6;
    --grey: #8a8a8a;
    
    --glass-bg: rgba(20, 20, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);

    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark); color: var(--text-primary);
    font-family: var(--font-body); line-height: 1.6; overflow-x: hidden;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 2rem; }
.my-4 { margin: 4rem 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.glow-gold-text { text-shadow: 0 0 20px var(--gold-glow); color: var(--gold); }
.red-glow-text { text-shadow: 0 0 20px var(--red-glow); color: var(--red); }
.gold-text { color: var(--gold); }

h1, h2, h3, h4, .title, .era-title, .sub-era-title { font-family: var(--font-heading); }

ul { padding-left: 1.5rem; }
ul li { margin-bottom: 0.5rem; color: var(--text-muted); }

/* =====================
   HERO 
====================== */
.hero {
    height: 90vh; display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle at center, rgba(30,30,40,0.4) 0%, var(--bg-dark) 80%);
}

.title {
    font-size: clamp(3rem, 8vw, 6rem);
    background: linear-gradient(135deg, #ffffff, var(--gold));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    margin-bottom: 1rem; animation: fadeInDown 2s ease-out;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.8rem); color: var(--text-muted); letter-spacing: 5px; text-transform: uppercase;
    animation: fadeInUp 2s ease-out 0.5s both;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    color: var(--gold); font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
    animation: bounce 2s infinite 2s both; opacity: 0;
}
.arrow-down {
    width: 15px; height: 15px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(45deg); margin: 15px auto 0;
}

/* =======================================================
   O INFOGRÁFICO ORIGINAL (PANORAMA HORIZONTAL HTML)
======================================================= */
.panorama-wrapper {
    padding: 3rem 1rem;
    background: radial-gradient(circle at center, #1b1b22 0%, var(--bg-dark) 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.panorama-scroll {
    width: 100%; overflow-x: auto; overflow-y: hidden;
    padding: 2rem 0 4rem 0;
    scrollbar-color: var(--gold) rgba(255, 255, 255, 0.05); scrollbar-width: thin;
    cursor: grab;
}
.panorama-scroll:active { cursor: grabbing; }

/* Container Principal Flexbox Strict */
.infographic-canvas {
    display: flex;
    align-items: center; /* Center vertically overall */
    height: 700px;
    padding: 0 50px;
    position: relative;
    font-family: var(--font-body);
    min-width: max-content;
}

.hz-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 350px; /* Exact middle of 700px height */
    height: 6px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--red) 45%, var(--gold) 100%);
    box-shadow: 0 0 15px var(--gold-glow);
    z-index: 1;
}

.hz-col {
    height: 700px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    flex-shrink: 0; /* Important: never shrink columns */
    position: relative;
}

/* 1. Ascensão */
.ascensao-col { width: 120px; justify-content: center; }
.ascensao-rect {
    background: var(--gold);
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 20px 10px;
    border-radius: 8px;
    height: 400px;
    width: 60px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    text-align: center;
    box-shadow: 0 0 20px var(--gold-glow);
    margin: 0 auto;
}

/* 2. Selos */
.seal-col {
    width: 50px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 340px; /* starts exactly slightly above the line to center the dot */
    margin-right: 25px;
}
.seal-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #111;
    z-index: 3;
    margin-top: 0px; 
}
.seal-dot.white { background: #fff; }
.seal-dot.red { background: var(--red); }
.seal-dot.black { background: #333; }
.seal-dot.pale { background: #cdedaa; }
.seal-dot.gold { background: var(--gold); }
.seal-dot.blue { background: var(--blue); }

.seal-line {
    width: 2px;
    height: 60px;
    background: rgba(255,255,255,0.3);
}
.seal-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    margin-top: 5px;
}

/* 3. Arrebatamento */
.arrebatamento-col { width: 140px; align-items: center; margin: 0 40px; justify-content: center; }
.arrebatamento-arrow {
    background: var(--gold); color: #000; font-weight: 800; font-size: 1.1rem; width: 80px; height: 300px; position: relative;
    writing-mode: vertical-rl; text-orientation: mixed; text-align: center; padding-top: 20px; margin-bottom: 25px; transform: translateY(-20px);
}
.arrebatamento-arrow::before {
    content: ''; position: absolute; top: -60px; left: -40px; border-left: 80px solid transparent; border-right: 80px solid transparent; border-bottom: 60px solid var(--gold);
}

/* 3.5 Acordo com Israel */
.israel-col { width: 280px; align-items: flex-start; padding-top: 360px; margin-left: 10px; z-index: 4; }
.israel-connection { display: flex; align-items: center; }
.star-david { 
    font-size: 1.8rem; color: var(--blue); background: #111; border: 2px solid var(--blue); border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 0 15px rgba(69, 123, 157, 0.5);
}
.israel-line { width: 30px; height: 2px; background: #fff; }
.black-paz-bar { background: #000; color: #fff; border: 1px solid #333; padding: 10px; font-weight: 700; font-size: 0.8rem; box-shadow: 0 5px 15px rgba(0,0,0,0.8); width: 200px; text-align: center; }

/* 144 Mil Judeus */
.element-144mil {
    width: 60px; align-items: center; padding-top: 360px; margin-right: 15px;
}
.bar-144mil {
    background: #111; color: #fff; border: 1px solid #444; font-weight: 800; font-size: 0.7rem;
    writing-mode: vertical-rl; text-orientation: mixed; text-align: center;
    padding: 15px 8px; height: 180px; width: 45px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* 4. Tribulação */
.trib-col { width: 550px; margin-left: 30px; }

/* Above line: profanação + trombetas */
.trib-above-line {
    position: absolute; top: 80px; left: 0; right: 0;
    display: flex; gap: 15px; z-index: 3;
}
.red-profanacao-box {
    background: var(--red); color: #fff; font-weight: 800; font-size: 0.8rem;
    padding: 18px 22px; border-radius: 4px; box-shadow: 0 0 20px var(--red-glow);
    text-align: left; min-width: 200px; flex-shrink: 0; align-self: flex-end;
}
.red-profanacao-box p { margin: 6px 0; }

/* Conector: da profanação até a junção das barras (fim dos 3.5 falsa paz) */
.profanacao-connector {
    position: absolute;
    left: 198px; /* alinhado com a junção entre falsa paz (200px) e grande tribulação */
    top: 280px;
    width: 3px;
    height: 70px; /* de ~280px até ~350px */
    background: var(--red);
    box-shadow: 0 0 6px var(--red-glow);
    z-index: 4;
}

.trombetas-list {
    display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; align-self: flex-start;
}
.red-trombeta {
    background: var(--red); color: #fff; font-weight: 800; font-size: 0.75rem;
    padding: 5px 18px; border-radius: 4px; width: 160px; text-align: center;
}

/* Period bars at line level */
.hz-period-bars { display: flex; width: 550px; position: absolute; top: 350px; z-index: 3; }
.falsa-paz-section { width: 200px; position: relative; }
.white-paz-bar { background: #fff; color: #000; font-weight: 800; font-size: 0.75rem; padding: 8px 10px; text-align: center; height: 35px; display: flex; align-items: center; justify-content: center; }
.grande-trib-section { flex: 1; position: relative; }
.red-trib-bar { background: var(--red); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 8px 10px; text-align: center; height: 35px; display: flex; align-items: center; justify-content: center; }
.grande-trib-bottom-text { font-weight: 800; font-size: 0.75rem; text-align: center; margin-top: 10px; color: #ccc; line-height: 1.4; }

/* Conector + Caixa: Morte das Testemunhas no final da grande tribulação */
.morte-connector {
    position: absolute;
    right: 2px; /* alinhado com o final da barra vermelha */
    top: 385px; /* logo abaixo da barra (350 + 35) */
    width: 3px;
    height: 50px;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 0 6px rgba(255,255,255,0.3);
    z-index: 4;
}
.white-morte-box {
    position: absolute;
    right: -60px; /* centralizado com o conector */
    top: 435px; /* abaixo do conector (385 + 50) */
    background: #fff; color: #000; font-weight: 800; font-size: 0.75rem;
    padding: 15px 20px; border-radius: 4px; text-align: center;
    box-shadow: 0 0 15px rgba(255,255,255,0.4); width: max-content; z-index: 4;
}

/* 5. Volta */
.volta-col { width: 140px; margin-left: 60px; align-items: center; }
.white-tribunal-box { background: #fff; color: #000; font-weight: 800; font-size: 0.8rem; padding: 15px; border-radius: 8px; text-align: center; position: absolute; top: 100px; width: 180px; box-shadow: 0 0 20px rgba(255,255,255,0.4); }
.volta-arrow { background: var(--gold); color: #000; font-weight: 800; font-size: 1rem; width: 80px; height: 250px; position: absolute; top: 350px; writing-mode: vertical-rl; text-orientation: mixed; text-align: center; padding-top: 20px; }
.volta-arrow::after { content: ''; position: absolute; bottom: -60px; left: -40px; border-left: 80px solid transparent; border-right: 80px solid transparent; border-top: 60px solid var(--gold); }

/* 6. Taças */
.tacas-col { width: 1200px; flex-direction: row; gap: 15px; align-items: flex-start; padding-top: 360px; margin-left: 60px; }
.black-taca { background: #000; border: 1px solid #333; padding: 15px; width: 140px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border-top: 4px solid #444; }
.taca-title { font-weight: 800; font-size: 0.75rem; color: #fff; border-bottom: 1px solid #333; padding-bottom: 5px; }
.taca-desc { font-weight: 600; font-size: 0.65rem; color: #aaa; text-transform: uppercase; }
.armagedom-taca { background: #110000; border: 1px solid var(--red); box-shadow: 0 0 20px rgba(230,57,70,0.4); padding: 15px; width: 160px; display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--red); }
.red-title { color: var(--red); border-bottom-color: var(--red); font-size: 0.85rem; }

/* 7. Pós Armagedom (barras verticais) */
.pos-arma-col {
    width: 320px; flex-direction: row; gap: 12px;
    align-items: center; justify-content: center;
    margin-left: 40px;
}
.pos-arma-bar {
    writing-mode: vertical-rl; text-orientation: mixed;
    font-weight: 800; font-size: 0.75rem; text-align: center;
    padding: 15px 10px; border-radius: 4px; height: 200px;
    display: flex; align-items: center; justify-content: center; width: 50px;
}
.red-fire-bar { background: var(--red); color: #fff; }
.dark-red-bar { background: #500; color: #fff; border: 2px dashed var(--red); }
.black-nations-bar { background: #111; color: #fff; border: 1px solid #444; }

/* 8. Milênio */
.milenio-col { width: 350px; margin-left: 60px; justify-content: center; display: flex; align-items: center; }
.milenio-container { position: relative; width: 100%; height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: -30px; z-index: 3; }
.yellow-milenio-box { 
    background: rgba(212,175,55,0.15); border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-heading); font-size: 1.8rem; font-weight: bold; text-align: center; padding: 20px; border-radius: 8px; height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.2); z-index: 2;
}
.white-igreja-box {
    background: #fff; color: #000; border-radius: 8px; position: absolute; top: -60px; left: 10px; right: 10px; padding: 25px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 5; text-align: left; border: 2px solid rgba(0,0,0,0.1);
}

/* 9. Finais (barras verticais como referência) */
.finais-col {
    width: 250px; margin-left: 40px;
    flex-direction: row; gap: 12px;
    align-items: center; justify-content: center;
}
.finais-bar {
    writing-mode: vertical-rl; text-orientation: mixed;
    font-weight: 800; font-size: 0.8rem; text-align: center;
    padding: 15px 12px; border-radius: 4px; height: 260px;
    display: flex; align-items: center; justify-content: center; width: 55px;
    z-index: 2;
}
.finais-black { background: #111; color: #fff; border: 1px solid #444; }
.finais-red { background: #222; color: #fff; border: 1px solid #555; }
.finais-white { background: #fff; color: #000; box-shadow: 0 0 20px rgba(255,255,255,0.4); }

/* 10. Novos Céus */
.novos-ceus-col {
    width: 300px;
    margin-left: 40px;
    justify-content: center;
}
.novos-ceus-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.2;
    text-shadow: 0 0 30px var(--gold-glow);
}

/* =======================================================
   TIMELINE VERTICAL EXATA
======================================================= */
.timeline-container { position: relative; max-width: 1100px; margin: 0 auto; padding: 0 1rem 5rem 1rem; }
.timeline-line {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 4px;
    background: linear-gradient(to bottom, transparent, var(--gold) 15%, var(--red) 45%, var(--gold) 85%, transparent);
    transform: translateX(-50%); border-radius: 4px; z-index: 0; box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.vertical-timeline { position: relative; width: 100%; padding-top: 2rem; }
.timeline-item { position: relative; width: 50%; padding: 2rem 3rem; z-index: 2; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }

.timeline-item::after {
    content: ''; position: absolute; width: 24px; height: 24px; background: var(--bg-dark); border: 4px solid var(--gold);
    border-radius: 50%; top: calc(50% - 12px); z-index: 10; box-shadow: 0 0 15px var(--gold-glow);
}
.timeline-item.left::after { right: -14px; }
.timeline-item.right::after { left: -14px; }

/* Timeline Blocks */
.timeline-block { position: relative; z-index: 3; width: 100%; }

.era-title {
    font-size: clamp(2rem, 5vw, 3rem); background: var(--bg-dark); display: inline-block; padding: 0.5rem 2rem;
    border-radius: 40px; border: 1px solid var(--glass-border); box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.sub-era-title { font-size: 2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; display: inline-block; }
.star-of-david { font-size: 3rem; text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); background: var(--bg-dark); display: inline-block; padding: 0.5rem; border-radius: 50%;}

/* Cards e Badges */
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 2.2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); transition: transform 0.4s ease, box-shadow 0.4s ease; display: inline-block; width: 100%; max-width: 450px;
}
.glass-card.grand { max-width: 600px; }
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.15); }
.glass-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: 0.8rem; }
.glass-card p { color: var(--text-muted); font-size: 0.95rem; }

.timeline-item.left .glass-card { margin-left: auto; text-align: right; }
.timeline-item.left .glass-card ul { direction: rtl; padding-left: 0; padding-right: 1.5rem; }

.highlight { font-weight: 700; color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.4rem; display: inline-block; }
.highlight.red { color: var(--red); }
.highlight.gold { color: var(--gold); }
.highlight.grey { color: var(--grey); }
.highlight.pale { color: var(--pale); }
.highlight.light-blue { color: var(--blue); }

.badge { background: var(--bg-dark); padding: 0.8rem 2rem; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; box-shadow: 0 0 20px rgba(255, 255, 255, 0.05); }
.badge.red { border-color: var(--red); color: #ffb3b3; box-shadow: 0 0 20px var(--red-glow); }

.arrow-upwards { border: 2px solid var(--gold); border-bottom: none; border-radius: 12px 12px 0 0; }
.arrow-upwards h2 { color: var(--gold); font-size: 2.2rem; margin-bottom: 0.5rem; text-transform: uppercase;}
.arrow-downwards { border: 2px solid var(--gold); border-top: none; border-radius: 0 0 12px 12px; }
.arrow-downwards h2 { color: var(--gold); font-size: 2.2rem; margin-top: 0.5rem; text-transform: uppercase;}
.eternal-glow { background: radial-gradient(circle at center, rgba(20,20,25,0.95) 0%, rgba(5,5,7,1) 100%); box-shadow: 0 0 60px rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); }

/* Animações e Reveal */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); opacity: 1; } 40% { transform: translateY(-15px) translateX(-50%); opacity: 1; } 60% { transform: translateY(-7px) translateX(-50%); opacity: 1; } }

/* Footer */
.footer { text-align: center; padding: 4rem 2rem; border-top: 1px solid var(--glass-border); color: var(--text-muted); }

/* Responsive */
@media (max-width: 850px) {
    .timeline-line { left: 30px; }
    .timeline-item { width: 100%; padding: 1.5rem 1rem 1.5rem 4rem; text-align: left !important; }
    .timeline-item.right { left: 0; }
    .timeline-item.left::after, .timeline-item.right::after { left: 18px; right: auto; }
    .glass-card { max-width: 100%; margin-left: 0 !important; text-align: left !important;}
    .timeline-item.left .glass-card ul { direction: ltr; padding-right: 0; padding-left: 1.5rem; }
    .era-title { font-size: 1.5rem; padding: 0.5rem 1rem; }
}
