/* HiredHopper Design System — shared tokens & components
   Used by every page. Keeps the visual language consistent.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand (HiredHopper blue) */
  --brand: #0077b6;
  --brand-dark: #005f8e;
  --brand-light: #00b4d8;
  --brand-bg: #f0f8ff;
  --brand-ring: #e0f4fb;

  /* Accent (teal — for match score, success highlights) */
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-bg: #f0fdfa;
  --accent-ring: #ccfbf1;

  /* Semantic */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;

  /* Grays */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
  --shadow-md: 0 4px 12px rgba(16,24,40,0.08);
  --shadow-lg: 0 12px 36px rgba(16,24,40,0.12);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--gray-50); color: var(--gray-900); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
h1 { font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--gray-900); }
h2 { font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--gray-900); }
h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); }
h4 { font-size: 16px; font-weight: 700; color: var(--gray-900); }
p { color: var(--gray-600); }
.muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }

/* === NAV === */
.hh-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: white; border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.hh-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--gray-900); }
.hh-logo-mark { width: 30px; height: 30px; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 13px; }
.hh-nav-links { display: flex; gap: 22px; align-items: center; }
.hh-nav-links a { color: var(--gray-600); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.hh-nav-links a:hover, .hh-nav-links a.active { color: var(--brand); }
.hh-nav-right { display: flex; align-items: center; gap: 10px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all 0.15s ease; font-family: inherit; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--brand); border: 1.5px solid var(--brand-ring); }
.btn-secondary:hover { background: var(--brand-bg); }
.btn-outline { background: white; color: var(--gray-700); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-300); }
.btn-ghost { background: transparent; color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-xl { padding: 16px 32px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-block { width: 100%; }

/* === CARDS === */
.card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card-lg { padding: 28px; }
.card-hover { transition: all 0.15s ease; cursor: pointer; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-ring); }

/* === BADGES / PILLS === */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.badge-brand { background: var(--brand-bg); color: var(--brand); }
.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: var(--gray-100); color: var(--gray-700); }
.badge-pro { background: linear-gradient(135deg, #f59e0b, #ea580c); color: white; font-weight: 700; }

/* === FORM INPUTS === */
.input, .textarea, .select { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); font-size: 14px; color: var(--gray-900); background: white; font-family: inherit; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.stack > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.row { display: flex; gap: 16px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* === SCORE RING === */
.score-ring { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.score-circle { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 800; position: relative; }
.score-circle.good { background: var(--accent-bg); color: var(--accent); border: 5px solid var(--accent); }
.score-circle.ok { background: var(--warning-bg); color: var(--warning); border: 5px solid var(--warning); }
.score-circle.bad { background: var(--danger-bg); color: var(--danger); border: 5px solid var(--danger); }
.score-circle-sm { width: 80px; height: 80px; font-size: 24px; border-width: 4px; }

/* === MESSAGES === */
.message { padding: 12px 14px; border-radius: var(--radius-md); font-size: 14px; display: flex; align-items: flex-start; gap: 8px; }
.message-info { background: var(--brand-bg); color: var(--brand); border: 1px solid var(--brand-ring); }
.message-success { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-ring); }
.message-warning { background: var(--warning-bg); color: var(--warning); }
.message-error { background: var(--danger-bg); color: var(--danger); }

/* === SPINNER === */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,119,182,0.25); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }
.spinner-lg { width: 24px; height: 24px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === UPLOAD ZONE === */
.upload-zone { border: 2px dashed var(--brand-light); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; background: var(--brand-bg); cursor: pointer; transition: all 0.15s; }
.upload-zone:hover { background: var(--brand-ring); border-color: var(--brand); }
.upload-zone.dragover { background: var(--accent-bg); border-color: var(--accent); }
.upload-icon { width: 56px; height: 56px; background: white; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; box-shadow: var(--shadow-sm); }

/* === CHECK LIST (for ATS Checker results) === */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.check-icon { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; font-weight: 700; color: white; margin-top: 1px; }
.check-icon.pass { background: var(--accent); }
.check-icon.partial { background: var(--warning); }
.check-icon.fail { background: var(--danger); }
.check-body { flex: 1; }
.check-name { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.check-detail { font-size: 13px; color: var(--gray-600); }

/* === KEYWORD CHIPS (for Match Score) === */
.kw-row { display: flex; flex-wrap: wrap; gap: 6px; }
.kw { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.kw.present { background: var(--accent-bg); color: var(--accent); }
.kw.missing { background: var(--danger-bg); color: var(--danger); text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.4); }
.kw.suggest { background: var(--brand-bg); color: var(--brand); border: 1px dashed var(--brand-light); }

/* === PROGRESS === */
.progress { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; }
.progress-fill.good { background: var(--accent); }
.progress-fill.ok { background: var(--warning); }
.progress-fill.bad { background: var(--danger); }

/* === HERO === */
.hero { padding: 80px 0 60px; background: linear-gradient(180deg, white 0%, var(--brand-bg) 100%); text-align: center; }
.hero h1 { margin-bottom: 20px; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero p { font-size: 17px; color: var(--gray-600); max-width: 620px; margin: 0 auto 28px; line-height: 1.55; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hh-nav-links { display: none; }
  .hh-nav { padding: 12px 18px; }
  h1 { font-size: 32px; }
  .container, .container-sm { padding: 0 18px; }
}
