/* LOCATION: public/css/job-detail.css */
/* ============================================
   JOB DETAIL PAGE — PREMIUM LIQUID GLASS
   ============================================ */

/* ============================================
   1. VARIABILE & FUNDAȚIE
   ============================================ */
:root {
  --jd-glass-border: rgba(255, 255, 255, 0.85);
  --jd-glass-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.35) 100%);
  --jd-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  --jd-glass-hover: 0 16px 40px rgba(0, 122, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 1);
  
  --jd-text-main: #1c1c1e;
  --jd-text-muted: #8e8e93;
}

[data-theme="dark"] {
  --jd-glass-border: rgba(255, 255, 255, 0.1);
  --jd-glass-bg: linear-gradient(145deg, rgba(40, 40, 45, 0.7) 0%, rgba(20, 20, 25, 0.4) 100%);
  --jd-glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  --jd-glass-hover: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(90, 200, 250, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  
  --jd-text-main: #ffffff;
  --jd-text-muted: #a1a1a6;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilitare */
.pre-wrap { white-space: pre-wrap; }
.inline-form { display: inline; }
.desktop-only-btn { display: inline-flex; }

/* ============================================
   2. LAYOUT & NAVIGARE
   ============================================ */
.job-detail-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 32px) 100px;
  position: relative;
  isolation: isolate;
}

/* Breadcrumbs */
.job-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--jd-text-muted);
  margin-bottom: 20px;
}
.job-breadcrumbs a {
  color: var(--jd-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.job-breadcrumbs a:hover { color: var(--accent); }
.job-breadcrumbs .sep { opacity: 0.5; font-size: 0; }
.job-breadcrumbs .sep::after { content: '›'; font-size: 16px; }
.job-breadcrumbs .current {
  color: var(--jd-text-main);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Back Button */
.job-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jd-text-muted);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}
.job-back:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* ============================================
   3. HEADER & TIPOGRAFIE
   ============================================ */
.job-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
@media (min-width: 768px) {
  .job-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
  }
}

.job-header-left {
  flex: 1;
  min-width: 0;
}

.job-title {
  margin: 0 0 16px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--jd-text-main);
  text-wrap: balance;
}

.job-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Status Badges */
.job-status, .job-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid transparent;
}

