/* =====================================================
   Portal de Vagas — CSS customizado (acrescenta ao Bootstrap)
   ===================================================== */

:root {
    --site-section-spacing: 4rem;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--bs-body-font-family, system-ui, sans-serif);
    color: var(--bs-body-color, #212529);
    background: var(--bs-body-bg, #fff);
}

/* ===== Cabeçalho ===== */
.navbar {
    min-height: 70px;
}
.navbar .nav-link {
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: background .15s, color .15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bs-primary) !important;
    background: rgba(13, 110, 253, .08);
}

/* ===== Hero / Carrossel ===== */
.carousel-item img,
.carousel-item .carousel-bg {
    width: 100%;
    height: 480px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}
@media (max-width: 768px) {
    .carousel-item img,
    .carousel-item .carousel-bg { height: 320px; }
}
.carousel-caption {
    background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,0,0,.3));
    border-radius: 12px;
    padding: 1.5rem 2rem;
    left: 5%;
    right: 5%;
    text-align: left;
}
.carousel-caption h2 { font-weight: 700; font-size: 2rem; margin-bottom: .5rem; }
.carousel-caption p { font-size: 1.1rem; margin-bottom: 1rem; }

/* ===== Seções ===== */
.section {
    padding-top: var(--site-section-spacing);
    padding-bottom: var(--site-section-spacing);
}
.section-sm { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-title {
    font-weight: 700;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: #6b7280;
    margin-bottom: 2.5rem;
}

/* ===== Cards de vaga ===== */
.vaga-card {
    transition: transform .15s ease, box-shadow .15s ease;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    height: 100%;
}
.vaga-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.vaga-card .card-title { font-weight: 600; }
.vaga-card .badge { font-weight: 500; }
.vaga-card .vaga-meta {
    color: #6b7280;
    font-size: .875rem;
}

/* ===== Detalhe da vaga ===== */
.vaga-detail h1 { font-weight: 700; }
.vaga-detail .vaga-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}
.vaga-detail .vaga-info-item {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .9rem;
}
.vaga-detail .vaga-info-item i { color: var(--bs-primary); margin-top: 2px; }

/* ===== Formulário de candidatura ===== */
.form-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.form-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--bs-primary);
    color: var(--bs-primary);
}
.completeness-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}
.completeness-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-accent));
    transition: width .3s ease;
}
.vaga-highlight {
    background: linear-gradient(135deg, rgba(13,110,253,.08), rgba(253,126,20,.08));
    border: 1px solid rgba(13,110,253,.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ===== Blog ===== */
.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}
.blog-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.blog-post h1, .blog-post h2, .blog-post h3 { margin-top: 1.5rem; }

/* ===== Banners menores ===== */
.banner-small {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
    background: #f1f5f9;
}
.banner-small img,
.banner-small .banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.banner-small:hover img,
.banner-small:hover .banner-bg { transform: scale(1.05); }
.banner-small .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.7) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

/* ===== CTA faixa ===== */
.cta-faixa {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-accent));
    color: #fff;
    padding: 3rem 0;
    border-radius: 16px;
}
.cta-faixa .btn { background: #fff; color: var(--bs-primary); border: none; font-weight: 600; }

/* ===== Sobre ===== */
.sobre-hero {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-accent));
    color: #fff;
    padding: 5rem 0;
    border-radius: 0 0 24px 24px;
}

/* ===== Contato ===== */
.contact-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
}

/* ===== Pagination ===== */
.pagination .page-link {
    color: var(--bs-primary);
    border-radius: 6px !important;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ===== Back to top ===== */
.btn-back-to-top {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* ===== Loading overlay ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}
.loading-overlay.show { display: flex; }

/* ===== Admin ===== */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #1e293b;
}
.admin-sidebar .nav-link {
    color: #cbd5e1;
    padding: .75rem 1rem;
    border-radius: 6px;
    margin: 2px 8px;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
}
.admin-sidebar .nav-link i { margin-right: .5rem; width: 18px; text-align: center; }
.admin-content { padding: 1.5rem 2rem; }
.stat-card {
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: box-shadow .15s;
}
.stat-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1; margin-top: .5rem; }
.stat-card .stat-label { color: #6b7280; font-size: .875rem; }

/* Tabelas admin */
.table td, .table th { vertical-align: middle; }

/* Badges status */
.status-badge {
    font-size: .75rem;
    padding: .35em .6em;
    border-radius: 999px;
    font-weight: 600;
}

/* Helpers */
.cursor-pointer { cursor: pointer; }
.text-accent { color: var(--bs-accent) !important; }
.bg-accent { background: var(--bs-accent) !important; }
.fw-medium { font-weight: 500; }
.divider { height: 1px; background: #e5e7eb; margin: 1.5rem 0; }

/* Ícone + em negrito em botões de "Nova X" */
.btn .bi-plus-lg {
    font-weight: 900 !important;
    -webkit-text-stroke: 0.5px currentColor;
}

/* Garantir que dropdowns em tabelas não gerem overflow horizontal */
.card .table-responsive {
    overflow-x: auto;
}
.table-actions-dropdown .dropdown-menu {
    z-index: 1080;
}

/* =====================================================
   PADRONIZAÇÃO DE BOTÕES
   Todos os botões de ação (primário, share, accent) têm:
   - texto em CAIXA ALTA
   - mesmo peso e espaçamento
   - mesmo tamanho (exceto .btn-sm e .btn-lg explícitos)
   ===================================================== */
.btn-primary,
.btn-share,
.btn-accent,
.btn-clear,
.btn-success,
.btn-warning,
.btn-danger,
.btn-info,
.btn-dark {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Botões outline também seguem o padrão */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

/* Botões pequenos: também uppercase, mas font-size menor */
.btn-sm {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
    font-size: 0.75rem;
}

/* Botões grandes: uppercase, font-size maior */
.btn-lg {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

/* Botões de dropdown dentro de tabelas (três pontinhos) NÃO uppercase */
.dropdown-toggle.btn-light,
.dropdown-toggle.btn-sm.btn-light {
    text-transform: none;
    font-weight: 400;
    letter-spacing: normal;
}

/* Botão "Área administrativa" no rodapé: vermelho com texto branco */
.footer-admin-btn {
    display: inline-block;
    background-color: #dc3545;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid #dc3545;
    transition: background-color .15s, color .15s;
}
.footer-admin-btn:hover {
    background-color: #ffffff;
    color: #dc3545 !important;
    text-decoration: none;
    border-color: #ffffff;
}
