/* ── Reset ─────────────────────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #0b0f1a;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(99,102,241,0.12) 0%, transparent 70%);
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  width: 100%;
  max-width: 860px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 48px 24px 40px;
  max-width: 620px;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.65;
}

/* ── Main / Card ────────────────────────────────────────────── */
.main {
  width: 100%;
  max-width: 680px;
  padding: 0 20px 80px;
}

.card {
  background: #131929;
  border: 1px solid #1e293b;
  border-radius: 20px;
  padding: 36px 36px 40px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03),
              0 24px 64px rgba(0, 0, 0, 0.45);
}

/* ── Input ──────────────────────────────────────────────────── */
.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}

.input-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#jobTitle {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 0.975rem;
  font-family: inherit;
  border: 1.5px solid #1e293b;
  border-radius: 12px;
  outline: none;
  background: #0b0f1a;
  color: #f1f5f9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#jobTitle:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#jobTitle::placeholder {
  color: #334155;
}

#generateBtn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

#generateBtn:hover:not(:disabled) {
  opacity: 0.92;
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

#generateBtn:active:not(:disabled) {
  transform: scale(0.97);
}

#generateBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s;
}

#generateBtn:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

/* ── Status / loading ───────────────────────────────────────── */
.status {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status.error {
  color: #f87171;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid #1e293b;
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Results ────────────────────────────────────────────────── */
.results {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #1e293b;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.results h2 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Regenerate button ───────────────────────────────────────── */
.icon-btn {
  padding: 7px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1.5px solid #1e293b;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  border-color: #6366f1;
  color: #818cf8;
}

#bulletList {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#bulletList li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  cursor: text;
  user-select: text;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

#bulletList li::before {
  content: "▸";
  color: #6366f1;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.85rem;
}

#bulletList li:hover {
  border-color: #334155;
  background: #111827;
}

/* Per-bullet copy button */
.bullet-text {
  flex: 1;
}

.bullet-copy {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-family: inherit;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

#bulletList li:hover .bullet-copy {
  opacity: 1;
  border-color: #334155;
}

.bullet-copy:hover {
  border-color: #6366f1;
  color: #818cf8;
}

#bulletList li:hover .bullet-copy:hover {
  border-color: #6366f1;
  color: #818cf8;
}

.bullet-copy.copied {
  color: #22c55e;
  border-color: #22c55e;
  opacity: 1;
}

/* ── Quick-pick chips ────────────────────────────────────────── */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 500;
  color: #64748b;
  background: transparent;
  border: 1px solid #1e293b;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chip:hover {
  border-color: #6366f1;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.07);
}

.chip.active {
  border-color: #6366f1;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
}

/* ── Copy button ────────────────────────────────────────────── */
.copy-btn {
  padding: 7px 16px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: 1.5px solid #1e293b;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.copy-btn:hover {
  border-color: #6366f1;
  color: #818cf8;
}

.copy-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  font-size: 0.78rem;
  color: #334155;
  padding: 0 20px 32px;
  text-align: center;
}

/* ── Utility ────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 520px) {
  .card {
    padding: 24px 20px 28px;
  }

  .hero {
    padding: 32px 16px 28px;
  }

  #generateBtn {
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 1.75rem;
  }

  .chips {
    gap: 6px;
  }

  .bullet-copy {
    opacity: 1;
  }
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #475569;
  margin-bottom: 20px;
  list-style: none;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: #94a3b8;
}

/* ── Example bullet list (static / SEO) ───────────────────────── */
.example-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.example-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #cbd5e1;
  user-select: text;
  cursor: text;
  transition: border-color 0.15s, background 0.15s;
}

.example-bullets li::before {
  content: "▸";
  color: #6366f1;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 0.85rem;
}

.example-bullets li:hover {
  border-color: #334155;
  background: #111827;
}

/* ── Section divider ───────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 680px;
  width: 100%;
  padding: 8px 20px 4px;
  margin: 0 auto;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #1e293b;
}

.section-divider span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #334155;
  white-space: nowrap;
}

/* ── Popular job links (home page + /jobs listing) ───────────────── */
.job-links {
  max-width: 680px;
  width: 100%;
  padding: 0 20px 56px;
}

.job-links .input-label {
  display: block;
  margin-bottom: 12px;
}

.job-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.job-links-grid a {
  display: block;
  padding: 14px 18px;
  background: #131929;
  border: 1px solid #1e293b;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.job-links-grid a:hover {
  border-color: #6366f1;
  color: #c7d2fe;
  background: #0f1629;
}

/* ── Cluster layouts ─────────────────────────────────────────── */
.cluster-list-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cluster-group {
  padding-top: 4px;
}

.cluster-group + .cluster-group {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.cluster-group-title {
  font-size: 1.05rem;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.related-resources-card {
  border-color: #273249;
}
