/* ══════════════════════════════════════════════════════
   ESTILO.CSS — 5 Plenitudes · Alquimia Interna Taoista
   ══════════════════════════════════════════════════════ */

/* ── Base ── */
body { background-color: #0a0a0a; color: #e8ddc5; overflow-x: hidden; }
h1, h2, h3, h4, h5, .title-font { font-family: 'Fraunces', serif; }

/* ── Navegação ── */
.glass-nav { 
    background: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(201, 162, 75, 0.1);
}

/* ── Menu Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 60;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: #e8ddc5;
    transition: all 0.3s ease;
    display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 767px) {
    .hamburger { display: flex; }
    .nav-links { display: none !important; }
    .nav-links.active { 
        display: flex !important; 
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.99);
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid rgba(201, 162, 75, 0.2);
        z-index: 50;
    }
    .nav-links.active a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(201, 162, 75, 0.1);
        font-size: 12px;
    }
    .nav-brand { height: 32px; }
    .glass-nav { padding: 8px 16px; }
}

/* ── Parallax (sem background-attachment: fixed) ── */
.parallax-section {
    position: relative;
    overflow: hidden;
}
.parallax-img {
    position: absolute;
    inset: 0;
    height: 120%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    z-index: 0;
}
.ink-veil { 
    background: linear-gradient(to bottom, rgba(10,10,10,0.7), rgba(10,10,10,0.4), rgba(10,10,10,0.95)); 
    position: relative;
    z-index: 1;
}

/* ── Partículas flutuantes ── */
.mote { 
    position: absolute; 
    bottom: -20px; 
    width: 4px; 
    height: 4px; 
    border-radius: 50%; 
    background: radial-gradient(circle, #c9a24b, transparent); 
    opacity: 0; 
    animation: rise linear infinite; 
}
@keyframes rise { 
    0% { opacity: 0; transform: translateY(0) scale(0.5); } 
    20% { opacity: 0.6; } 
    100% { opacity: 0; transform: translateY(-80vh) scale(1.5); } 
}
.motes-paused .mote {
    animation-play-state: paused;
}

/* ── Taijitu ── */
.taijitu-outer {
    animation: spin-slow 40s linear infinite;
}
.taijitu-ring {
    animation: spin-reverse 60s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

/* ── Órbita Microcósmica ── */
.alchemy-wrapper { position: relative; height: 300vh; }
.alchemy-sticky { 
    position: sticky; 
    top: 0; 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
}
.orbit-container { 
    position: relative; 
    width: 100%; 
    max-width: 420px; 
    height: 70vh; 
    max-height: 580px; 
    z-index: 10; 
    margin: 0 auto; 
}
.orbit-image { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    opacity: 0.92; 
    filter: drop-shadow(0 0 15px rgba(201,162,75,0.12)); 
    z-index: 5; 
}
.orbit-svg { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 12; 
}

/* Textos da órbita */
.alchemy-text-box { 
    position: absolute; 
    width: 320px; 
    opacity: 0; 
    z-index: 20; 
    will-change: transform, opacity;
}

@media (min-width: 768px) {
    .text-left-side { 
        right: calc(50% + 140px); 
        text-align: right;
        top: 30%;
    }
    .text-right-side { 
        left: calc(50% + 140px); 
        text-align: left;
        top: 30%;
    }
}

@media (max-width: 767px) {
    .alchemy-wrapper { height: 350vh; }
    .alchemy-text-box { 
        position: absolute;
        width: calc(100% - 40px); 
        max-width: 320px;
        text-align: center; 
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        bottom: 8%;
        top: auto !important;
        background: rgba(10, 10, 10, 0.88);
        backdrop-filter: blur(8px);
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(201, 162, 75, 0.15);
    }
    .orbit-container { 
        max-width: 260px;
        height: 55vh;
    }
}

/* ── Cards de Plenitude ── */
.plenitude-circle {
    transition: all 0.4s ease;
    border-color: rgba(201, 162, 75, 0.3);
}
.plenitude-card:hover .plenitude-circle {
    border-color: rgba(201, 162, 75, 0.9);
    box-shadow: 0 0 30px rgba(201, 162, 75, 0.5);
    transform: rotate(10deg) scale(1.1);
}

/* ── Sistema de Reveal ao Scroll ── */
.revelar {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.revelar.visivel {
    opacity: 1;
    transform: translateY(0);
}

/* ── Divisor Nanquim SVG ── */
.divisor-nanquim {
    display: block;
    margin: 0 auto;
    max-width: 300px;
    height: auto;
    opacity: 0.35;
}

/* ── Caractere 道 na citação ── */
.tao-bg-char {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: min(50vw, 400px);
    font-family: 'Cardo', serif;
    fill: none;
    stroke: rgba(201, 162, 75, 0.08);
    stroke-width: 1;
    pointer-events: none;
    z-index: 0;
}

/* ── Blog — Tipografia do artigo ── */
.artigo-corpo {
    font-size: 19px;
    line-height: 1.8;
    color: #d4cbb8;
}
.artigo-corpo h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    color: #fff;
    margin: 2.5rem 0 1rem;
}
.artigo-corpo h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: #e8ddc5;
    margin: 2rem 0 0.75rem;
}
.artigo-corpo p { margin-bottom: 1.25rem; }
.artigo-corpo blockquote {
    border-left: 3px solid #c9a24b;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: #b8a888;
    font-style: italic;
}
.artigo-corpo ul, .artigo-corpo ol {
    margin: 1rem 0 1.5rem 1.5rem;
}
.artigo-corpo li { margin-bottom: 0.5rem; }
.artigo-corpo a {
    color: #c9a24b;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.artigo-corpo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    margin: 1.5rem 0;
}
.artigo-corpo .video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}
.artigo-corpo .video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Animações de glow ── */
.pulse-glow { 
    animation: pulseGlow 6s ease-in-out infinite; 
}
@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .revelar { opacity: 1; transform: none; }
    .alchemy-text-box { opacity: 1 !important; }
    .alchemy-wrapper { height: auto; }
    .alchemy-sticky { position: relative; height: auto; padding: 4rem 0; }
}
