.portal-rh-public {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1d2327;
}

/* Header */
.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: #fff;
}

.public-header h1 {
    margin: 0 0 10px;
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-header p {
    margin: 0;
    opacity: 0.95;
    max-width: 600px;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-link:hover {
    background: rgba(255,255,255,0.3);
}

/* Filtros */
.filters-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    background: #fff;
}

/* Grid de Vagas */
.vagas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.vaga-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #2271b1;
}

.vaga-card:hover {
    border-left-color: #0073aa;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.vaga-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.vaga-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
}

.vaga-empresa {
    color: #646970;
    font-size: 14px;
}

.vaga-salario {
    background: #d1e7dd;
    color: #0f5132;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.vaga-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.vaga-tag {
    background: #f6f7f7;
    color: #3c434a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.vaga-tag .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.vaga-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-detalhes,
.btn-candidatar {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-detalhes {
    background: #f6f7f7;
    color: #1d2327;
}

.btn-detalhes:hover {
    background: #e0e0e0;
}

.btn-candidatar {
    background: #2271b1;
    color: #fff;
}

.btn-candidatar:hover {
    background: #135e96;
}

/* Modais */
.portal-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #fff;
    margin: 5vh auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-large {
    max-width: 800px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #646970;
}

.modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f1;
}

.modal-header h2 {
    margin: 0 0 8px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header p {
    margin: 0;
    color: #646970;
}

.modal-empresa {
    font-size: 16px;
    color: #646970;
    font-weight: 400;
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.badge {
    background: #f0f7ff;
    color: #2271b1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h3 {
    color: #1d2327;
    font-size: 16px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-section h3 .dashicons {
    color: #2271b1;
}

.descricao-vaga {
    color: #3c434a;
    line-height: 1.6;
}

.descricao-vaga img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

.lista-requisitos,
.lista-beneficios {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-requisitos li,
.lista-beneficios li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #3c434a;
}

.lista-requisitos li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: bold;
}

.lista-beneficios li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: #dba617;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f1;
}

/* Formulário */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1d2327;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.upload-dropzone {
    border: 2px dashed #8c8f94;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-dropzone:hover,
.upload-dropzone.active {
    border-color: #2271b1;
    background: #f0f7ff;
}

.upload-dropzone .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #646970;
    margin-bottom: 10px;
}

.upload-dropzone p {
    margin: 10px 0 5px;
    color: #1d2327;
    font-weight: 600;
}

.upload-dropzone small {
    color: #646970;
    font-size: 12px;
}

.file-info {
    margin-top: 10px;
    font-size: 13px;
    color: #2271b1;
    font-weight: 600;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
}

.btn-primary {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover { background: #135e96; }

.btn-cancel {
    background: #f0f0f1;
    color: #1d2327;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Loading e No Vagas */
.loading-vagas,
.no-vagas {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
    grid-column: 1/-1;
}

.loading-vagas .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    animation: spin 2s linear infinite;
}

.no-vagas .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    color: #c3c4c7;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsivo */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .vaga-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .public-header {
        flex-direction: column;
        text-align: center;
    }
    
    .modal-large {
        max-width: 95%;
    }
}