/* ==========================================================================
   CSS COMUNIDADE VIRALINK - DIRETÓRIO & VIP (DARK NEON EDITION)
   ========================================================================== */

/* --- VARIÁVEIS LOCAIS --- */
:root {
    --neon-green: #00ff88;
    --neon-green-glow: rgba(0, 255, 136, 0.4);
    --whatsapp-color: #25D366;
    --telegram-color: #0088cc;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.1);
}

.comunidade-page {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    background: #050810; /* Fundo global escuro */
}

/* ==========================================
   1. HERO SECTION (FUNIL A/B LADO A LADO)
   ========================================== */
.vip-banner-wrapper {
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 100%);
    padding: 140px 0 80px 0; /* Padding alto para fugir do header fixo */
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil no fundo do banner */
.vip-banner-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.vip-funnel-box {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Área de Texto */
.vip-cta-content {
    flex: 1.2;
    color: #ffffff;
}

.vip-badge-pulse {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green-glow);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.vip-cta-content h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.vip-cta-content p {
    font-size: 1.15rem;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 30px;
}

.vip-cta-content strong {
    color: var(--neon-green);
}

/* Botões do Funil (Lado a Lado) */
.vip-buttons-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-vip-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex: 1; /* Ocupa espaço igual */
    min-width: 240px;
}

.btn-whatsapp-pulse {
    background: var(--neon-green);
    color: #0a0f1a;
    box-shadow: 0 10px 25px var(--neon-green-glow);
}

.btn-whatsapp-pulse:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.6);
    color: #000;
}

.btn-telegram-pulse {
    background: #0f172a;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
}

.btn-telegram-pulse:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.4);
}

.vip-security-note {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 10px;
}

/* Imagem 3D do Funil */
.vip-cta-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.banner-link-3d {
    display: block;
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
}

.banner-link-3d:hover {
    transform: translateY(-10px) rotate(1deg) scale(1.02);
    box-shadow: 0 20px 50px var(--neon-green-glow);
}

.banner-img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   2. DIRETÓRIO (VITRINE DE PARCEIROS)
   ========================================== */
.community-directory-section {
    padding: 60px 0;
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title-line {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.text-muted {
    color: #64748b;
}

.btn-anunciar-grupo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #f6e05e, #ecc94b);
    color: #1a202c;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-anunciar-grupo:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(236, 201, 75, 0.3);
    color: #000;
}

/* ==========================================
   3. FILTROS DE CATEGORIA (NUvem de Tags)
   ========================================== */
.community-filters { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 40px;
    flex-wrap: wrap; /* Agora eles quebram para a linha de baixo se não couberem */
    justify-content: flex-start;
}

a.filter-btn { 
    padding: 10px 24px; 
    border-radius: 50px; 
    background: #0f172a; 
    color: #cbd5e1; 
    border: 1px solid #334155; 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.95rem; 
    transition: all 0.3s ease;
    display: inline-block; /* Garante o formato correto na quebra de linha */
}

a.filter-btn:hover { 
    background: #1e293b; 
    color: #fff;
    border-color: #475569;
}

a.filter-btn.active { 
    background: var(--neon-green); 
    color: #0a0f1a; 
    border-color: var(--neon-green); 
    box-shadow: 0 4px 15px var(--neon-green-glow); 
}

/* ==========================================
   4. CARDS DE GRUPO
   ========================================== */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.group-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.featured-card {
    border: 1px solid #ecc94b;
    box-shadow: 0 0 15px rgba(236, 201, 75, 0.1);
}

.group-card-header {
    position: relative;
    height: 180px;
    width: 100%;
    background: #0f172a;
    overflow: hidden;
}

.group-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.group-card:hover .group-img { transform: scale(1.08); }

.group-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #475569;
    background: #1e293b;
}

.group-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #ecc94b;
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

.group-card-body {
    padding: 24px 20px 10px 20px;
    flex-grow: 1;
}

.group-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.group-desc {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.group-card-footer {
    padding: 15px 20px 25px 20px;
}

.btn-join-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.btn-join-group.whatsapp { background: var(--whatsapp-color); color: #fff; }
.btn-join-group.telegram { background: var(--telegram-color); color: #fff; }

.btn-join-group:hover { filter: brightness(1.1); transform: translateY(-2px); }

.group-footer-hint {
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* ==========================================
   5. RESPONSIVIDADE (MOBILE)
   ========================================== */
@media (max-width: 1024px) {
    .vip-funnel-box { gap: 30px; }
    .vip-cta-content h2 { font-size: 2.4rem; }
}

@media (max-width: 992px) {
    .vip-funnel-box {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .vip-cta-image { justify-content: center; }
    .vip-cta-content h2 { font-size: 2.2rem; }
    
    .vip-buttons-row { flex-direction: column; }
    .btn-vip-cta { width: 100%; }

    .directory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .vip-banner-wrapper { padding: 120px 15px 50px 15px; } /* Ajuste de topo para mobile */
    .section-title-line { font-size: 1.8rem; }
    .btn-anunciar-grupo { width: 100%; justify-content: center; }
    
    /* Centraliza os botões de filtro no mobile */
    .community-filters {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .vip-cta-content h2 { font-size: 1.9rem; }
    .banner-link-3d { border-radius: 12px; }
    .groups-grid { grid-template-columns: 1fr; }
}
