/**
 * JobSense – custom stylesheet
 * jobsense.com/css/style.css
 *
 * Tailwind handles the heavy lifting via CDN / compiled build.
 * Add site-specific overrides, animations, and component styles here.
 */

/* ── Base & resets ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ── Typography ────────────────────────────────────────────────────────── */
body {
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
}

/* ── Utility: section scroll offset (fixed header compensation) ────────── */
section[id] {
  scroll-margin-top: 72px;
}

/* ── Branded gradient text ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Card hover lift ───────────────────────────────────────────────────── */
.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.12);
}

/* ── Button focus ring ─────────────────────────────────────────────────── */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Form inputs ───────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  outline: none;
}

/* ── Navbar backdrop blur fallback ────────────────────────────────────── */
@supports not (backdrop-filter: blur(1px)) {
  header {
    background-color: #ffffff;
  }
}

/* ── Hero search bar ───────────────────────────────────────────────────── */
.hero-search input {
  border-radius: 0.75rem 0 0 0.75rem;
}
.hero-search button {
  border-radius: 0 0.75rem 0.75rem 0;
}

/* ── Match score badge ─────────────────────────────────────────────────── */
.match-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.match-score.high   { background: #dcfce7; color: #15803d; }
.match-score.medium { background: #fef9c3; color: #a16207; }
.match-score.low    { background: #fee2e2; color: #b91c1c; }

/* ── Loading skeleton ──────────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 6px;
}

/* ── Toasts / flash messages ───────────────────────────────────────────── */
.flash {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  z-index: 9999;
  animation: slideUp 0.3s ease;
}
.flash.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.flash.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash.info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive media queries ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-search input,
  .hero-search button {
    border-radius: 0.75rem;
    width: 100%;
  }
}
