/* ═══════════════════════════════════════════
   SINGLE JOB LISTING — single-job.css
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   SHARED: SECTION LABEL (DM Mono + line)
───────────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', 'Fira Code', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tc);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────
   HERO BAND
───────────────────────────────────────── */
.job-hero {
  background-color: #1A2F4A;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: var(--space-8) 0 var(--space-10);
  position: relative;
}

/* Breadcrumb */
.job-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.job-breadcrumb a,
.job-breadcrumb span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}
.job-breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.breadcrumb-sep {
  color: rgba(255,255,255,0.2);
  font-size: 10px;
  flex-shrink: 0;
}

.job-breadcrumb .breadcrumb-current {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Firm info row */
.job-firm-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.job-firm-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--r-m);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--ink-2);
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.10);
}
.job-firm-avatar img { width: 100%; height: 100%; object-fit: contain; }

.job-firm-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: rgba(255,255,255,0.90);
  margin: 0 0 2px;
}

.job-firm-city {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

/* Job title */
.job-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-6);
}

.job-title .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #F5B89A;
}

/* Meta pills */
.job-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.job-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}

.job-meta-pill svg { opacity: 0.65; flex-shrink: 0; }

/* Status badges */
.job-status-badges {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-badge-new      { background: #ECFDF5; color: #059669; }
.status-badge-featured { background: #FFFBEB; color: #D97706; }
.status-badge-urgent   { background: #FFF1F2; color: #E11D48; }

/* Verify bar */
.job-verify-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.verify-pulse {
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-green 1.8s ease-in-out infinite;
}

.verify-text {
  font-size: var(--text-xs);
  font-weight: 500;
  color: rgba(255,255,255,0.50);
}

.verify-sep {
  color: rgba(255,255,255,0.20);
  font-size: 10px;
}

/* ─────────────────────────────────────────
   SINGLE JOB PAGE + TWO-COLUMN LAYOUT
───────────────────────────────────────── */
.single-job-page {
  background: var(--bg);
  padding-bottom: var(--space-20);
}

.single-job-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-10);
  align-items: start;
  padding-top: var(--space-10);
}

/* ─────────────────────────────────────────
   JOB BODY (left column)
───────────────────────────────────────── */
.job-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
}

.job-section {
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.job-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Content prose */
.job-content {
  font-size: var(--text-base);
  color: var(--ink-2);
  line-height: 1.75;
}

.job-content p          { margin-bottom: var(--space-4); }
.job-content p:last-child { margin-bottom: 0; }
.job-content h2, .job-content h3 { font-size: var(--text-md); font-weight: 700; margin: var(--space-6) 0 var(--space-3); color: var(--ink); }
.job-content ul, .job-content ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.job-content ul { list-style: disc; }
.job-content ol { list-style: decimal; }
.job-content li { margin-bottom: var(--space-2); }

/* Styled ordered list for responsibilities */
.job-content ol li {
  padding-left: var(--space-2);
  color: var(--ink-2);
  line-height: 1.65;
  marker: none;
  counter-increment: none;
}

/* ─────────────────────────────────────────
   SKILL CHIPS
───────────────────────────────────────── */
.skills-section { display: flex; flex-direction: column; gap: var(--space-5); }

.skills-group-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: var(--space-3);
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-chip {
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}

.skill-chip-primary {
  background: var(--tc-soft);
  color: var(--tc);
  border: 1px solid var(--tc-border);
}

.skill-chip-secondary {
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   JOB DETAILS GRID (2 × 4)
───────────────────────────────────────── */
.job-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
}

.job-detail-cell {
  background: var(--bg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.detail-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
}

.detail-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink);
}

.detail-value.salary-val {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--tc);
}

/* ─────────────────────────────────────────
   ABOUT THE FIRM CARD
───────────────────────────────────────── */
.firm-card {
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
}

.firm-card-header {
  background: var(--ink);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.firm-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-s);
  background: var(--tc);
  color: #fff;
  font-size: var(--text-xl);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.12);
}
.firm-card-avatar img { width: 100%; height: 100%; object-fit: contain; }

.firm-card-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
  margin: 0 0 2px;
}

.firm-card-location {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
}

.firm-card-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.firm-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--tc);
  text-decoration: none;
  transition: opacity 0.15s;
}
.firm-link:hover { opacity: 0.75; }

/* ─────────────────────────────────────────
   OTHER JOBS FROM THIS FIRM
───────────────────────────────────────── */
.other-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
}

.other-job-row {
  background: var(--bg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  transition: background 0.15s;
}

.other-job-row:hover { background: var(--bg-2); }

.other-job-initial {
  width: 36px;
  height: 36px;
  border-radius: var(--r-s);
  font-size: var(--text-base);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.other-job-info { flex: 1; min-width: 0; }

.other-job-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.other-job-city {
  font-size: var(--text-xs);
  color: var(--ink-4);
  margin-top: 2px;
}

/* ─────────────────────────────────────────
   RIGHT SIDEBAR
───────────────────────────────────────── */
.job-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-5));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Apply card */
.apply-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.apply-card-header {
  padding: var(--space-5) var(--space-6);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.apply-salary-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: var(--space-2);
}

