/* ==========================================================================
   1. VARIÁVEIS GLOBAIS (DESIGN SYSTEM)
   ========================================================================== */
:root {
    --primary: #2d3436;
    --accent: #27ae60;    /* Verde Dinheiro */
    --bg: #f4f7f6;
    --white: #ffffff;
    --dark-blue: #2c3e50;
    --text-gray: #636e72;
    --comment-bg: #e8f5e9; /* Fundo suave para o comentário do Sniper */
}

/* ==========================================================================
   2. ESTILOS BASE (RESET & TIPOGRAFIA)
   ========================================================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: var(--bg);
    color: var(--primary);
    line-height: 1.8;
}

p {
    text-align: justify;
    margin-bottom: 20px;
}

/* ==========================================================================
   3. CABEÇALHO (HEADER) - VERSÃO SLIM & ELITE
   ========================================================================== */
header {
    background: var(--dark-blue);
    padding: 0.6rem 5%; /* Reduzido de 1rem para 0.6rem (Mais estreito) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--accent);
    position: sticky; /* Opcional: faz o menu seguir a rolagem */
    top: 0;
    z-index: 1000;
}

.logo { 
    font-weight: 800; 
    font-size: 1.2rem; /* Reduzido de 1.5rem para 1.2rem */
    color: var(--white);
    letter-spacing: -1px; 
    text-decoration: none;
}

nav a { 
    text-decoration: none; 
    color: #bdc3c7;
    margin-left: 15px; /* Reduzido de 20px para 15px para compactar */
    font-weight: 500; 
    font-size: 0.85rem; /* Fonte levemente menor para parecer mais técnico */
    transition: 0.3s;
}

nav a:hover { 
    color: var(--accent); 
}


/* ==========================================================================
   AJUSTE: BOTÃO PIX DISCRETO NO NAV
   ========================================================================== */
.btn-nav-pix {
    background: rgba(39, 174, 96, 0.08); /* Verde bem clarinho de fundo */
    color: var(--accent) !important;      /* Força a cor verde */
    padding: 6px 15px !important;        /* Espaçamento interno */
    border-radius: 50px;                 /* Formato pílula */
    border: 1px solid rgba(39, 174, 96, 0.3);
    font-size: 0.85rem;
    margin-left: 25px !important;        /* Afasta dos outros links */
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-nav-pix i {
    font-size: 0.8rem;
}

.btn-nav-pix:hover {
    background: var(--accent);           /* Inverte as cores no hover */
    color: white !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
    transform: translateY(-1px);
}

/* Ajuste Mobile para o Botão */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 1.5rem 5%;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    nav a {
        margin-left: 0 !important;
        font-size: 0.9rem;
    }
    .btn-nav-pix {
        margin-top: 5px;
    }
}

/* ==========================================================================
   4. COMPONENTES DO INDEX (HOME)
   ========================================================================== */
