/* =========================================
   ARQUIVO: vagas.css
   ESTILOS DA PÁGINA DE PAINEL DE VAGAS
   ========================================= */



/* Cabeçalho Interno (Reaproveitado) */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.page-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.655); /* Verde escuro */
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.1rem;
    color: #e8f2ef;
}

/* =========================================
   LAYOUT PRINCIPAL DAS VAGAS
   ========================================= */
.jobs-section {
    padding: 60px 20px 100px;
    background-color: var(--bg-light);
}

.jobs-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr; /* 300px pra barra esquerda, o resto pras vagas */
    gap: 40px;
    align-items: start;
}

@media (max-width: 900px) {
    .jobs-container {
        grid-template-columns: 1fr; /* Fica empilhado no celular */
    }
}

/* --- Barra Lateral (Filtros) --- */
.filter-box {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.filter-box h3 {
    font-size: 1.25rem;
    color: var(--brand-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    background-color: #f8fafc;
    color: var(--text-main);
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(24, 73, 56, 0.1);
}

.btn-filter-search {
    width: 100%;
    background-color: var(--brand-primary);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-filter-search:hover {
    background-color: var(--brand-primary-hover);
    transform: translateY(-2px);
}

/* CTA Empresas na Barra Lateral */
.company-cta-box {
    background-color: #e8f2ef;
    border: 1px solid #cbd5e1;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.company-cta-box i {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 16px;
}

.company-cta-box h4 {
    color: var(--brand-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.company-cta-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: inline-block;
    background-color: white;
    border: 1px solid var(--brand-dark);
    color: var(--brand-dark);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    background-color: var(--brand-dark);
    color: white;
}

/* --- Lista de Vagas (Lado Direito) --- */
.jobs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.jobs-header h2 {
    font-size: 1.5rem;
    color: var(--brand-dark);
}

.sort-by {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sort-by a {
    color: var(--brand-primary);
    font-weight: 600;
}

/* Cards de Vaga Específicos */
.job-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border-left: 4px solid transparent; /* Muda de cor conforme a categoria */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.08);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.job-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

/* Cores das Categorias */
.badge-construcao { background-color: var(--brand-primary); }
.badge-mobiliario { background-color: #ce7e2d; } /* Laranja */
.badge-premoldados { background-color: #475569; } /* Cinza escuro */

.job-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.job-info h3 {
    font-size: 1.35rem;
    color: var(--brand-dark);
    margin-bottom: 4px;
}

.company-name {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.company-name i { margin-right: 6px; }

.job-details {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.job-details li {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9;
    padding: 6px 12px;
    border-radius: 4px;
}

.job-details i {
    color: var(--brand-primary);
}

.job-action {
    border-top: 1px solid #e2e8f0;
    padding-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.btn-apply {
    background-color: white;
    color: var(--brand-primary);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    background-color: var(--brand-primary);
    color: white;
}

/* Paginação e Contatos Rodapé extras (Reaproveitados das outras páginas) */
.pagination { display: flex; gap: 8px; }
.page-btn { width: 40px; height: 40px; border: 1px solid #cbd5e1; background-color: white; color: var(--text-muted); border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.page-btn.active, .page-btn:hover { background-color: var(--brand-primary); color: white; border-color: var(--brand-primary); }
.page-btn:last-child { width: auto; padding: 0 16px; }
.contact-footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-footer-list li { color: #cbd5e1; font-size: 0.95rem; display: flex; align-items: center; gap: 12px; }
.contact-footer-list i { color: var(--brand-primary); font-size: 1.1rem; width: 20px; text-align: center; }

/* ==========================================================================
   COMPONENTES ESPECÍFICOS: VAGAS E BOTÕES DE AÇÃO
   ========================================================================== */


/* Botão de Candidatura via WhatsApp (Sobrescreve a borda e o hover do .btn-apply) */
.btn-apply.btn-whatsapp {
    background-color: #075e54;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: none;
}

/* NOVO: Remove a sombra verde medonha quando o botão é clicado/focado */
.btn-apply.btn-whatsapp:focus {
    box-shadow: none !important;
    outline: none !important;
}

.btn-apply.btn-whatsapp:hover {
    background-color: #128c7e;
    
    color: #ffffff;
}

/* Botão Desabilitado (Sem contato cadastrado) */
.btn-disabled {
    background-color: #cbd5e1;
    color: #475569;
    border: none;
    cursor: not-allowed;
    width: 100%;
}

/* Estilos do Select de Ordenação */
.sort-select {
    border: none;
    background: transparent;
    color: var(--brand-primary);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

/* Link para limpar filtros */
.btn-clear-filters {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-clear-filters:hover {
    color: #ef4444;
}

/* Descrição encurtada da vaga */
.job-description-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: -10px;
    margin-bottom: 20px;
}

/* Layout de estado vazio (Nenhuma vaga encontrada) */
.empty-state-container {
    text-align: center;
    padding: 50px;
    background: white;
    border-radius: 12px;
}

.empty-state-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.empty-state-title {
    color: #475569;
}

.empty-state-text {
    color: #94a3b8;
}

.pagination-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
}

/* ==========================================================================
   AJUSTES RESPONSIVOS (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* Centraliza os botões de ação dentro do card no celular */
    .job-action {
        justify-content: center; 
    }

    /* Dica de UX: No celular, botões com largura total (100%) são mais fáceis de clicar com o dedo. 
       Se quiser o botão ocupando toda a largura, descomente as 3 linhas abaixo: */
    
    /* .btn-apply {
        width: 100%;
    } */
}