/* =============================================
   ChatterJobs — Shared Stylesheet
   ============================================= */

*, *::before, *::after { font-family: 'Inter', sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: linear-gradient(135deg, #020818 0%, #061a3a 55%, #040e26 100%); background-attachment: fixed; color: white; }

/* ── Gradient text ─────────────────────── */
.gradient-text {
  background: linear-gradient(to right, #93c5fd, #67e8f9, #bfdbfe);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Glass ─────────────────────────────── */
.glass    { background: rgba(255,255,255,0.10); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.glass-sm { background: rgba(255,255,255,0.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.glass-card { background: rgba(255,255,255,0.07); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.10); border-radius: 16px; }

/* ── Buttons ────────────────────────────── */
.btn-grad { background: linear-gradient(to right, #2563eb, #06b6d4); transition: opacity .2s, transform .1s; color: white; cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-grad:hover { opacity: .88; }
.btn-grad:active { transform: scale(.97); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.80); transition: all .2s; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.32); color: white; }

/* ── Blobs ──────────────────────────────── */
@keyframes blob1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-30px)} }
@keyframes blob2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,40px)} }
@keyframes blob3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,50px)} }
.blob1 { animation: blob1 12s ease-in-out infinite; }
.blob2 { animation: blob2 15s ease-in-out infinite 2s; }
.blob3 { animation: blob3 18s ease-in-out infinite 4s; }

