/* ============================================================
   MDGroup Job Board — Frontend Styles
   纯文字卡片设计，对齐 mdgroup-theme 风格
   ============================================================ */

/* ========== Breadcrumb (与 single.php 一致) ========== */
.md-careers-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eef0f4;
    padding: 14px 0;
}

.md-careers-breadcrumb-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #8896ab;
    flex-wrap: wrap;
}

.md-careers-breadcrumb-inner a {
    color: #8896ab;
    text-decoration: none;
    transition: color 0.2s ease;
}

.md-careers-breadcrumb-inner a:hover {
    color: #98292b;
}

.md-careers-breadcrumb-inner .md-breadcrumb-sep {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c4c7cc;
    flex-shrink: 0;
}

.md-careers-breadcrumb-inner .md-breadcrumb-current {
    color: #1a2030;
    font-weight: 500;
}

/* ========== Careers List Page ========== */
.md-careers-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.md-careers-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #1a2030;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
    line-height: 1.18;
}

.md-careers-header p {
    font-size: 15px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
    max-width: 560px;
}

/* Empty state */
.md-careers-empty {
    text-align: center;
    padding: 60px 24px;
    font-size: 15px;
    color: #8896ab;
}

/* ========== Job Cards List (纯文字垂直列表) ========== */
.md-careers-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Single Card */
.md-career-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eef0f4;
    padding: 28px 0;
    transition: background-color 0.2s ease;
    position: relative;
}

.md-career-card:first-child {
    border-top: 1px solid #eef0f4;
}

.md-career-card:hover {
    background-color: #fafbfc;
    color: inherit;
}

.md-career-card-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
    border-left: 3px solid transparent;
    transition: border-color 0.25s ease;
}

.md-career-card:hover .md-career-card-inner {
    border-left-color: #98292b;
}

/* Meta line: type badge + date + location */
.md-career-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
}

.md-career-type {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(152, 41, 43, 0.08);
    color: #98292b;
    letter-spacing: 0.1px;
}

.md-career-card-date {
    color: #8896ab;
    font-weight: 500;
}

.md-career-meta-sep {
    color: #c4c7cc;
    font-size: 10px;
}

.md-career-location {
    color: #4a5568;
    font-weight: 500;
}

/* Title */
.md-career-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2030;
    line-height: 1.4;
    margin: 0;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.md-career-card:hover .md-career-card-title {
    color: #98292b;
}

/* Excerpt */
.md-career-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom action row */
.md-career-card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.md-career-apply-text {
    font-size: 13px;
    font-weight: 600;
    color: #98292b;
    transition: gap 0.2s ease;
}

.md-career-arrow {
    font-size: 15px;
    color: #98292b;
    transition: transform 0.2s ease;
    display: inline-block;
    line-height: 1;
}

.md-career-card:hover .md-career-arrow {
    transform: translateX(4px);
}

/* ========== Pagination ========== */
.md-careers-pagination {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.md-careers-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    color: #1a2030;
    background: #fff;
    transition: all 0.2s ease;
}

.md-careers-pagination .page-numbers:hover {
    border-color: rgba(152, 41, 43, 0.25);
    color: #98292b;
    background: rgba(152, 41, 43, 0.04);
}

.md-careers-pagination .page-numbers.current {
    background: #98292b;
    border-color: #98292b;
    color: #fff;
    font-weight: 600;
}

.md-careers-pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
    color: #8896ab;
    cursor: default;
}

/* ========== Application Status Badges (Admin) ========== */
.md-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1px;
}
.md-status-new      { background: #dbeafe; color: #1e40af; }
.md-status-reviewed { background: #fef9c3; color: #854d0e; }
.md-status-rejected { background: #fee2e2; color: #991b1b; }
.md-status-hired    { background: #dcfce7; color: #166534; }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .md-careers-page {
        padding: 40px 16px 60px;
    }
    .md-careers-header h1 {
        font-size: 26px;
    }
    .md-career-card-title {
        font-size: 16px;
    }
    .md-career-card-inner {
        padding-left: 14px;
    }
}
