/* ==========================================================================
   EMPREGA SIDEBAR - Estilos dos widgets e correções
   Adicionar ao style.css ou enqueue separado via functions.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. WIDGETS DO SIDEBAR
   -------------------------------------------------------------------------- */

.emprega-sidebar .emprega-widget {
    border-radius: 8px;
    overflow: hidden;
}

.emprega-sidebar .emprega-widget .card-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.emprega-sidebar .emprega-widget .card-header .h6 {
    font-size: 0.85rem;
    font-weight: 600;
}

/* CTA card com borda de destaque */
.emprega-cta-card {
    border-width: 1.5px !important;
}

/* Badges de cidade */
.emprega-city-badge {
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.emprega-city-badge:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

.emprega-city-badge:hover span {
    color: rgba(255,255,255,0.7) !important;
}

/* Lista de vagas no sidebar */
.emprega-sidebar .list-group-item {
    transition: background-color 0.15s ease;
    border-left: 2px solid transparent;
}

.emprega-sidebar .list-group-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.04);
    border-left-color: var(--bs-primary);
}

.emprega-sidebar .list-group-item a {
    line-height: 1.4;
}


/* --------------------------------------------------------------------------
   2. SOCIAL ICONS (movido de inline no loop para CSS externo)
   Antes estava repetido dentro de <style> em cada card de vaga
   -------------------------------------------------------------------------- */

.social-icons a {
    text-decoration: none;
    margin-right: 5px;
}

.social-icons a:focus,
.social-icons a:active {
    outline: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .social-icons {
        margin-top: 10px;
    }
    .btn-enviar-curriculo {
        width: 100%;
        margin-bottom: 10px;
    }
    .social-icons a {
        width: 48px;
        height: 48px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


/* --------------------------------------------------------------------------
   3. SIDEBAR RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    /* Botão de abrir sidebar mobile */
    .emprega-sidebar > button {
        border-radius: 8px;
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    /* Offcanvas do sidebar */
    .emprega-sidebar .offcanvas-header {
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    
    /* Cards menores no mobile sidebar */
    .emprega-sidebar .emprega-widget {
        margin-bottom: 12px !important;
    }
}

@media (min-width: 992px) {
    /* Sidebar sticky no desktop */
    .emprega-sidebar .offcanvas-lg {
        position: sticky;
        top: 80px; /* Altura do header sticky */
    }
    
    /* Espaçamento refinado */
    .emprega-sidebar .emprega-widget {
        box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    }
}
