/* ═══════════════════════════════════════════════════════════
   1. VARIÁVEIS BASE
   ═══════════════════════════════════════════════════════════ */
:root {
    --bg-deep: #080608;
    --bg-card: #100A0A;
    --bg-card-hover: #160C0C;

    --neon-red: #E8001C;
    --neon-red-40: rgba(232, 0, 28, 0.40);
    --neon-red-15: rgba(232, 0, 28, 0.15);
    --neon-red-08: rgba(232, 0, 28, 0.08);

    --neon-crimson: #FF2240;
    --neon-crimson-40: rgba(255, 34, 64, 0.40);

    --text-primary: #EEE8E8;
    --text-muted: #8A7A7A;

    --font-title: 'Rajdhani', sans-serif;
    --font-body: 'Barlow', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   2. RESET E FUNDO
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

a { text-decoration: none; color: inherit; }

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.10) 2px,
        rgba(0, 0, 0, 0.10) 4px
    );
}

/* ═══════════════════════════════════════════════════════════
   3. CONTAINER PRINCIPAL
   ═══════════════════════════════════════════════════════════ */
.tree-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ═══════════════════════════════════════════════════════════
   4. CABEÇALHO DO PERFIL
   ═══════════════════════════════════════════════════════════ */
.tree-profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 120px;
}

.profile-name {
    font-family: var(--font-title);
    font-size: clamp(2rem, 8vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
}

.glow-text {
    color: var(--neon-red);
    text-shadow: 0 0 18px var(--neon-red-40), 0 0 40px var(--neon-red-15);
}

.profile-role {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-sub {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.profile-tag {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.tag-brand {
    color: var(--neon-red);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   5. BANNERS
   ═══════════════════════════════════════════════════════════ */
.tree-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.link-banner {
    display: block;
    perspective: 1000px;
}

.link-banner__inner {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(232, 0, 28, 0.15);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(16px 0%, 100% 0%, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0% 100%, 0% 16px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Placeholders "em breve" */
.banner-placeholder {
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(232, 0, 28, 0.25);
}

/* Cantos Decorativos */
.corner { position: absolute; width: 12px; height: 12px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.corner--tl { top: 0; left: 0; border-top: 2px solid var(--neon-red); border-left: 2px solid var(--neon-red); }
.corner--br { bottom: 0; right: 0; border-bottom: 2px solid var(--neon-red); border-right: 2px solid var(--neon-red); }

/* Hover: banner ativo */
.link-banner:not(.link-banner--empty):hover .link-banner__inner {
    border-color: var(--neon-red-40);
    box-shadow: inset 0 0 24px var(--neon-red-15), 0 0 16px var(--neon-red-08);
}

.link-banner:not(.link-banner--empty):hover .banner-img {
    transform: scale(1.03);
}

.link-banner:not(.link-banner--empty):hover .corner { opacity: 1; }

/* Hover: banner vazio (sutil) */
.link-banner--empty:hover .link-banner__inner {
    border-color: rgba(232, 0, 28, 0.10);
}

/* ═══════════════════════════════════════════════════════════
   6. RODAPÉ E ANIMAÇÕES
   ═══════════════════════════════════════════════════════════ */
.tree-footer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
}

[data-animate] { opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate="fade-up"] { transform: translateY(20px); }
[data-animate].is-visible { opacity: 1; transform: translate(0, 0); }

/* ═══════════════════════════════════════════════════════════
   7. RESPONSIVIDADE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .tree-wrapper { padding: 40px 16px; }
    .tree-profile { margin-top: 80px; }
    .profile-name { font-size: clamp(2rem, 11vw, 3.2rem); }
    .profile-role { font-size: 0.85rem; }
}
