/* ============================================
   TalentFlow Archive /jobs/ — Unified Design
   Uses same CSS variables as search modal
   ============================================ */

.tf-archive-wrap {
    font-family: var(--tf-font);
    color: var(--tf-text);
    -webkit-font-smoothing: antialiased;
}

/* ===== Breadcrumb ===== */
.tf-archive-breadcrumb {
    background: var(--tf-bg);
    border-bottom: 1px solid var(--tf-border-light);
    padding: 14px 0;
    font-size: 13px;
    color: var(--tf-text-light);
}
.tf-archive-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.tf-archive-breadcrumb a {
    color: var(--tf-text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.tf-archive-breadcrumb a:hover { color: var(--tf-primary); }
.tf-bc-sep { margin: 0 8px; opacity: 0.4; }

/* ===== Header ===== */
.tf-archive-header {
    background: linear-gradient(135deg, var(--tf-primary) 0%, var(--tf-primary-dark) 100%);
    position: relative;
    padding: 56px 0 48px;
    text-align: center;
    overflow: hidden;
}
.tf-archive-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.tf-archive-header .tf-archive-container {
    position: relative;
    z-index: 1;
}
.tf-archive-title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.tf-archive-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin: 0 0 28px;
    font-weight: 400;
}
.tf-archive-count {
    font-family: var(--tf-font-num);
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    vertical-align: baseline;
    letter-spacing: -0.02em;
}

/* Quick Links */
.tf-archive-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.tf-archive-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 100px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.tf-archive-tag:hover {
    background: #fff;
    color: var(--tf-primary);
    border-color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--tf-shadow-glow);
}
.tf-archive-tag:hover .tf-tag-count {
    background: var(--tf-primary-light);
    color: var(--tf-primary);
}
.tf-tag-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 9px;
    border-radius: 100px;
    font-family: var(--tf-font-num);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s;
}

/* ===== Search Section ===== */
.tf-archive-search-section {
    padding: 32px 0 0;
    background: var(--tf-bg);
}
.tf-archive-search-section .tf-hero-wrap {
    margin-bottom: 0;
}

/* ===== Stats Bar ===== */
.tf-archive-stats {
    background: var(--tf-bg);
    padding: 28px 0 36px;
}
.tf-archive-stats-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.tf-archive-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-sm);
    box-shadow: var(--tf-shadow-xs);
    transition: all 0.2s;
}
.tf-archive-stat-item:first-child {
    border-left: 3px solid var(--tf-primary);
}
.tf-archive-stat-item:hover {
    box-shadow: var(--tf-shadow);
    transform: translateY(-1px);
}
.tf-archive-stat-icon { font-size: 22px; }
.tf-archive-stat-number {
    font-family: var(--tf-font-num);
    font-size: 22px;
    font-weight: 800;
    color: var(--tf-primary);
    letter-spacing: -0.02em;
}
.tf-archive-stat-label {
    font-size: 13px;
    color: var(--tf-text-light);
    font-weight: 500;
}

/* ===== Section Titles ===== */
.tf-archive-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tf-text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== New Arrivals ===== */
.tf-archive-latest {
    padding: 48px 0;
    background: var(--tf-bg-card);
}
.tf-archive-latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}
.tf-archive-latest-card {
    position: relative;
    display: block;
    padding: 22px 24px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    text-decoration: none;
    color: var(--tf-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.tf-archive-latest-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--tf-border-light);
    border-radius: 3px 0 0 3px;
    transition: background 0.3s;
}
.tf-archive-latest-card:hover {
    border-color: var(--tf-primary);
    box-shadow: var(--tf-shadow-glow);
    transform: translateY(-3px);
}
.tf-archive-latest-card:hover::before {
    background: var(--tf-primary-gradient);
}
.tf-archive-new-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: var(--tf-primary-gradient);
    color: #fff;
    font-family: var(--tf-font-num);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 8px rgba(232,84,108,0.3);
}
.tf-archive-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin: 0 0 12px;
    padding-right: 56px;
    color: var(--tf-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tf-archive-latest-card:hover .tf-archive-card-title {
    color: var(--tf-primary);
}
.tf-archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12.5px;
    color: var(--tf-text-mid);
    margin-bottom: 8px;
}
.tf-archive-card-type {
    display: inline-block;
    padding: 3px 12px;
    background: var(--tf-bg-warm);
    color: var(--tf-primary);
    border-radius: var(--tf-radius-xs);
    font-size: 11px;
    font-weight: 700;
}
.tf-archive-card-date {
    font-family: var(--tf-font-num);
    font-size: 11px;
    color: var(--tf-text-light);
}

/* ===== Area Cards ===== */
.tf-archive-areas {
    padding: 48px 0 56px;
    background: var(--tf-bg);
}
.tf-archive-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.tf-archive-area-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border-light);
    border-radius: var(--tf-radius-sm);
    text-decoration: none;
    color: var(--tf-text);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--tf-shadow-xs);
}
.tf-archive-area-card:hover {
    border-color: var(--tf-primary);
    box-shadow: var(--tf-shadow-glow);
    transform: translateY(-2px);
}
.tf-archive-area-card:hover .tf-archive-area-name {
    color: var(--tf-primary);
}
.tf-archive-area-name {
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}
.tf-archive-area-count {
    font-family: var(--tf-font-num);
    font-size: 13px;
    color: var(--tf-primary);
    font-weight: 700;
    background: var(--tf-bg-warm);
    padding: 2px 10px;
    border-radius: 100px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .tf-archive-header { padding: 40px 0 36px; }
    .tf-archive-title { font-size: 24px; }
    .tf-archive-count { font-size: 28px; }
    .tf-archive-quick-links { gap: 6px; }
    .tf-archive-tag { padding: 6px 14px; font-size: 12px; }
    .tf-archive-latest-grid { grid-template-columns: 1fr; }
    .tf-archive-area-grid { grid-template-columns: repeat(2, 1fr); }
    .tf-archive-stats-grid { gap: 8px; }
    .tf-archive-stat-item { padding: 10px 14px; gap: 6px; }
    .tf-archive-stat-number { font-size: 18px; }
    .tf-archive-stat-label { font-size: 12px; }
    .tf-archive-section-title { font-size: 18px; }
    .tf-archive-container { padding: 0 16px; }
}
@media (max-width: 480px) {
    .tf-archive-area-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .tf-archive-area-card { padding: 12px 14px; }
    .tf-archive-area-name { font-size: 13px; }
}

/* ===== Taxonomy Page Additions ===== */
.tf-archive-tax-label {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
}
.tf-archive-term-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}
.tf-area-current {
    border-color: var(--tf-primary) !important;
    background: var(--tf-bg-warm) !important;
}
.tf-area-current .tf-archive-area-name {
    color: var(--tf-primary);
    font-weight: 700;
}
.tf-archive-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--tf-bg-card);
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius-sm);
    color: var(--tf-text-mid);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.tf-archive-back-link:hover {
    border-color: var(--tf-primary);
    color: var(--tf-primary);
    box-shadow: var(--tf-shadow-glow);
}
