/* ==========================================================================
   1. HEADER PÚBLICO (NAVBAR FLUTUANTE E ARREDONDADA)
   ========================================================================== */
.public-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);

    /* Faz o header flutuar e ficar arredondado */
    position: sticky;
    top: 20px;
    /* Mantém uma distância do topo ao rolar a página */
    z-index: 1000;
    padding: 15px 30px;
    margin: 20px auto 40px auto;
    /* Centraliza e descola do topo e do banner */
    max-width: 1100px;
    border-radius: 50px;
    /* Formato de cápsula */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.public-logo {
    height: 64px;
    /* Aumentado para dar destaque à logo com nome */
    width: auto;
}

/* ==========================================================================
   2. HERO SECTION (BANNER PRINCIPAL)
   ========================================================================== */
.hero {
    max-width: 1100px;
    margin: 40px auto;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;

    /* Glassmorphism Esverdeado */
    background: rgba(5, 150, 105, 0.85);
    /* Fundo verde semi-transparente */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.2);
}

.hero-title {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

/* Container dos botões do Banner */
.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Botão Principal Branco (Destaque no fundo verde) */
.btn-hero-white {
    background-color: #ffffff;
    color: var(--primary);
    padding: 12px 25px;
    font-size: 1.1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-hero-white:hover {
    background-color: #f1f5f9;
    /* Tom levemente cinza ao passar o mouse */
    color: var(--primary-dark);
    border-color: #f1f5f9;
    transform: translateY(-2px);
}

/* Botão Secundário Vazado (Borda Branca) */
.btn-hero-outline {
    background: transparent;
    color: #ffffff;
    padding: 12px 25px;
    font-size: 1.1rem;
    border-color: #ffffff;
}

.btn-hero-outline:hover {
    background: #ffffff;
    color: var(--primary);
    /* Texto fica verde quando o fundo preenche de branco */
    border-color: #ffffff;
}

/* ==========================================================================
   3. GRID DE VAGAS E CARDS (GLASSMORPHISM)
   ========================================================================== */
.vagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.vaga-card {
    /* Efeito Glass */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);

    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vaga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(5, 150, 105, 0.4);
}

.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748B;
}

/* ==========================================================================
   4. PÁGINA DE CANDIDATURA (VISUALIZAR VAGA)
   ========================================================================== */
.vaga-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 20px;
}

.vaga-back-link {
    color: #64748B;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 15px;
    transition: color 0.2s;
}

.vaga-back-link:hover {
    color: var(--primary);
}

.vaga-desc {
    line-height: 1.6;
    color: #334155;
    white-space: pre-wrap;
    margin-top: 15px;
}

.form-section {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    border-top: 4px solid var(--primary);
    box-shadow: var(--glass-shadow);
}

