/* ══════════════════════════════════════════════════════════════════════
   marca-pessoal.css — Base de design compartilhada do cluster pessoal
   (cartão · currículo · portfólio · projetos)
   ────────────────────────────────────────────────────────────────────────
   Contém: tokens (light glassmorphism, marca/design-guide.md) + chrome
   comum (reset, body, announce-bar, fundo animado, navegação, rodapé,
   foco). As páginas carregam ESTE arquivo + o seu CSS específico
   (cartao.css / curriculo.css / portfolio.css / projeto.css). NÃO
   precisam mais do main.css (announce-bar mora aqui).
   ══════════════════════════════════════════════════════════════════════ */

:root {
    --bg:           #ededed;
    --nav-bg:       rgba(255,255,255,.82);
    --card-bg:      rgba(255,255,255,.55);
    --glass:        rgba(255,255,255,.55);
    --glass-hov:    rgba(255,255,255,.75);
    --border:       rgba(0,0,0,.07);
    --orange:       #f46f1f;
    --orange-light: #ff8b4a;
    --orange-glow:  rgba(244,111,31,.32);
    --green:        #25d366;
    --text:         #000000;
    --text-sub:     #8892a4;
    --text-dim:     #3d4a5c;
    --r-card:       14px;
    --r-btn:        13px;
    --font-display: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
    --font-body:    'Montserrat', 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-top: 40px;          /* altura da announce-bar */
    overflow-x: hidden;
    position: relative;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }

/* ── Announce-bar (faixa de escassez no topo) ── */
.announce-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 102;
    background: linear-gradient(90deg, #e85a1c, #f46f1f, #ff8c42, #f46f1f, #e85a1c);
    background-size: 300% 100%;
    color: #fff; height: 40px; overflow: hidden;
    animation: gradient-shift 6s ease-in-out infinite;
}
.announce-bar::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 25%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    animation: bar-shimmer 3.5s ease-in-out infinite;
    pointer-events: none;
}
.announce-track {
    height: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.announce-item {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
    opacity: 0; pointer-events: none;
}
.announce-item.active {
    opacity: 1; pointer-events: auto;
    animation: slide-in-up 0.45s cubic-bezier(0.22,1,0.36,1) forwards;
}
.announce-item.exiting { animation: slide-out-up 0.35s ease-in forwards; }
.announce-item.active i { animation: fire-flicker 1.4s ease-in-out infinite; display: inline-block; }
.announce-item i { font-size: 0.9rem; }
.announce-item strong { font-weight: 700; }
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes bar-shimmer { 0% { transform: translateX(-120%); } 100% { transform: translateX(400%); } }
@keyframes slide-in-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-out-up { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-14px); } }
@keyframes fire-flicker {
    0%,100% { transform: scale(1) rotate(-4deg); opacity: 1; }
    25%     { transform: scale(1.25) rotate(2deg); opacity: 0.9; }
    50%     { transform: scale(1.1) rotate(-2deg); opacity: 1; }
    75%     { transform: scale(1.3) rotate(4deg); opacity: 0.85; }
}

/* ── Fundo animado (estrutura) ──
   As posições/cores dos orbs (.bg-orb-1/2/3) ficam no CSS de cada página. */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.bg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.016) 1px, transparent 1px);
    background-size: 64px 64px;
}

/* ── Navegação ── */
.nav {
    position: sticky; top: 40px; z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 10px; height: 52px;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: .76rem; font-weight: 800;
    color: var(--orange); letter-spacing: .08em;
    text-transform: uppercase; text-decoration: none;
    flex-shrink: 0;
}
.nav-links {
    display: flex; align-items: center; gap: 3px;
    position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 10px; border-radius: 8px;
    font-size: .8rem; font-weight: 500;
    color: var(--text-sub); text-decoration: none;
    transition: all .15s ease; min-height: 36px; white-space: nowrap;
}
.nav-link i { font-size: .72rem; }
.nav-link:hover { background: var(--glass); color: var(--text); }
.nav-link.active { background: rgba(244,111,31,.1); color: var(--orange); font-weight: 600; }

/* Botão à direita da nav: .btn-back (Voltar) */
.btn-back {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 13px; height: 34px;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-sub);
    font-size: .76rem; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all .15s ease;
    white-space: nowrap; flex-shrink: 0;
}
.btn-back i { color: var(--orange); font-size: .72rem; }
.btn-back:hover {
    border-color: rgba(244,111,31,.28); color: var(--orange); background: rgba(244,111,31,.07);
}
@media (max-width: 500px) {
    .nav-link span, .btn-back span { display: none; }
}

/* ── Rodapé ── */
.site-footer {
    position: relative; z-index: 1;
    text-align: center; padding: 22px 20px 28px;
    border-top: 1px solid rgba(0,0,0,.07);
}
.site-footer p { font-size: .66rem; color: var(--text-dim); line-height: 1.6; }

/* ── Foco visível (acessibilidade) ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--orange); outline-offset: 3px;
}

/* ── Respeitar quem desliga animações ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