.data-banner {
    background: linear-gradient(135deg, var(--accent), var(--dark-blue));
    color: white;
    padding: 30px 5%;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.main-link {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.card-content { padding: 25px; }

.tag {
    background: #e8f5e9;
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}

.card h2 { font-size: 1.3rem; margin: 15px 0; line-height: 1.4; color: var(--dark-blue); }

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* ==========================================================================
   5. COMPONENTES DO ARTIGO (POST)
   ========================================================================== */
.content-wrapper {
    max-width: 800px;
    margin: 40px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.meta-info {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.content-wrapper h1 { font-size: 2.3rem; line-height: 1.2; margin-bottom: 20px; color: #2c3e50; }

.my-comment {
    background: var(--comment-bg);
    border-left: 5px solid var(--accent);
    padding: 25px;
    font-style: italic;
    margin: 35px 0;
    border-radius: 0 10px 10px 0;
}

.my-comment strong {
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
    font-style: normal;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.post-body p { font-size: 1.1rem; }

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

/* ==========================================================================
   6. RODAPÉ (FOOTER)
   ========================================================================== */
.main-footer {
    background-color: var(--dark-blue);
    color: #ecf0f1;
    padding: 50px 5% 20px 5%;
    margin-top: 60px;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.logo-footer { font-weight: 800; font-size: 2.0rem; color: var(--accent); display: block; margin-bottom: 10px; }

.footer-info p { color: #bdc3c7; margin: 0; }

.footer-links h4 { color: var(--white); margin-top: 0; margin-bottom: 15px; }

.footer-links a {
    display: block;
    color: #bdc3c7;
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.footer-tag { 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
}

.footer-tag p { margin: 0 0 5px 0; color: #ecf0f1; }
.footer-tag small { color: #7f8c8d; display: block; }

/* ==========================================================================
   7. TICKER (RADAR DE COTAÇÕES) - CORREÇÃO DE PRECISÃO
   ========================================================================== */
.ticker-wrapper {
    background: #0a0a0a;
    color: #00ff41; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 12px 0;
    overflow: hidden;
    border-bottom: 2px solid #2ecc71;
    width: 100%;
    display: flex;
    position: relative;
}

.ticker-wrapper::before,
.ticker-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px; /* Aumentado para um degradê mais suave */
    height: 100%;
    z-index: 2;
}
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, #0a0a0a, transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(to left, #0a0a0a, transparent); }

.ticker-content {
    display: flex;
    white-space: nowrap;
    gap: 80px;
    /* CORREÇÃO: A animação agora começa totalmente fora da tela à direita */
    animation: ticker-move 30s linear infinite; 
    will-change: transform;
}

.ticker-content:hover {
    animation-play-state: paused;
    cursor: crosshair;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ticker-label {
    color: #555;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.ticker-value {
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.4);
}

/* A Mágica do Movimento Infinito Sniper: Entrada pela direita, saída pela esquerda */
@keyframes ticker-move {
    0% {
        transform: translateX(100vw); /* Começa fora da tela, à direita */
    }
    100% {
        transform: translateX(-100%); /* Termina quando o último item sai da tela à esquerda */
    }
}

/* ==========================================================================
   8. PÁGINA SOBRE & RESPONSIVIDADE
   ========================================================================== */
.page-about {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    gap: 60px;
}

.page-about .profile-img { 
    flex: 1; 
    min-width: 320px; 
    max-width: 400px;
    height: 450px;
    border-radius: 20px; 
    box-shadow: 20px 20px 0px #27ae60; 
    object-fit: cover;
}

.page-about .about-text { flex: 1.5; }
.page-about .about-text h1 { color: #2c3e50; font-size: 2.8rem; margin-bottom: 15px; }
.page-about .about-text h2 { color: #27ae60; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }

.page-about .highlight-box { 
    background: #ffffff; 
    border-left: 6px solid #27ae60; 
    padding: 25px; 
    margin: 20px 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-about .cta-button {
    display: inline-block;
    background: #27ae60; 
    color: white;
    padding: 16px 35px; 
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .footer-container, .footer-tag { text-align: center; align-items: center; }
    .page-about { flex-direction: column; text-align: center; }
    .content-wrapper { padding: 20px; margin: 10px; }
    .ticker-content { animation-duration: 20s; } /* No mobile corre um pouco mais rápido para não cansar */
    @keyframes ticker-move {
        0% { transform: translateX(100vw); }
        100% { transform: translateX(-150%); } /* Ajuste extra para mobile */
    }
}

/* Melhoria para o sistema de comentários */
#cusdis_thread iframe {
    width: 100% !important;
    min-height: 450px !important;
    border: none !important;
    overflow: hidden !important; /* Tira a barra de rolagem interna do iframe */
}

.comment-section {
    max-width: 100%;
    overflow: visible !important; /* Garante que a seção principal se expanda */
}


/* Botão Artigos estilizado*/
/* Botão Artigos estilizado */
.nav-artigos {
    background: rgba(255, 215, 0, 0.1) !important; /* Amarelo bem suave no fundo */
    padding: 8px 15px;
    border-radius: 20px;
    color: #ffd700 !important; 
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.nav-artigos:hover {
    background: #ffd700 !important;
    color: var(--dark-blue) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Estilo para o botão de Ferramentas */
.nav-ferramentas {
    background: rgba(0, 242, 255, 0.1) !important; /* Ciano suave no fundo */
    padding: 8px 15px;
    border-radius: 20px;
    color: #00f2ff !important;
    border: 1px solid rgba(0, 242, 255, 0.2);
    margin-left: 5px;
}

/* Ajuste nos Botões Coloridos para caberem no menu estreito */
.nav-artigos, .nav-ferramentas {
    padding: 5px 12px !important; /* Mais fino horizontal e verticalmente */
    font-size: 0.8rem !important;
}

.nav-ferramentas:hover {
    background: #00f2ff !important;
    color: var(--dark-blue) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

/* Ajuste no Botão Pix para não ficar "Gordo" */
.btn-nav-pix {
    padding: 4px 12px !important;
    font-size: 0.75rem !important;
    margin-left: 15px !important;
}

/* Estado Ativo específico para a página de Ferramentas */
.nav-ferramentas.active {
    background: #00f2ff !important; /* Ciano sólido */
    color: var(--dark-blue) !important; /* Texto escuro para contraste */
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    font-weight: bold;
}

/* Título em Ciano para combinar com o botão ativo */
.data-banner h1 {
    color: #00f2ff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.data-banner p {
    color: rgba(0, 242, 255, 0.8) !important; /* Ciano suave no subtítulo */
}