/* ============================================================
   JOBS PAGES — empregos.css
   Covers: job listing + single job detail
   ============================================================ */

/* --- Job Listing Layout --- */
.jobs-listing {
    padding: 80px 0;
    background: var(--bg-alt);
}

.jobs-listing__layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.jobs-listing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Job Card */
.job-list-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all var(--transition);
}

.job-list-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.job-list-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.job-list-card__logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.job-list-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-list-card__logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dark);
    font-size: 1.2rem;
}

.job-list-card__company {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.job-list-card__date {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.job-list-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.job-list-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.job-list-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-medium);
}

.job-list-card__tag i {
    color: var(--primary);
    font-size: 0.75rem;
}

.job-list-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background var(--transition);
}

.job-list-card__cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

/* Jobs Sidebar */
.jobs-sidebar {
    position: sticky;
    top: 140px;
}

.jobs-sidebar__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 16px;
}

.jobs-sidebar__section {
    margin-bottom: 28px;
}

.jobs-sidebar__cat-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.sidebar-job-link {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
    transition: background var(--transition);
}

.sidebar-job-link:last-child {
    border-bottom: none;
}

.sidebar-job-link:hover {
    background: var(--primary-light);
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-job-link__logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.sidebar-job-link__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-job-link__placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-dark);
    font-size: 0.9rem;
}

.sidebar-job-link__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.sidebar-job-link__title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-job-link__date {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Single Job Detail --- */
.job-detail {
    padding: 80px 0;
    background: var(--white);
}

.job-detail__layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.job-detail__header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.job-detail__logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.job-detail__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-detail__title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.job-detail__company {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.job-detail__pub-date {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 4px;
}

.job-detail__body {
    font-size: 0.95rem;
    line-height: 1.8;
}

.job-detail__body p {
    margin-bottom: 16px;
}

.job-detail__body h2,
.job-detail__body h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.job-detail__body ul,
.job-detail__body ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}

.job-detail__body li {
    margin-bottom: 8px;
    color: var(--text-medium);
}

/* Job Sidebar */
.job-detail-sidebar {
    position: sticky;
    top: 140px;
}

.job-apply-box {
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.job-apply-box__cta {
    display: block;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    border: none;
    width: 100%;
    transition: background var(--transition);
}

.job-apply-box__cta:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.job-apply-box__method {
    display: none;
    padding: 16px;
    background: var(--bg-alt);
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.job-apply-box__method.active {
    display: block;
}

.job-apply-box__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background var(--transition);
}

.job-apply-box__link:hover {
    background: var(--primary);
    color: var(--white);
}

.job-apply-box__deadline {
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--text-medium);
    border-top: 1px solid var(--border);
}

/* Overview box */
.job-overview {
    border: 1px solid var(--border);
}

.job-overview__title {
    padding: 16px 20px;
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.job-overview__list {
    padding: 20px;
}

.job-overview__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.job-overview__item:last-child {
    border-bottom: none;
}

.job-overview__icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.job-overview__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 2px;
}

.job-overview__value {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .jobs-listing__layout {
        grid-template-columns: 1fr 260px;
        gap: 28px;
    }

    .job-detail__layout {
        grid-template-columns: 1fr 300px;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .jobs-listing__layout {
        grid-template-columns: 1fr;
    }

    .jobs-listing__grid {
        grid-template-columns: 1fr;
    }

    .jobs-sidebar {
        position: static;
    }

    .job-detail__layout {
        grid-template-columns: 1fr;
    }

    .job-detail-sidebar {
        position: static;
        order: -1;
    }

    .job-detail__header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .job-detail__title {
        font-size: 1.25rem;
    }

    .job-list-card__tags {
        flex-direction: column;
        gap: 8px;
    }
}