/* ── Fade animations ────────────────────── */
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes cardIn   { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes slideDown { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
.fi-1{animation:fadeInUp .50s ease both}
.fi-2{animation:fadeInUp .55s .10s ease both}
.fi-3{animation:fadeInUp .55s .18s ease both}
.fi-4{animation:fadeInUp .55s .26s ease both}
.fi-5{animation:fadeInUp .50s .36s ease both}
.fi-6{animation:fadeInUp .55s .42s ease both}

/* ── Utilities ──────────────────────────── */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Inputs ─────────────────────────────── */
::placeholder { color: rgba(255,255,255,.30); }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: white; transition: background-color 5000s ease-in-out 0s;
}
.input-field {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px; padding: 10px 14px; color: white; font-size: 14px;
  transition: border-color .2s; outline: none;
}
.input-field:focus { border-color: rgba(59,130,246,.60); }
textarea.input-field { resize: vertical; min-height: 100px; }
select.input-field option { background: #061a3a; color: white; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.70); margin-bottom: 6px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-error { font-size: 12px; color: #fca5a5; margin-top: 4px; }

/* ── Nav ────────────────────────────────── */
#nav-container { position: relative; z-index: 50; }
#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }
.nav-link { font-size: 14px; color: rgba(255,255,255,.70); text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active { font-weight: 500; }

/* ── Category pills ─────────────────────── */
.cat-btn {
  position: relative; padding: 8px 16px; border-radius: 9999px; font-size: 14px;
  font-weight: 500; white-space: nowrap; cursor: pointer; transition: all .2s;
  color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
}
.cat-btn:hover { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.90); }
.cat-btn.active {
  background: linear-gradient(to right,#2563eb,#06b6d4);
  border-color: transparent; color: white;
  box-shadow: 0 4px 20px rgba(37,99,235,.40);
}

/* ── Job cards ──────────────────────────── */
.job-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 20px; display: flex; flex-direction: column;
  gap: 16px; cursor: pointer; transition: all .2s; text-decoration: none; color: inherit;
}
.job-card:hover {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.20);
  transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.30);
}
.bookmark-btn.saved svg { fill: rgba(96,165,250,.80) !important; stroke: #60a5fa !important; }

/* ── Badges ─────────────────────────────── */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; padding: 2px 10px; border-radius: 9999px; border: 1px solid; white-space: nowrap; }
.badge-remote    { background: rgba(16,185,129,.15); color: #6ee7b7; border-color: rgba(16,185,129,.25); }
.badge-freelance { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(245,158,11,.25); }
.badge-permanent { background: rgba(14,165,233,.15); color: #7dd3fc; border-color: rgba(14,165,233,.25); }
.badge-blue      { background: rgba(59,130,246,.10); color: #93c5fd; border-color: rgba(59,130,246,.25); }
.badge-green     { background: rgba(16,185,129,.15); color: #6ee7b7; border-color: rgba(16,185,129,.30); }
.badge-amber     { background: rgba(245,158,11,.15); color: #fcd34d; border-color: rgba(245,158,11,.30); }
.badge-purple    { background: rgba(139,92,246,.15); color: #c4b5fd; border-color: rgba(139,92,246,.25); }

/* ── Modal ──────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2,8,24,.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 16px; animation: fadeIn .2s ease;
}
.modal-box {
  background: linear-gradient(135deg,#0a1628 0%,#0d2044 100%);
  border: 1px solid rgba(255,255,255,.15); border-radius: 24px;
  padding: 32px; width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto; position: relative; animation: fadeInUp .25s ease both;
}

/* ── Toast ──────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  background: rgba(15,40,100,.95); border: 1px solid rgba(96,165,250,.30);
  border-radius: 12px; padding: 12px 20px; color: white; font-size: 14px;
  backdrop-filter: blur(12px); animation: slideDown .25s ease both;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.40);
}

/* ── Alerts ─────────────────────────────── */
.alert-success {
  background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.30);
  border-radius: 12px; padding: 16px; color: #6ee7b7; font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-error {
  background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25);
  border-radius: 12px; padding: 12px 16px; color: #fca5a5; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}

/* ── Step indicator ─────────────────────── */
.step-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; transition: all .3s; flex-shrink: 0; }
.step-dot.active  { background: linear-gradient(135deg,#2563eb,#06b6d4); color: white; box-shadow: 0 4px 16px rgba(37,99,235,.40); }
.step-dot.done    { background: rgba(16,185,129,.25); color: #6ee7b7; border: 1px solid rgba(16,185,129,.40); }
.step-dot.pending { background: rgba(255,255,255,.06); color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.10); }
.step-line { flex: 1; height: 1px; margin: 0 6px; transition: background .3s; }
.step-line.done   { background: rgba(16,185,129,.40); }
.step-line.pending{ background: rgba(255,255,255,.10); }

/* ── Auth card ──────────────────────────── */
.auth-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px; padding: 40px; backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); width: 100%; max-width: 460px; margin: 0 auto;
}

/* ── Dashboard card ─────────────────────── */
.dash-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 20px; transition: all .2s;
}
.dash-card:hover { border-color: rgba(255,255,255,.18); }

/* ── Blog cards ─────────────────────────── */
.blog-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px; overflow: hidden; transition: all .2s; cursor: pointer;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { border-color: rgba(255,255,255,.20); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.30); }

/* ── Footer links ───────────────────────── */
.footer-link { font-size: 14px; color: rgba(255,255,255,.40); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: rgba(255,255,255,.75); }

/* ── Divider ────────────────────────────── */
.divider { height: 1px; background: rgba(255,255,255,.08); }

/* ── Password toggle ─────────────────────── */
.pw-wrap { position: relative; }
.pw-wrap .input-field { padding-right: 44px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: rgba(255,255,255,.35); transition: color .2s; padding: 4px; }
.pw-toggle:hover { color: rgba(255,255,255,.70); }

/* ── Pricing card ───────────────────────── */
.pricing-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px; padding: 32px; transition: all .2s; flex: 1;
}
.pricing-card.featured {
  background: linear-gradient(135deg,rgba(37,99,235,.20),rgba(6,182,212,.12));
  border-color: rgba(59,130,246,.40); box-shadow: 0 8px 40px rgba(37,99,235,.20);
}

/* ── Stat card ──────────────────────────── */
.stat-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px; padding: 24px; text-align: center;
}

/* ── Responsive ─────────────────────────── */
@media (max-width:640px) {
  .auth-card { padding: 28px 20px; }
  .modal-box { padding: 24px 20px; }
  .pricing-card { padding: 24px 20px; }
}