.job-status-draft { background: rgba(142,142,147,0.15); color: #8e8e93; }
.job-status-published { background: rgba(0,122,255,0.15); color: #007aff; border-color: rgba(0,122,255,0.2); }
.job-status-active, .job-status-completed, .job-status-accepted { background: rgba(52,199,89,0.15); color: #34c759; border-color: rgba(52,199,89,0.2); }
.job-status-in_progress, .job-status-pending { background: rgba(255,149,0,0.15); color: #ff9500; border-color: rgba(255,149,0,0.2); }
.job-status-cancelled, .job-status-expired, .job-status-rejected, .job-status-withdrawn { background: rgba(255,59,48,0.15); color: #ff3b30; border-color: rgba(255,59,48,0.2); }

[data-theme="dark"] .job-status-published { background: rgba(90,200,250,0.2); color: #5ac8fa; border-color: rgba(90,200,250,0.3); }
[data-theme="dark"] .job-status-active, [data-theme="dark"] .job-status-completed, [data-theme="dark"] .job-status-accepted { background: rgba(52,199,89,0.2); color: #5ddb7a; border-color: rgba(52,199,89,0.3); }
[data-theme="dark"] .job-status-in_progress, [data-theme="dark"] .job-status-pending { background: rgba(255,149,0,0.2); color: #ffb340; border-color: rgba(255,149,0,0.3); }
[data-theme="dark"] .job-status-cancelled, [data-theme="dark"] .job-status-expired, [data-theme="dark"] .job-status-rejected, [data-theme="dark"] .job-status-withdrawn { background: rgba(255,59,48,0.2); color: #ff6961; border-color: rgba(255,59,48,0.3); }

.job-badge-featured { background: #ff9500; color: #fff; }
.job-badge-urgent { background: #ff3b30; color: #fff; }

/* Header Actions (Butoane) */
.job-header-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.job-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
}

.job-header-actions .btn-primary {
  background: linear-gradient(135deg, #007aff, #0a84ff);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}
.job-header-actions .btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.45);
}

.job-header-actions .btn-secondary {
  background: rgba(120, 120, 128, 0.1);
  color: var(--jd-text-main);
  border: 1px solid rgba(120, 120, 128, 0.15);
}
.job-header-actions .btn-secondary:hover {
  background: rgba(120, 120, 128, 0.2);
  transform: translateY(-2px);
}
[data-theme="dark"] .job-header-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
[data-theme="dark"] .job-header-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.job-header-actions .btn-danger {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
}
.job-header-actions .btn-danger:hover {
  background: #ff3b30;
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   4. QUICK INFO (Horizontal Scroll Pills)
   ============================================ */
.job-quick-info {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  margin-bottom: 32px !important;
  padding: 4px 0 12px 0 !important; /* Spațiu pentru umbră */
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.job-quick-info::-webkit-scrollbar {
  display: none;
}

.quick-info-item {
  flex: 0 0 auto !important; /* Nu se întinde, doar cât e textul */
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  border-radius: 999px !important; /* Formă perfectă de pastilă */
  
  /* Sticlă fină */
  background: var(--jd-glass-bg) !important;
  border: 1px solid var(--jd-glass-border) !important;
  box-shadow: var(--jd-glass-shadow) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  
  scroll-snap-align: start !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.quick-info-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--jd-glass-hover) !important;
}

.quick-info-item svg {
  color: var(--accent) !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.quick-info-item span {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--jd-text-main) !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.quick-info-item .highlight-green {
  color: #34c759 !important;
  font-weight: 800 !important;
}

/* Pe Desktop le lăsăm să se împartă frumos pe mai multe rânduri dacă nu încap */
@media (min-width: 768px) {
  .job-quick-info {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    padding-bottom: 4px !important;
  }
}

/* ============================================
   5. GRID & CARDS (Liquid Glass)
   ============================================ */
.job-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) {
  .job-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
  }
}

.job-main, .job-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.job-card {
  padding: clamp(20px, 3vw, 32px);
  border-radius: 24px;
  position: relative;
  isolation: isolate;
  background: var(--jd-glass-bg);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid var(--jd-glass-border);
  box-shadow: var(--jd-glass-shadow);
  transition: box-shadow 0.3s ease;
}

.job-card:hover {
  box-shadow: var(--jd-glass-hover);
}

.job-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: -1;
}

.job-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--jd-text-main);
  letter-spacing: -0.02em;
}

.job-card-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,122,255,0.1);
  border-radius: 999px;
}

.job-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--jd-text-muted);
  letter-spacing: -0.01em;
  word-break: break-word;
}
[data-theme="dark"] .job-description { color: #d1d1d6; }

/* ============================================
   6. ATAȘAMENTE
   ============================================ */
.job-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.job-attachment {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(120, 120, 128, 0.05);
  border: 1px solid rgba(120, 120, 128, 0.1);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.job-attachment:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.job-attachment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   7. OFERTE PRIMITE
   ============================================ */
.job-offers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  transition: all 0.2s ease;
}
[data-theme="dark"] .job-offer {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.job-offer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.job-offer-pro {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.job-offer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--jd-text-main);
  letter-spacing: -0.01em;
}

.job-offer-rating {
  font-size: 12.5px;
  color: var(--jd-text-muted);
  margin-top: 2px;
}

.job-offer-price {
  font-size: 22px;
  font-weight: 800;
  color: #34c759;
  white-space: nowrap;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.job-offer-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--jd-text-muted);
}

.job-offer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 120, 128, 0.1);
  flex-wrap: wrap;
}
[data-theme="dark"] .job-offer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
}

.job-offer-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.job-offer-actions .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.job-offer-actions .btn-icon {
  width: 38px;
  padding: 0;
  background: rgba(120, 120, 128, 0.1);
  color: var(--jd-text-main);
}
.job-offer-actions .btn-icon:hover { background: rgba(120, 120, 128, 0.2); }

.job-offer-actions .btn-success {
  background: rgba(52, 199, 89, 0.15);
  color: #34c759;
  border: 1px solid rgba(52, 199, 89, 0.3);
}
.job-offer-actions .btn-success:hover { background: #34c759; color: #fff; }

.job-offer-actions .btn-danger {
  background: rgba(255, 59, 48, 0.15);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.3);
}
.job-offer-actions .btn-danger:hover { background: #ff3b30; color: #fff; }

/* Empty State Oferte */
.job-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: rgba(120, 120, 128, 0.05);
  border-radius: 16px;
  color: var(--jd-text-muted);
  gap: 12px;
  border: 1px dashed rgba(120, 120, 128, 0.2);
}
.job-empty-state svg { opacity: 0.5; }
.job-empty-state p { margin: 0; font-size: 14px; font-weight: 500; }

