/* ============================================
   JOB DETAIL PAGE CSS
   Font: Exo | Primary: #4338CA | Secondary: #CCFBF1
   BG: #F8FAFC | Card: #FFFFFF | Text: darker
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-page:       #F8FAFC;
  --bg-card:       #FFFFFF;
  --primary:       #4338CA;
  --primary-light: rgba(67, 56, 202, 0.08);
  --primary-mid:   rgba(67, 56, 202, 0.15);
  --secondary:     #CCFBF1;
  --secondary-dark:#0d9488;
  --border:        #e2e8f0;
  --border-hover:  #c7d2fe;
  --text-primary:  #0f0e2a;
  --text-secondary:#3d4a5c;
  --text-muted:    #94a3b8;
  --tag-bg:        #ede9fe;
  --tag-text:      #4338CA;
  --success:       #0d9488;
  --success-bg:    #CCFBF1;
  --font:          'Exo', sans-serif;
  --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── WRAPPER ──────────────────────────────── */
.jd-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ── BREADCRUMB ───────────────────────────── */
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.crumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
}
.crumb a:hover { opacity: 0.75; text-decoration: underline; }
.crumb-sep { color: var(--text-muted); }

/* ── HERO CARD ────────────────────────────── */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px 28px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

/* Top gradient accent bar */
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #818cf8);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-card h1 {
  font-family: var(--font);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.company-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.company-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dot {
  width: 3px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 50%;
  flex-shrink: 0;
}
.job-location {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}
.job-location::before {
  content: '◎ ';
  font-size: 10px;
  color: var(--primary);
}

/* Tags */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 13px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.tag-type   { background: var(--tag-bg); color: var(--tag-text); }
.tag-ft     { background: var(--success-bg); color: var(--success); }
.tag-salary { background: #fef3c7; color: #92400e; }
.tag-posted { background: var(--bg-page); color: var(--text-muted); border: 1px solid var(--border); }

/* Meta grid */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.meta-value {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── CONTENT CARDS ────────────────────────── */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 32px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.section-title {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.8;
  white-space: pre-line;
}

/* ── ACTION CARD ──────────────────────────── */
.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin-top: 6px;
}

.action-left strong {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.action-left p {
  font-family: var(--font);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 3px;
}

.action-btn { display: flex; }

/* Apply button */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
}
.btn-apply:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.38);
}
.btn-apply:active { transform: scale(0.97); }
.arr { transition: transform var(--transition); display: inline-block; }
.btn-apply:hover .arr { transform: translateX(3px); }

/* Already Applied */
.btn-applied {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--success-bg);
  color: var(--success);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border-radius: 11px;
  border: 1.5px solid rgba(13, 148, 136, 0.25);
  cursor: default;
  letter-spacing: 0.01em;
}

/* Login button */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--border-hover);
  border-radius: 11px;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}
.btn-login:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
/* ── Add these to your existing job_details.css ── */

/* Logo */
.hero-top { display: flex; align-items: flex-start; gap: 1rem; }

.logo-wrap { flex-shrink: 0; }

.company-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 4px;
}

.logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

/* Work mode badges */
.tag-mode-remote   { background: #d1fae5; color: #065f46; }
.tag-mode-onsite   { background: #dbeafe; color: #1e3a5f; }
.tag-mode-hybrid   { background: #fef3c7; color: #78350f; }
.tag-exp           { background: #ede9fe; color: #4c1d95; }

/* HR Contact Card */
.hr-contact-card   { border-left: 4px solid #6366f1; }

.contact-masked {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

.masked-value {
  font-size: 1rem;
  letter-spacing: .08em;
  color: #475569;
  flex: 1;
}

.lock-badge {
  font-size: .75rem;
  background: #fef3c7;
  color: #92400e;
  padding: .25rem .6rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.contact-revealed {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.contact-icon { font-size: 1.2rem; }

.contact-link {
  font-size: 1rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}
.contact-link:hover { text-decoration: underline; }

.btn-ext-apply {
  display: inline-block;
  padding: .45rem 1rem;
  background: #6366f1;
  color: #fff !important;
  border-radius: 6px;
  font-size: .9rem;
}
.btn-ext-apply:hover { background: #4f46e5; text-decoration: none !important; }

.contact-note {
  font-size: .82rem;
  color: #54585e;
  margin-top: .25rem;
  background-color: rgb(250, 250, 121);
  padding: 5px;
  border-radius: 10px;
  text-align: center;
}

/* Sent confirmation box */
.contact-sent-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 16px 18px;
}

.sent-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.sent-info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 4px;
}

.sent-info p {
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
    margin: 0;
}


/* ── RESPONSIVE ───────────────────────────── */
@media (max-width: 600px) {
  .jd-wrap { padding: 28px 16px 64px; }

  .hero-card { padding: 24px 20px 22px; border-radius: 16px; }
  .content-card { padding: 20px 18px; border-radius: 14px; }
  .action-card {
    padding: 20px 18px;
    border-radius: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .action-btn { width: 100%; }
  .btn-apply, .btn-applied, .btn-login { width: 100%; justify-content: center; }

  .meta-grid { grid-template-columns: 1fr 1fr; }
}