/* Caminho: /home/prudenflex/assets/css/vagas-public.css */
/* Estilos do site público — /vagas (listagem) e /vagas/{slug} (detalhe + candidatura) */

/* ── Hero (listagem) ──────────────────────────────────────────── */
.vagas-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1f1f1f 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.vagas-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(220,38,38,.18) 0%, transparent 65%);
    pointer-events: none;
}
.vagas-hero .container { position: relative; z-index: 1; }

/* ── Cards (listagem) ─────────────────────────────────────────── */
.vaga-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.vaga-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
}
.vaga-capa {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f5f5f5;
    display: block;
}
.vaga-capa-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vaga-capa-placeholder i { font-size: 2.5rem; color: #ccc; }
.vaga-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.vaga-titulo {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.35;
    margin: .5rem 0 .5rem;
}
.vaga-resumo {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 1rem;
}

/* ── Badges (compartilhado listagem + detalhe) ──────────────────── */
.vaga-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}
.vaga-badge {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .3px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(200,16,46,.1);
    color: #c8102e;
    display: inline-block;
}

/* ── Botão (compartilhado) ───────────────────────────────────────── */
.btn-ver-vaga {
    background: #c8102e;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: .6rem 1.4rem;
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}
.btn-ver-vaga:hover { background: #a00d25; color: #fff; }

/* ── Detalhe da vaga ──────────────────────────────────────────────── */
.vaga-detalhe-cover {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1080 / 1350;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.vaga-detalhe-title {
    font-weight: 800;
    font-size: 1.9rem;
    color: #1a1a1a;
    line-height: 1.3;
}
.vaga-section-title {
    font-weight: 700;
    font-size: 1.15rem;
    color: #1a1a1a;
    margin-bottom: .75rem;
}
.vaga-section-content {
    font-size: .95rem;
    color: #374151;
    line-height: 1.7;
}
.vaga-section-content ul,
.vaga-section-content ol {
    padding-left: 1.4rem;
}
.vaga-cta-candidatura {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
}
.vaga-sidebar-sticky { position: sticky; top: 100px; }
#formCandidatura .btn-ver-vaga[type="submit"]:disabled { opacity: .7; cursor: default; }

/* ── Formulário de candidatura (currículo online) ───────────────── */
.vaga-candidatura-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
}
.vaga-candidatura-subtitle {
    font-weight: 700;
    font-size: 1rem;
    color: #c8102e;
    margin-bottom: 1.1rem;
}
.vaga-foto-preview {
    width: 90px;
    height: 110px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: .7rem;
    text-align: center;
    overflow: hidden;
}
.btn-add-vaga {
    background: #f1f5f9;
    color: #c8102e;
    padding: .5rem .9rem;
    border: 1px dashed #c8102e;
    border-radius: 6px;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 600;
    transition: background .2s;
}
.btn-add-vaga:hover { background: rgba(200,16,46,.08); }
.dynamic-block {
    border-top: 1px dashed #e5e7eb;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    position: relative;
}
.btn-remove-vaga {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 600;
}