/* ============================================
   8. SIDEBAR & LINK-URI INTERNE
   ============================================ */
.job-info {
  display: flex;
  flex-direction: column;
}

.job-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(120, 120, 128, 0.1);
}
[data-theme="dark"] .job-info-row { border-color: rgba(255, 255, 255, 0.05); }
.job-info-row:last-child { border-bottom: none; padding-bottom: 0; }
.job-info-row:first-child { padding-top: 0; }

.job-info-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--jd-text-muted);
}
.job-info-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--jd-text-main);
  text-align: right;
  word-break: break-word;
}
.job-info-value-green { color: #34c759; }

.job-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-links-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(120, 120, 128, 0.06);
  color: var(--jd-text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.job-links-list li a:hover {
  background: rgba(120, 120, 128, 0.1);
  border-color: rgba(120, 120, 128, 0.15);
  transform: translateX(4px);
}
[data-theme="dark"] .job-links-list li a {
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="dark"] .job-links-list li a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}
.job-links-list li a::after {
  content: '›';
  margin-left: auto;
  font-size: 18px;
  color: var(--jd-text-muted);
  opacity: 0.5;
}

/* Sticky Sidebar */
@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky;
    top: 100px;
  }
}

/* ============================================
   9. STICKY MOBILE CTA (Floating Island)
   ============================================ */
.job-mobile-cta {
  display: none;
}

@media (max-width: 1023px) {
  .job-mobile-cta {
    display: flex;
    position: fixed;
    bottom: calc(80px + env(safe-area-inset-bottom, 16px) + 10px);
    left: 16px;
    right: 16px;
    z-index: 1000;
    
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    border-radius: 999px;
    
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    
    animation: slideUpCta 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  [data-theme="dark"] .job-mobile-cta {
    background: rgba(30, 30, 35, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  }

  .mobile-cta-info {
    display: flex;
    flex-direction: column;
  }

  .cta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--jd-text-muted);
    letter-spacing: 0.05em;
    font-weight: 700;
  }

  .cta-price {
    font-size: 16px;
    color: #34c759;
    font-weight: 800;
  }

  .job-mobile-cta .btn-cta {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
  }

  /* Ascundem butonul din card pe mobil ca să nu fie duplicat */
  .desktop-only-btn {
    display: none !important;
  }

  /* Facem loc la finalul paginii pentru bara sticky */
  .job-detail-page {
    padding-bottom: 120px !important;
  }
}

@keyframes slideUpCta {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================
   10. PREMIUM LIGHTBOX (PHOTO VIEWER)
   ============================================ */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-lightbox.is-visible { opacity: 1; }
.image-lightbox[hidden] { display: none !important; }

.lightbox-header {
  display: flex;
  justify-content: flex-end;
  padding: max(16px, env(safe-area-inset-top, 16px)) 24px 16px;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent);
}

.lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-lightbox.is-visible .lightbox-content img { transform: scale(1); }

.lightbox-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 24px max(24px, env(safe-area-inset-bottom, 24px));
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.lightbox-btn:active { transform: translateY(0) scale(0.96); }

.lightbox-close {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
}

.lightbox-download {
  background: rgba(0, 122, 255, 0.3);
  border-color: rgba(0, 122, 255, 0.4);
}
.lightbox-download:hover { background: rgba(0, 122, 255, 0.5); }

/* ============================================
   LOGO THEME SWITCHING
   ============================================ */
.logo-icon-light { display: inline-block !important; }
.logo-icon-dark  { display: none !important; }
[data-theme="dark"] .logo-icon-light { display: none !important; }
[data-theme="dark"] .logo-icon-dark  { display: inline-block !important; }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .logo-icon-light { display: none !important; }
  html:not([data-theme="light"]) .logo-icon-dark  { display: inline-block !important; }
}

/* ============================================
   FIX PREMIUM: BADGES (Pills, Gradients & Glass)
   ============================================ */

