/* ================================================================
   Joinplay Games – Jobs Page CSS
   ================================================================ */

/* ─── NAV ACTIVE STATE ─── */
.nav-active { color: var(--teal) !important; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--teal);
  color: var(--bg3);
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 20px;
  margin-left: 0.35rem;
  vertical-align: middle;
  line-height: 1;
}

/* ─── JOBS HERO ─── */
.jobs-hero {
  position: relative;
  padding: 10rem 2rem 5rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}
.jobs-hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(62,207,178,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(107,79,160,0.08) 0%, transparent 60%);
}
.jobs-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.jobs-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.jobs-breadcrumb:hover { color: var(--teal); }
.jobs-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.jobs-title span { color: var(--teal); }
.jobs-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.85;
  max-width: 580px;
  margin: 0 auto 3rem;
}
.jobs-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.jobs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.jobs-stat strong {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6rem;
  color: var(--teal);
  line-height: 1;
}
.jobs-stat span {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jobs-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(62,207,178,0.15);
}

/* ─── MAIN CONTENT ─── */
.jobs-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 7rem;
  position: relative;
  z-index: 1;
}

/* ─── FILTER BAR ─── */
.jobs-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: var(--text-dim);
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.42rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover  { border-color: rgba(62,207,178,0.35); color: var(--teal); }
.filter-btn.active { background: rgba(62,207,178,0.12); border-color: rgba(62,207,178,0.5); color: var(--teal); }

/* ─── JOB GRID ─── */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ─── JOB CARD ─── */
.job-card {
  background: #111614;
  border: 1px solid rgba(62,207,178,0.1);
  border-radius: 6px;
  padding: 1.8rem 2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.job-card:hover {
  border-color: rgba(62,207,178,0.28);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.job-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.job-card-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.job-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
}
.job-tag-dept {
  background: rgba(62,207,178,0.1);
  color: var(--teal);
  border: 1px solid rgba(62,207,178,0.25);
}
.job-tag-type {
  background: rgba(107,79,160,0.12);
  color: #9b7fd4;
  border: 1px solid rgba(107,79,160,0.25);
}
.job-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: var(--text-dim);
}
.job-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.3;
}
.job-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

/* ─── EXPANDABLE DETAILS ─── */
.job-details {
  display: none;
  border-top: 1px solid rgba(62,207,178,0.08);
  padding-top: 1.3rem;
  margin-top: 0.2rem;
  margin-bottom: 1.3rem;
}
.job-details.open { display: block; }
.job-section { margin-bottom: 1.2rem; }
.job-section h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}
.job-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.job-section li {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}
.job-section li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ─── CARD FOOTER ─── */
.job-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.job-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--teal);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}
.job-toggle-btn:hover { opacity: 0.75; }
.toggle-arrow { transition: transform 0.25s; }
.job-apply-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.btn-apply, .btn-apply-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 1.4rem;
  border-radius: 3px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.22s;
  cursor: pointer;
}
.btn-apply {
  background: var(--teal);
  color: var(--bg3);
  border: none;
}
.btn-apply:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn-apply-ext {
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(62,207,178,0.35);
}
.btn-apply-ext:hover { background: rgba(62,207,178,0.08); transform: translateY(-2px); }

/* ─── EMPTY STATE ─── */
.jobs-empty {
  text-align: center;
  padding: 5rem 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  background: #111614;
}
.jobs-empty-icon { font-size: 3rem; margin-bottom: 1.2rem; }
.jobs-empty h2 { font-family: 'Cinzel Decorative', serif; font-size: 1.2rem; margin-bottom: 0.8rem; }
.jobs-empty p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; }
.jobs-empty a { color: var(--teal); }

/* ─── SPONTANEOUS APPLICATION ─── */
.jobs-spontaneous {
  margin-top: 3.5rem;
  border: 1px solid rgba(62,207,178,0.12);
  border-radius: 6px;
  background: rgba(62,207,178,0.03);
  padding: 2rem;
}
.jobs-spont-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.jobs-spont-inner h3 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.jobs-spont-inner p {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 480px;
}
.jobs-spont-inner .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .jobs-hero { padding: 8rem 1.2rem 3.5rem; }
  .jobs-title { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .jobs-main  { padding: 2rem 1.2rem 5rem; }
  .job-card   { padding: 1.4rem 1.2rem; }
  .job-card-foot { flex-direction: column; align-items: flex-start; }
  .jobs-stat-sep  { display: none; }
  .jobs-stats { gap: 1.5rem; flex-direction: row; }
  .jobs-spont-inner { flex-direction: column; }
  .jobs-spont-inner .btn-primary { width: 100%; justify-content: center; }
}
