/* ==========================================================================
   CSS COMUNIDADE VIRALINK - ANUNCIAR GRUPO (TEMA CLARO PREMIUM COM HERO ESCURO)
   ========================================================================== */

:root {
    --primary-green: #00b864; /* Verde adaptado para fundo claro */
    --whatsapp-color: #25D366;
    --telegram-color: #0088cc;
    --discord-color: #5865F2; /* Cor oficial do Discord */
    --card-bg: rgba(255, 255, 255, 0.95); /* Fundo branco do formulário */
    --card-border: #e2e8f0; /* Borda cinza clara */
    --input-bg: #f8fafc; /* Fundo dos campos de digitar */
}

.anunciar-page {
    position: relative;
    width: 100%;
    background: transparent; 
    color: #1a202c; 
    padding-top: 0px; 
    padding-bottom: 0px; 
}

/* ==========================================
   1. HERO SECTION (BANNER BONITO ESCURO)
   ========================================== */
.anunciar-hero {
    background: linear-gradient(135deg, #0a0f1a 0%, #111827 100%);
    padding: 120px 0 60px 0; 
    margin-bottom: -50px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anunciar-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #ffffff !important; 
}

.text-neon-green {
    color: #00ff88; 
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.anunciar-subtitle {
    font-size: 1.1rem;
    color: #a0aec0; 
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   2. PAINEL DO FORMULÁRIO (SOBREPOSTO AO HERO)
   ========================================== */
.anunciar-form-section {
    position: relative;
    z-index: 10;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); 
}

/* ==========================================
   3. INDICADOR DE PASSOS
   ========================================== */
.steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
}

.step {
    flex: 1;
    text-align: center;
    color: #a0aec0; 
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.step.active {
    color: var(--primary-green);
    text-shadow: none;
}

.step i {
    margin-right: 5px;
}

/* ==========================================
   4. CAMPOS DO FORMULÁRIO (TEXTOS VISÍVEIS E DROPDOWN)
   ========================================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #2d3748 !important; 
}

.text-danger {
    color: #e53e3e;
}

.input-with-icon {
    display: flex;
    position: relative;
    gap: 10px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096; 
    pointer-events: none;
    z-index: 2; 
}

/* Estilo unificado para Inputs, Textareas e o novo Select */
.input-with-icon input, 
.input-with-icon select, 
textarea {
    flex: 1;
    width: 100%;
    background-color: var(--input-bg) !important; 
    border: 1px solid #cbd5e0 !important; 
    color: #1a202c !important; 
    padding: 15px;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    caret-color: var(--primary-green); 
}

/* Ajuste de padding por causa dos ícones */
.input-with-icon input, 
.input-with-icon select {
    padding-left: 45px; 
}

/* Placeholder e Opção Default */
.input-with-icon input::placeholder, 
textarea::placeholder,
.input-with-icon select:invalid {
    color: #a0aec0 !important; 
    opacity: 1; 
}

/* Foco nos campos */
.input-with-icon input:focus, 
.input-with-icon select:focus, 
textarea:focus {
    outline: none !important;
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 100, 0.15) !important; 
    background-color: #ffffff !important; 
}

/* Ajustes específicos do Dropdown (Select) */
.select-wrapper {
    position: relative;
}
.input-with-icon select {
    appearance: none; /* Remove a setinha feia padrão do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}
.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    pointer-events: none; /* Deixa o clique passar para o select */
    z-index: 2;
}

textarea {
    resize: vertical;
}

.form-hint, .char-count {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #718096; 
}

/* ==========================================
   5. BOTÕES
   ========================================== */
.btn-fetch {
    background: linear-gradient(90deg, #4299e1, #3182ce);
    color: #fff !important;
    border: none;
    padding: 0 25px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    white-space: nowrap;
}

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

.btn-submit-premium {
    width: 100%;
    background: var(--primary-green);
    color: #ffffff !important; 
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 100, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 184, 100, 0.4);
}

.pulse-animation {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(0, 184, 100, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(0, 184, 100, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 184, 100, 0); }
}

/* ==========================================
   6. PREVIEW DO GRUPO (Oculto até buscar)
   ========================================== */
.hidden {
    display: none !important;
}

.group-preview-box {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.preview-loading {
    text-align: center;
    color: var(--primary-green);
    font-weight: 600;
    padding: 20px 0;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

#previewImg {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    background: #e2e8f0;
    border: 2px solid var(--card-border);
}

.preview-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #1a202c; 
}

.badge-platform {
    display: inline-block;
    padding: 6px 14px; /* Pouquinho maior pra ficar elegante */
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================
   7. LETREIRO ROTATIVO VIP (MARQUEE)
   ========================================== */
.vip-scrolling-banner {
    background: #111827; 
    border-top: 3px solid var(--primary-green);
    padding: 15px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 60px; 
}

.scrolling-link {
    text-decoration: none;
    display: block;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scrolling-text span {
    padding: 0 30px;
}

.vip-scrolling-banner:hover .scrolling-text {
    animation-play-state: paused;
}

@keyframes scrollText {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   8. RESPONSIVIDADE
   ========================================== */
@media (max-width: 768px) {
    .form-wrapper {
        padding: 25px 15px;
    }

    .input-with-icon {
        flex-direction: column;
    }

    .btn-fetch {
        width: 100%;
        padding: 15px;
    }
    
    .select-arrow {
        top: 25px; /* Ajuste da seta no mobile já que os inputs empilham */
    }

    .steps-indicator {
        font-size: 0.8rem;
    }

    .preview-content {
        flex-direction: column;
        text-align: center;
    }
    
    .vip-scrolling-banner {
        margin-top: 40px;
    }
}
