/* ============================
   RESET & BASE
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #cac9d9;
    color: #594e4e;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #121212;
    color: #aa8b8d;
}

/* ============================
   HERO & CARDS
============================ */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.logo-hero {
    width: 160px;
    margin-bottom: 10px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.dark .card {
    background: #1e1e1e;
}

/* ============================
   UI ELEMENTS (DARK TOGGLE & BUTTONS)
============================ */
.dark-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    background: #414194;
    color: white;
    cursor: pointer;
    z-index: 999;
}

/* Efeito 3D de pressão em todos os botões */
button, .btn-primary {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:active, .btn-primary:active {
    transform: scale(0.92);
    box-shadow: 0 0 8px #000 inset;
}
/* ============================================================
   MENU DE CATEGORIAS (BOTÕES SUPERIORES)
   Ajustado para Quebra de Linha + Estilo Neon
   ============================================================ */
.menu-horizontal {
    display: flex;
    flex-wrap: wrap;       /* Permite que os botões pulem para a linha de baixo */
    gap: 15px;             /* Espaço entre os botões neon */
    justify-content: center;
    padding: 20px 10px;
    overflow-x: visible;   /* Importante: garante que o brilho neon não seja cortado */
}

.menu-horizontal button {
    position: relative;    /* Necessário para o efeito ::after */
    padding: 12px 24px;
    border: none;
    background: #222;      /* Fundo escuro destaca o neon */
    color: white;
    cursor: pointer;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.4s ease;
    z-index: 1;            /* Mantém o texto acima da borda */
}

/* Borda Neon Animada */
.menu-horizontal button::after {
    content: "";
    position: absolute;
    inset: -2px;           /* Levemente para fora para a borda aparecer */
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00eaff, #ffcc00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;          /* Borda visível mas suave por padrão */
    transition: 0.4s ease;
}

/* Efeito ao passar o mouse e quando Ativo */
.menu-horizontal button:hover::after,
.menu-horizontal button.active::after {
    opacity: 1;
    filter: drop-shadow(0 0 8px #00eaff); /* Brilho externo */
}

.menu-horizontal button.active {
    transform: scale(1.05);
    background: #414194;
    box-shadow: 0 0 15px #6a6ad4, 0 0 25px #6a6ad4;
}


/* ============================================================
   CONTEÚDO DOS LINKS (LINKS INFERIORES)
   Formato: Coluna Única (Lista Vertical)
   ============================================================ */
.menu-content {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.menu-content.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.menu-content a {
    text-decoration: none;
    background: #4f4c5b;
    color: #f7e1e1;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    width: 100%;            /* Ocupa a largura da coluna */
    max-width: 500px;       /* Tamanho máximo para não esticar demais */
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.menu-content a:hover {
    background: #cecedd;
    color: rgb(133, 165, 110);
    transform: translateX(5px); /* Efeito lateral suave */
}

/* Animação de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}


body.dark .menu-horizontal button {
    background: #5c5c8c;
    color: #fff;
}


/* ============================
FILTROS DO BLOG (PREMIUM)
============================ */
#filtrosBlog {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

#filtrosBlog button {
    position: relative;
    padding: 12px 22px;
    border-radius: 30px;
    border: 2px solid transparent;
    background: #111827;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

/* Ícones dos Filtros */
#filtrosBlog button[data-tag="mercado"]::before { content: "📈"; }
#filtrosBlog button[data-tag="lancamentos"]::before { content: "🚀"; }
#filtrosBlog button[data-tag="tendencias"]::before { content: "✨"; }
#filtrosBlog button[data-tag="todos"]::before { content: "🌐"; }

#filtrosBlog button::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: linear-gradient(45deg, #ff00cc, #3333ff, #00eaff, #ffcc00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: 0.4s ease;
}

#filtrosBlog button:hover::after,
#filtrosBlog button.active::after {
    opacity: 1;
}

#filtrosBlog button:hover {
    box-shadow: 0 0 12px #00eaff, 0 0 20px #00eaff;
    transform: translateY(-2px);
}

#filtrosBlog button.active {
    background: #414194;
    color: white;
    box-shadow: 0 0 15px #6a6ad4, 0 0 25px #6a6ad4;
}

body.dark #filtrosBlog button {
    background: #1f1f1f;
    color: #fff;
}

body.dark #filtrosBlog button.active {
    background: #6a6ad4;
}

/* ============================
   CORRETORES DO MÊS
============================ */
.corretores-mes {
    text-align: center;
}

.corretor-categorias {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.corretor-box {
    flex: 1;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 12px;
}

body.dark .corretor-box {
    background: #2a2a2a;
}

.foto-corretor {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #414194;
    margin-bottom: 10px;
}

.emoji-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.emoji {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.emoji:hover {
    transform: scale(1.3);
}

.emoji-contagem {
    margin-top: 10px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ============================
   RANKING & BLOG GRID
============================ */
.ranking-lista {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f4f4f4;
    padding: 12px;
    border-radius: 8px;
}

.ranking-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.ranking-posicao {
    font-size: 22px;
    font-weight: bold;
    width: 40px;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.post img {
    width: 100%;
    border-radius: 8px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #414194;
    font-weight: bold;
}

.blogs-lado-a-lado {
    display: flex;
    gap: 20px;
}

.blogs-lado-a-lado .blog {
    flex: 1;
}

/* ============================
   DOWNLOADS & FOOTER
============================ */
.button-area {
    display: flex;
    gap: 20px;
}

.btn-primary {
    padding: 12px 20px;
    background: #414194;
    color: white;
    border-radius: 8px;
    text-decoration: none;
}

.footer {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}

/* ============================
   EFEITOS VISUAIS (PARTÍCULAS)
============================ */
.click-particle {
    position: fixed;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #00eaff, #0066ff);
    border-radius: 50%;
    pointer-events: none;
    animation: particleAnim 0.6s ease-out forwards;
    z-index: 9999;
}

@keyframes particleAnim {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

/* ============================
   RESPONSIVIDADE (MOBILE)
============================ */
@media (max-width: 900px) {
    .corretor-categorias,
    .blogs-lado-a-lado,
    .button-area {
        flex-direction: column;
    }
}