/* ==========================================================================
   CSS LINK IN BIO — VIRALINK V2 (MÓDULOS DE BUSCA E NICHOS)
   * Foco: UI de Busca Instagram, Vitrine em Grade (Grid 0-100) e Curiosidade.
   * Complementa o vip.css original sem quebrar o layout existente.
   ========================================================================== */

/* ==========================================
   1. BARRA DE BUSCA (Estilo App)
   ========================================== */
.search-module {
    margin-bottom: 25px;
    width: 100%;
}

.vip-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 6px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.search-input-wrapper:focus-within {
    border-color: var(--neon-green, #00ff88);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--neon-green, #00ff88);
}

.search-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 14px 15px 14px 45px;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.search-input-wrapper input::placeholder {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-search-go {
    background: var(--neon-green, #00ff88);
    color: #0a0f1a;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.btn-search-go:active {
    transform: scale(0.85);
}

.search-alert {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInDown 0.3s ease-out;
}

.search-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.search-alert.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   2. SEÇÃO DE NICHOS (O HUB DE VITRINES)
   ========================================== */
.section-divider {
    position: relative;
    text-align: center;
    margin: 35px 0 20px 0;
    z-index: 1;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    z-index: -1;
}

.section-divider span {
    background: var(--bg-dark, #0a0f1a);
    padding: 0 15px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.niches-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.niche-pill-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 16px 10px;
    border-radius: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.niche-pill-btn i {
    font-size: 1.6rem;
    color: var(--neon-green, #00ff88);
    filter: drop-shadow(0 0 8px rgba(0,255,136,0.3));
    transition: transform 0.3s ease;
}

.niche-pill-btn:hover {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-3px);
    color: #ffffff;
}

.niche-pill-btn:hover i {
    transform: scale(1.1);
}

/* ==========================================
   3. VITRINE DE PRODUTOS (GRID 0-100)
   ========================================== */
.niche-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.niche-mini-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(0,0,0,0.2));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.niche-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: rgba(0, 255, 136, 0.3);
}

.niche-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 12px;
}

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

.niche-mini-card:hover .niche-img-box img {
    transform: scale(1.08);
}

/* Badge ID do Instagram (#400) */
.niche-id-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 15, 26, 0.85);
    backdrop-filter: blur(4px);
    color: var(--neon-green, #00ff88);
    font-size: 0.8rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 2;
}

.niche-title-sm {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 5px;
}

/* Overlay de Ação (Aparece no Hover no Desktop, fixo como barrinha no Mobile) */
.niche-overlay-hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green, #00ff88);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 0;
    text-align: center;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    transition: background 0.3s, color 0.3s;
}

.niche-mini-card:hover .niche-overlay-hover {
    background: var(--neon-green, #00ff88);
    color: #0a0f1a;
}

/* Utilitários Extras */
.mt-4 {
    margin-top: 1.5rem;
}

/* ==========================================
   4. RESPONSIVIDADE ESPECÍFICA (V2)
   ========================================== */
@media (max-width: 380px) {
    .niche-grid-container {
        gap: 10px;
    }
    
    .niche-mini-card {
        padding: 8px;
    }

    .niche-title-sm {
        font-size: 0.75rem;
    }

    .niches-buttons-grid {
        gap: 8px;
    }

    .niche-pill-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
}
