/* ==========================================================================
   EMPREGA - Footer Dinâmico - v1.0
   Visual: fundo escuro, links claros, CTA de busca destacado
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BASE
   -------------------------------------------------------------------------- */

.emprega-footer {
    margin-top: auto;
    font-family: inherit;
    color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   2. ANÚNCIO ANTES DO FOOTER
   -------------------------------------------------------------------------- */

.emprega-footer__ad {
    padding: 16px 0;
    min-height: 50px;
}

.emprega-footer__ad:empty {
    display: none;
    padding: 0;
}

/* --------------------------------------------------------------------------
   3. CTA DE BUSCA (barra verde/azul entre conteúdo e footer)
   -------------------------------------------------------------------------- */

.emprega-footer__cta {
    background: linear-gradient(135deg, #0f766e 0%, #0d6efd 100%);
    padding: 32px 0;
}

.emprega-footer__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.emprega-footer__cta-text {
    flex: 1;
    min-width: 250px;
}

.emprega-footer__cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.emprega-footer__cta-title i {
    font-size: 1rem;
    opacity: 0.8;
}

.emprega-footer__cta-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.emprega-footer__search {
    flex: 1.2;
    min-width: 300px;
}

.emprega-footer__search-fields {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.emprega-footer__search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 0.9375rem;
    outline: none;
    min-width: 0;
    background: #ffffff;
    color: #1a1a1a;
}

.emprega-footer__search-input::placeholder {
    color: #94a3b8;
}

.emprega-footer__search-select {
    width: 180px;
    padding: 12px 12px;
    border: none;
    border-left: 1px solid #e2e8f0;
    font-size: 0.875rem;
    outline: none;
    background: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.emprega-footer__search-btn {
    padding: 12px 20px;
    background: #198754;
    color: #ffffff;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.emprega-footer__search-btn:hover {
    background: #157347;
}

/* --------------------------------------------------------------------------
   4. COLUNAS PRINCIPAIS (fundo escuro)
   -------------------------------------------------------------------------- */

.emprega-footer__main {
    background: #1e293b;
    padding: 48px 0 32px;
}

.emprega-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
}

/* Coluna: Brand / Logo */
.emprega-footer__col--brand {
    padding-right: 20px;
}

.emprega-footer__logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.emprega-footer__logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.15s ease;
}

.emprega-footer__logo:hover {
    opacity: 1;
}

.emprega-footer__site-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
}

.emprega-footer__desc {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

/* Social */
.emprega-footer__social {
    display: flex;
    gap: 10px;
}

.emprega-footer__social-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.15s ease;
    color: #ffffff;
}

.emprega-footer__social-btn--whatsapp {
    background: #25d366;
}
.emprega-footer__social-btn--whatsapp:hover {
    background: #1ebd5c;
    transform: translateY(-2px);
    color: #ffffff;
}

.emprega-footer__social-btn--facebook {
    background: #1877f2;
}
.emprega-footer__social-btn--facebook:hover {
    background: #0d65d9;
    transform: translateY(-2px);
    color: #ffffff;
}

.emprega-footer__social-btn--instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.emprega-footer__social-btn--instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
    color: #ffffff;
}

/* Títulos de coluna */
.emprega-footer__col-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emprega-footer__col-title i {
    font-size: 0.8125rem;
    color: #0d6efd;
}

/* Links */
.emprega-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emprega-footer__links li {
    margin-bottom: 10px;
}

.emprega-footer__links a {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease, padding-left 0.15s ease;
}

.emprega-footer__links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.emprega-footer__links a i {
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    color: #475569;
    transition: color 0.15s ease;
}

.emprega-footer__links a:hover i {
    color: #0d6efd;
}

/* Contagem de vagas por cidade */
.emprega-footer__city-count {
    font-size: 0.75rem;
    color: #475569;
    margin-left: 2px;
}

.emprega-footer__links a:hover .emprega-footer__city-count {
    color: #64748b;
}

/* --------------------------------------------------------------------------
   5. WIDGETS DO ADMIN (mantém compatibilidade)
   -------------------------------------------------------------------------- */

.emprega-footer__widgets {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 24px 0;
}

/* --------------------------------------------------------------------------
   6. FOOTER MENU
   -------------------------------------------------------------------------- */

.emprega-footer__menu {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 16px 0;
}

/* --------------------------------------------------------------------------
   7. COPYRIGHT
   -------------------------------------------------------------------------- */

.emprega-footer__copyright {
    background: #0f172a;
    padding: 18px 0;
}

.emprega-footer__copyright-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.emprega-footer__copyright-text {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

.emprega-footer__copyright-text a {
    color: #94a3b8;
    text-decoration: none;
}

.emprega-footer__copyright-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.emprega-footer__made-in {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.emprega-footer__heart {
    color: #ef4444;
    font-size: 0.75rem;
    animation: emprega-heartbeat 2s ease-in-out infinite;
}

@keyframes emprega-heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   8. RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .emprega-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    
    .emprega-footer__col--brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .emprega-footer__social {
        justify-content: center;
    }
    
    .emprega-footer__desc {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .emprega-footer__cta {
        padding: 24px 0;
    }
    
    .emprega-footer__cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .emprega-footer__cta-title {
        justify-content: center;
        font-size: 1.125rem;
    }
    
    .emprega-footer__search {
        min-width: 100%;
    }
    
    .emprega-footer__search-fields {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .emprega-footer__search-input {
        border-radius: 10px 10px 0 0;
    }
    
    .emprega-footer__search-select {
        width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
    
    .emprega-footer__search-btn {
        border-radius: 0 0 10px 10px;
        justify-content: center;
        padding: 14px;
    }
    
    .emprega-footer__main {
        padding: 36px 0 24px;
    }
    
    .emprega-footer__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .emprega-footer__col--brand {
        text-align: center;
    }
    
    .emprega-footer__col-title {
        justify-content: center;
    }
    
    .emprega-footer__links {
        text-align: center;
    }
    
    .emprega-footer__links a {
        justify-content: center;
    }
    
    .emprega-footer__links a:hover {
        padding-left: 0;
    }
    
    .emprega-footer__copyright-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .emprega-footer__logo {
        max-width: 150px;
    }
}

/* --------------------------------------------------------------------------
   9. ACESSIBILIDADE
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .emprega-footer__heart,
    .emprega-footer__social-btn,
    .emprega-footer__links a {
        animation: none;
        transition: none;
        transform: none !important;
    }
}

.emprega-footer a:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
    border-radius: 4px;
}
