/**
 * Estilos para el detalle de un empleo individual
 * Diseño profesional que se adapta al theme de WordPress activo
 */

/* Contenedor principal sin sidebar - ancho completo */
.full-width-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Article wrapper para el contenido del job */
.job-single-content {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
}

/* Contenedor principal del detalle del empleo */
.hub-job-detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    font-family: inherit;
    color: inherit;
}

/* Header del empleo */
.hub-job-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
}

.hub-job-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    margin: 0;
    color: inherit;
    text-align: left;
}

/* Contenido principal */
.hub-job-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Sección de descripción */
.hub-job-section {
    margin-bottom: 10px;
}

.hub-job-description {
    font-size: 17px;
    line-height: 1.8;
    color: inherit;
    text-align: justify;
    text-justify: inter-word;
}

.hub-job-description p {
    margin-bottom: 20px;
    color: inherit;
    text-align: justify;
}

.hub-job-description p:last-child {
    margin-bottom: 0;
}

.hub-job-description ul,
.hub-job-description ol {
    margin: 20px 0;
    padding-left: 28px;
    text-align: left;
}

.hub-job-description li {
    margin-bottom: 12px;
    line-height: 1.7;
    text-align: justify;
}

.hub-job-description strong,
.hub-job-description b {
    font-weight: 700;
    color: inherit;
}

.hub-job-description h2,
.hub-job-description h3,
.hub-job-description h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
    color: inherit;
    text-align: left;
}

/* Metadatos del empleo */
.hub-job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 28px 0 36px;
}

.hub-job-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.hub-job-meta-icon {
    flex: 0 0 auto;
    width: 18px;
    margin-top: 3px;
    font-size: 16px;
    line-height: 1;
    color: inherit;
}

.hub-job-meta-text {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    color: inherit;
    font-weight: 400;
}

.hub-job-meta-text strong {
    font-weight: 700;
}

.hub-job-meta-text span {
    font-weight: 400;
}

/* Skills con estilo de badges */
.hub-job-skills .hub-job-meta-value {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Estilos específicos para diferentes metadatos */
.hub-job-type .hub-job-meta-value,
.hub-job-category .hub-job-meta-value,
.hub-job-location .hub-job-meta-value {
    font-weight: 600;
}

/* Mensaje de error */
.hub-job-detail-error {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

.hub-job-detail-error p {
    font-size: 16px;
    color: #856404;
    margin: 0;
    font-weight: 500;
}

/* Responsive - Tablets */
@media (max-width: 992px) {
    .hub-job-detail-container {
        padding: 30px 20px;
    }
    
    .hub-job-title {
        font-size: 30px !important;
    }
    
    .hub-job-header {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    
    .hub-job-content {
        gap: 32px;
    }
    
    .hub-job-description {
        font-size: 16px;
    }
    
    .hub-job-meta {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 20px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hub-job-detail-container {
        padding: 24px 16px;
    }
    
    .hub-job-title {
        font-size: 24px !important;
    }
    
    .hub-job-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    
    .hub-job-content {
        gap: 24px;
    }
    
    .hub-job-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .hub-job-meta {
        padding: 20px;
        gap: 16px;
    }
    
    .hub-job-meta-label {
        font-size: 12px;
    }
    
    .hub-job-meta-value {
        font-size: 15px;
    }
}

/* Mejoras de accesibilidad */
.hub-job-detail-container:focus-within {
    outline: none;
}

/* COMENTADO: Las siguientes reglas fueron eliminadas para NO alterar el layout global del theme
   El plugin debe respetars sidebars y layout del tema WordPress

/* Ocultar sidebar específicamente en páginas de jobs */
/* body.hub-job-single #secondary,
body.hub-job-single .sidebar,
body.hub-job-single aside {
    display: none !important;
}

/* Forzar ancho completo en el contenido principal */
/* body.hub-job-single #primary,
body.hub-job-single .content-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
} */

.hub-job-meta-item:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* Soporte para modo oscuro (si el theme lo usa) */
@media (prefers-color-scheme: dark) {
    .hub-job-meta {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
}