.apply-salary-amount {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: var(--tc);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.apply-salary-unit {
  font-size: var(--text-xs);
  color: var(--ink-4);
  font-family: var(--font-sans);
  font-style: normal;
}

.apply-card-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.apply-detail-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}

.apply-detail-icon {
  width: 16px;
  color: var(--ink-4);
  flex-shrink: 0;
  margin-top: 2px;
}

.apply-detail-label {
  font-size: var(--text-xs);
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.apply-detail-value {
  color: var(--ink-2);
  font-weight: 500;
  margin-top: 1px;
}

.apply-card-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-whatsapp {
  background: transparent;
  color: #22C55E;
  border: 1.5px solid #22C55E;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  width: 100%;
}
.btn-whatsapp:hover {
  background: #F0FDF4;
  border-color: #16A34A;
}

.expiry-notice {
  font-size: var(--text-xs);
  color: var(--ink-4);
  text-align: center;
}
.expiry-notice.urgent { color: #E11D48; }

/* Share card */
.share-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  padding: var(--space-5) var(--space-6);
}

.share-card-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.share-btns {
  display: flex;
  gap: var(--space-2);
}

.share-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.5rem 0.5rem;
  border-radius: var(--r-s);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink-3);
  transition: all 0.15s;
  white-space: nowrap;
}

.share-btn:hover {
  border-color: var(--tc);
  color: var(--tc);
  background: var(--tc-soft);
}

.share-btn.copied {
  border-color: #22C55E;
  color: #16A34A;
  background: #F0FDF4;
}

/* Alert nudge card */
.alert-nudge-card {
  background-color: #1A2F4A;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  border-radius: var(--r-l);
  padding: var(--space-5) var(--space-6);
  color: #fff;
}

.alert-nudge-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-1);
}

.alert-nudge-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.50);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.alert-nudge-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.alert-nudge-input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-size: var(--text-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-s);
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.alert-nudge-input::placeholder { color: rgba(255,255,255,0.35); }
.alert-nudge-input:focus { border-color: var(--tc); }

.alert-nudge-btn {
  width: 100%;
  padding: 0.6rem;
  background: var(--tc);
  border: none;
  border-radius: var(--r-s);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.alert-nudge-btn:hover { background: var(--tc-hover); }

.alert-nudge-msg {
  font-size: var(--text-xs);
  margin-top: var(--space-2);
  display: none;
}
.alert-nudge-msg.success { color: #86EFAC; display: block; }
.alert-nudge-msg.error   { color: #FCA5A5; display: block; }

/* ─────────────────────────────────────────
   APPLY MODAL
───────────────────────────────────────── */
.apply-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,22,40,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.apply-modal-overlay.active {
  display: flex;
}

.apply-modal {
  background: var(--bg);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modal-in 0.25s cubic-bezier(0.22,1,0.36,1);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.apply-modal-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.apply-modal-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.apply-modal-subtitle {
  font-size: var(--text-sm);
  color: var(--ink-4);
  margin: var(--space-1) 0 0;
}

.apply-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-s);
  background: var(--bg-2);
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: background 0.15s;
}
.apply-modal-close:hover { background: var(--border); }

.apply-modal-body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.apply-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 1.5px solid var(--border);
  border-radius: var(--r-l);
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.apply-option:hover {
  border-color: var(--tc);
  background: var(--tc-soft);
  transform: translateX(4px);
}

.apply-option-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-m);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.apply-option-info { flex: 1; min-width: 0; }

.apply-option-label {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.apply-option-hint {
  font-size: var(--text-xs);
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apply-option-arrow {
  color: var(--ink-4);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.apply-option:hover .apply-option-arrow { transform: translateX(3px); color: var(--tc); }

.apply-modal-footer {
  padding: var(--space-4) var(--space-6) var(--space-5);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.apply-modal-note {
  font-size: var(--text-xs);
  color: var(--ink-4);
  text-align: center;
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   RELATED JOBS SECTION
───────────────────────────────────────── */
.related-jobs-section {
  background: var(--tc-soft);
  padding: var(--space-16) 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-8);
}

/* ─────────────────────────────────────────
   STICKY BOTTOM BAR
───────────────────────────────────────── */
.sticky-apply-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-3) 0;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.sticky-apply-bar.visible {
  transform: translateY(0);
}

.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.sticky-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-bar-role {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-bar-firm {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
}

.sticky-bar-salary {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: #F5B89A;
  white-space: nowrap;
  flex-shrink: 0;
}

.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1100px) {
  .single-job-layout { grid-template-columns: 1fr 320px; gap: var(--space-8); }
}

@media (max-width: 900px) {
  .single-job-layout {
    grid-template-columns: 1fr;
  }
  .job-sidebar {
    position: static;
    order: -1; /* sidebar above content on mobile */
  }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .job-title { font-size: 1.75rem; }
  .job-details-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .sticky-bar-salary { display: none; }
  .sticky-bar-info { max-width: 180px; }
  .apply-modal-overlay { align-items: flex-end; padding: 0; }
  .apply-modal { border-radius: var(--r-xl) var(--r-xl) 0 0; max-width: 100%; }
}

@media (max-width: 400px) {
  .job-breadcrumb { display: none; }
}