.field-box {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.field-desc {
    font-size: 0.85rem;
    color: #64748B;
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.option-item {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.option-item input {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.success-card {
    background: rgba(220, 252, 231, 0.8);
    backdrop-filter: blur(5px);
    color: #166534;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #bbf7d0;
    margin-bottom: 20px;
}

/* ==========================================================================
   DASHBOARD DO CANDIDATO
   ========================================================================== */

/* Container centralizado para o Dashboard do Candidato */
.dashboard-container {
    max-width: 800px;
    margin: 100px auto 40px;
    /* Margem superior maior para descolar do header flutuante */
    padding: 0 20px;
}

.cv-builder-container {
    max-width: 1000px;
    margin: 60px auto 40px auto;
    padding: 0 20px;
}

/* Estilo Glassmorphism para os cards */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    margin-bottom: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding-bottom: 20px;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--primary);
    /* Consumindo variável do global.css */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:disabled {
    background: rgba(241, 245, 249, 0.7);
    cursor: not-allowed;
}

.cv-upload-box {
    background: rgba(240, 253, 244, 0.6);
    border: 2px dashed #86efac;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.cv-upload-box:hover {
    background: rgba(240, 253, 244, 0.9);
    border-color: var(--primary);
}

/* ==========================================================================
   CONSTRUTOR DE CURRÍCULO (CV BUILDER)
   ========================================================================== */

.cv-header-title {
    color: #1e293b;
    font-size: 1.8rem;
    margin-top: 0;
}

.cv-header-desc {
    color: #64748b;
    margin-bottom: 30px;
}

.cv-section-title {
    color: var(--primary);
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Layout de Grids e Flexbox */
.cv-row-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.cv-col-info {
    flex: 1;
    min-width: 300px;
}

.cv-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.cv-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

/* Foto do Currículo */
.cv-photo-wrapper label {
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 8px;
}

.cv-photo-input {
    font-size: 0.8rem;
    width: auto;
    /* Remove os 120px fixos */
    max-width: 250px;
    margin-top: 10px;
}

.foto-cv-preview {
    width: 120px;
    height: 150px;
    /* Formato 3x4 padrão de currículo */
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    color: #94a3b8;
    margin-bottom: 10px;
}

.foto-cv-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.foto-cv-preview i {
    font-size: 2rem;
}

/* Listas Dinâmicas (Experiência e Formação) */
.cv-dynamic-list {
    border: 1px dashed #cbd5e1;
    padding: 20px;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.5);
    margin-bottom: 15px;
}

.cv-dynamic-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    /* Removido o -20px que causava o bloqueio do clique */
    position: relative;
    z-index: 10;
    /* Garante que fique por cima dos inputs */
}

.btn-remove-dynamic {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2rem;
    /* Ícone um pouco maior */
    padding: 8px 15px;
    /* Aumenta a área "clicável" ao redor do ícone */
    transition: color 0.2s, transform 0.2s;
}

.btn-remove-dynamic:hover {
    color: #b91c1c;
    transform: scale(1.1);
    /* Dá um feedback visual legal ao passar o mouse */
}

.textarea-md {
    height: 60px;
}

/* Botões Customizados */
.btn-sm {
    font-size: 0.85rem;
    padding: 5px 15px;
}

.btn-white {
    background: #ffffff;
}

.icon-mr {
    margin-right: 8px;
}

/* Rodapé de Ações do Formulário */
.cv-action-footer {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cv-action-title {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #1e293b;
}

.cv-action-input {
    font-size: 0.9rem;
}

.cv-action-btns {
    display: flex;
    gap: 15px;
}

/* ==========================================================================
   CARDS DE AÇÃO (DASHBOARD DO CANDIDATO)
   ========================================================================== */
.dashboard-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.action-card {
    text-align: center;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.action-card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.action-card-title {
    color: #1e293b;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.action-card-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* ==========================================================================
   MODAL DO CONSTRUTOR DE CURRÍCULO
   ========================================================================== */
.cv-modal-overlay {
    display: none;
    /* Escondido por padrão */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cv-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.cv-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    /* Não deixa o modal ultrapassar a tela */
    border-radius: 12px;
    padding: 40px;
    overflow-y: auto;
    /* Rolagem interna */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.cv-modal-overlay.active .cv-modal-content {
    transform: translateY(0);
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: #ef4444;
}

/* Esconde a barra de rolagem do modal mas mantém funcionando (Estética limpa) */
.cv-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cv-modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.cv-modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.cv-modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==========================================================================
   TERMOS E PRIVACIDADE
   ========================================================================== */
.termos-content {
    line-height: 1.6;
    color: var(--text);
}

.termos-content h2 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.termos-content p,
.termos-content li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* ==========================================================================
   AVISO DE TERMOS (RODAPÉ DO CURRÍCULO)
   ========================================================================== */
.termos-aviso {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.termos-link {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.termos-link:hover {
    color: var(--primary-dark);
}

/* ==========================================================================
   LANDING PAGE (SEÇÕES PÚBLICAS)
   ========================================================================== */
.landing-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

/* Classe base para painéis de vidro reutilizável */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
}

/* Grid de Funcionalidades */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    background: rgba(5, 150, 105, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.feature-card h3 {
    color: var(--text);
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748B;
    line-height: 1.6;
}

/* Grid de Planos/Preços */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.price-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card.popular {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

.price-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-card h3 {
    font-size: 1.5rem;
    color: #334155;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

.price span {
    font-size: 1rem;
    color: #64748B;
    font-weight: 400;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.price-features li {
    margin-bottom: 15px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--primary);
}

/* Container de Contato */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

/* Links do Rodapé */
.footer-link {
    color: #64748B;
    text-decoration: none;
    line-height: 2;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}