/* 1. Setări comune pentru TOATE badge-urile */
.job-status, .job-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Înălțime fixă și padding orizontal */
  height: 28px !important;
  padding: 0 14px !important;
  
  font-size: 11px !important;
  font-weight: 800 !important; /* Extra Bold */
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  
  /* Formă perfectă de pastilă */
  border-radius: 999px !important; 
  
  /* Eliminăm bordurile groase care le stricau */
  border: 1px solid transparent !important; 
  
  /* Efect de sticlă fin */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 2. FINALIZATĂ (Soft Green Glass) */
.job-status-completed {
  background: rgba(52, 199, 89, 0.12) !important;
  color: #34c759 !important;
  border-color: rgba(52, 199, 89, 0.25) !important;
}
[data-theme="dark"] .job-status-completed {
  background: rgba(52, 199, 89, 0.2) !important;
  color: #5ddb7a !important;
  border-color: rgba(52, 199, 89, 0.3) !important;
}

/* 3. FEATURED (Premium Orange Gradient) */
.job-badge-featured {
  background: linear-gradient(135deg, #ff9500, #ff7a00) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 
    0 4px 12px rgba(255, 149, 0, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* 4. URGENT (Premium Red Gradient) */
.job-badge-urgent {
  background: linear-gradient(135deg, #ff3b30, #ff2a20) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 
    0 4px 12px rgba(255, 59, 48, 0.3), 
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   PATCH: ELIMINARE SPAȚIU MORT SUB HEADER (MOBIL)
   ============================================ */

@media (max-width: 900px) {
  /* 1. Reducem drastic padding-ul de sus al paginii */
  .job-detail-page {
    padding-top: 12px !important; /* Era 24px - 40px, acum e doar 12px */
  }

  /* 2. Ne asigurăm că containerul main nu adaugă padding suplimentar */
  .main-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* 3. Eliminăm orice margine de sus de la breadcrumbs */
  .job-breadcrumbs {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 4. Verificăm și header-ul, să nu aibă margini ascunse în jos */
  .site-header, 
  .app-header,
  header:first-of-type {
    margin-bottom: 0 !important;
  }
}

/* ============================================
   PATCH: ELIMINARE SPAȚIU MORT ÎNTRE CONȚINUT ȘI FOOTER
   ============================================ */

@media (max-width: 1023px) {
  /* 1. Reducem drastic padding-ul de jos al paginii */
  .job-detail-page {
    padding-bottom: 16px !important; 
  }

  /* 2. Adăugăm spațiu suplimentar DOAR dacă bara Sticky CTA (butonul plutitor) este prezentă în pagină */
  body:has(.job-mobile-cta) .job-detail-page {
    padding-bottom: 100px !important;
  }

  /* 3. Eliminăm spațiul de sus al footer-ului pe mobil (deja are destul padding intern) */
  .site-footer {
    margin-top: 0 !important;
  }
}

/* ============================================
   PATCH FINAL: EGALIZARE SPAȚIU SUS ȘI JOS
   ============================================ */

@media (max-width: 1023px) {
  /* 1. Mărim spațiul de sub butonul Distribuie (sus) */
  .job-header {
    margin-bottom: 32px !important; 
  }

  /* 2. Setăm exact același spațiu sub pastile (jos) */
  .job-quick-info {
    margin-top: 32px !important;
    margin-bottom: 32px !important; 
    
    /* Scoatem padding-ul care crea spațiul fantomă de jos */
    padding-top: 0 !important;
    padding-bottom: 0 !important; 
  }

  /* 3. Ne asigurăm că primul card (Descrierea) nu mai adaugă spațiu extra */
  .job-grid {
    margin-top: 32px !important;
    padding-top: 0 !important;
  }
}

/* ============================================
   NOU: SĂGEȚI NAVIGARE LIGHTBOX
   ============================================ */

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  
  /* Stil Apple Liquid Glass */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Poziționare desktop */
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Poziționare mobil (le mutăm mai jos ca să nu se bată cap în cap cu butonul de închidere) */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    top: auto;
    bottom: 80px;
    transform: none;
  }
  .lightbox-nav:hover { transform: scale(1.1); }
  .lightbox-nav:active { transform: scale(0.95); }
  .lightbox-prev { left: 20%; }
  .lightbox-next { right: 20%; }
}

