/* ==========================================================================
   SocoJob Ofertas - WordPress Plugin Styles
   Replica el diseño de socojob.com/app
   Todos los selectores usan .socojob-wrapper para alta especificidad
   ========================================================================== */

/* Grid de ofertas */
.socojob-wrapper .socojob-offers-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

@media (max-width: 768px) {
    .socojob-wrapper .socojob-offers-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Tarjeta de oferta */
.socojob-wrapper .socojob-card {
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    transition: box-shadow 0.2s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.5 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06) !important;
}

.socojob-wrapper .socojob-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}

.socojob-wrapper .socojob-card--active {
    border: 1px solid #2178bd !important;
}

.socojob-wrapper .socojob-card--vip {
    border: 1px solid #EFB810 !important;
}

/* Badge VIP */
.socojob-wrapper .socojob-card__vip-badge {
    position: absolute !important;
    left: 15px !important;
    top: 10px !important;
    z-index: 2 !important;
}

.socojob-wrapper .socojob-card__vip-badge i {
    font-size: 25px !important;
    color: #EFB810 !important;
}

/* Header de la tarjeta */
.socojob-wrapper .socojob-card__header {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
    padding: 20px 20px 12px !important;
    background: #fff !important;
    border-bottom: 1px solid #ebeef4 !important;
    align-items: flex-start !important;
    margin: 0 !important;
}

/* Logo de empresa */
.socojob-wrapper .socojob-card__logo {
    flex-shrink: 0 !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
}

.socojob-wrapper .socojob-card__logo img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.socojob-wrapper .socojob-card__logo-placeholder {
    width: 80px !important;
    height: 80px !important;
    background: #f6f9ff !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.socojob-wrapper .socojob-card__logo-placeholder i {
    font-size: 30px !important;
    color: #2178bd !important;
}

/* Intro (título, salario, empresa) */
.socojob-wrapper .socojob-card__intro {
    flex: 1 !important;
    min-width: 0 !important;
}

.socojob-wrapper .socojob-card__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #2178bd !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.socojob-wrapper .socojob-card__salary {
    font-size: 1rem !important;
    color: #333 !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.socojob-wrapper .socojob-card__salary i {
    color: #2178bd !important;
}

.socojob-wrapper .socojob-card__business {
    font-size: 1rem !important;
    color: #6c757d !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.socojob-wrapper .socojob-card__date {
    font-size: 0.8rem !important;
    color: #6c757d !important;
    font-style: italic !important;
    display: block !important;
    margin-top: 2px !important;
}

/* Ubicación */
.socojob-wrapper .socojob-card__location {
    text-align: center !important;
    padding: 10px 20px !important;
    font-size: 17px !important;
    border-bottom: 1px solid #ebeef4 !important;
    margin: 0 !important;
    background: none !important;
}

.socojob-wrapper .socojob-card__location i {
    color: #2178bd !important;
}

/* Detalles */
.socojob-wrapper .socojob-card__details {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 2px 10px !important;
    padding: 12px 20px !important;
    margin: 0 !important;
}

.socojob-wrapper .socojob-card__detail {
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.socojob-wrapper .socojob-card__detail i {
    color: #2178bd !important;
    margin-right: 2px !important;
}

.socojob-wrapper .socojob-card__detail span {
    color: #2178bd !important;
}

/* Footer con botones */
.socojob-wrapper .socojob-card__footer {
    padding: 12px 20px 15px !important;
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    background: #fff !important;
    border-top: 1px solid #ebeef4 !important;
    margin: 0 !important;
}

.socojob-wrapper a.socojob-btn-ver,
.socojob-wrapper a.socojob-btn-inscribirse {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 12px !important;
    border-radius: 5px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
    line-height: 1.4 !important;
    border: none !important;
    box-shadow: none !important;
}

.socojob-wrapper a.socojob-btn-ver:hover,
.socojob-wrapper a.socojob-btn-inscribirse:hover {
    opacity: 0.85 !important;
    text-decoration: none !important;
}

.socojob-wrapper a.socojob-btn-ver {
    background: #2178bd !important;
    color: #fff !important;
}

.socojob-wrapper a.socojob-btn-inscribirse {
    background: #198754 !important;
    color: #fff !important;
}

/* Filtros */
.socojob-wrapper .socojob-filters {
    background: #fff !important;
    border: 1px solid #ebeef4 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.socojob-wrapper .socojob-filters-form {
    display: flex !important;
    gap: 15px !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
}

.socojob-wrapper .socojob-filter-group {
    flex: 1 !important;
    min-width: 180px !important;
}

.socojob-wrapper .socojob-filter-group label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    color: #333 !important;
}

.socojob-wrapper .socojob-filter-group label i {
    color: #2178bd !important;
}

.socojob-wrapper .socojob-filter-group select {
    width: 100% !important;
    padding: 8px 12px !important;
    border: 1px solid #ebeef4 !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
}

.socojob-wrapper button.socojob-btn-filter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 8px 20px !important;
    background: #2178bd !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.socojob-wrapper button.socojob-btn-filter:hover {
    opacity: 0.85 !important;
}

.socojob-wrapper a.socojob-btn-clear {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 15px !important;
    color: #6c757d !important;
    font-size: 13px !important;
    text-decoration: none !important;
    border: 1px solid #ebeef4 !important;
    border-radius: 5px !important;
}

.socojob-wrapper a.socojob-btn-clear:hover {
    background: #f6f9ff !important;
    text-decoration: none !important;
}

/* Estados vacío y error */
.socojob-wrapper .socojob-empty,
.socojob-wrapper .socojob-error {
    text-align: center !important;
    padding: 40px 20px !important;
    background: #fff !important;
    border: 1px solid #ebeef4 !important;
    border-radius: 8px !important;
    color: #6c757d !important;
    font-size: 16px !important;
}

.socojob-wrapper .socojob-error {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

/* Responsive móvil */
@media (max-width: 480px) {
    .socojob-wrapper .socojob-card__header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .socojob-wrapper .socojob-card__title {
        white-space: normal !important;
    }

    .socojob-wrapper .socojob-card__details {
        grid-template-columns: 1fr !important;
    }

    .socojob-wrapper .socojob-filters-form {
        flex-direction: column !important;
    }

    .socojob-wrapper .socojob-filter-group {
        min-width: 100% !important;
    }
}
