/* ============================================================
   OnlineJobs.cz — Design System
   Vibe: trustworthy, professional (jobs.cz / LinkedIn family)
   Palette: navy primary, sky-blue accent, neutral slate
   ============================================================ */

:root {
  /* Brand */
  --brand-900: #0a1628;
  --brand-800: #0f172a;
  --brand-700: #1e293b;
  --brand-600: #334155;

  /* Accent (sky) */
  --accent-50:  #f0f9ff;
  --accent-100: #e0f2fe;
  --accent-200: #bae6fd;
  --accent-300: #7dd3fc;
  --accent-400: #38bdf8;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
  --accent-700: #0369a1;
  --accent-800: #075985;

  /* Neutrals */
  --bg:         #ffffff;
  --bg-soft:    #f8fafc;
  --bg-muted:   #f1f5f9;
  --bg-sunken:  #e2e8f0;

  --line:       #e2e8f0;
  --line-soft:  #eef2f6;
  --line-strong:#cbd5e1;

  --text:       #0f172a;
  --text-muted: #475569;
  --text-subtle:#64748b;
  --text-faint: #94a3b8;
  --text-on-dark: #f8fafc;

  /* Semantic */
  --success-50: #ecfdf5;
  --success-600:#059669;
  --success-700:#047857;
  --warn-50:    #fffbeb;
  --warn-600:   #d97706;
  --danger-50:  #fef2f2;
  --danger-600: #dc2626;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(15,23,42,.05);
  --sh-md: 0 4px 12px -2px rgba(15,23,42,.08), 0 2px 4px -1px rgba(15,23,42,.04);
  --sh-lg: 0 12px 28px -8px rgba(15,23,42,.12), 0 4px 12px -4px rgba(15,23,42,.06);
  --sh-xl: 0 24px 48px -12px rgba(15,23,42,.18);
  --sh-focus: 0 0 0 3px rgba(14,165,233,.25);

  /* Typography */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Spacing scale */
  --container-max: 1200px;
  --container-pad: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent-700); text-decoration: none; }
a:hover { color: var(--accent-800); }
input, textarea, select { font: inherit; color: inherit; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-wide { max-width: 1320px; }
.container-narrow { max-width: 880px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.025em; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p  { margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-700);
}
.text-muted { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand-800);
  color: #fff;
  border-color: var(--brand-800);
}
.btn-primary:hover { background: var(--brand-900); border-color: var(--brand-900); color:#fff; }

.btn-accent {
  background: var(--accent-600);
  color: #fff;
  border-color: var(--accent-600);
}
.btn-accent:hover { background: var(--accent-700); border-color: var(--accent-700); color:#fff; }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: var(--bg-soft); border-color: var(--line-strong); color: var(--text); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }

.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-icon { width: 40px; padding: 0; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 500; color: var(--text); }
.label-hint { font-size: 12px; color: var(--text-subtle); font-weight: 400; }

.input, .select, .textarea {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.textarea { height: auto; min-height: 96px; padding: 10px 14px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent-500);
  box-shadow: var(--sh-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.input-search {
  height: 52px;
  padding-left: 48px;
  font-size: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

/* Checkbox / Radio */
.checkbox, .radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  user-select: none;
}
.checkbox input, .radio input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.radio input { border-radius: 50%; }
.checkbox input:checked, .radio input:checked {
  background: var(--accent-600);
  border-color: var(--accent-600);
}
.checkbox input:checked::after {
  content: "";
  width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M2 6l3 3 5-6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.radio input:checked::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Card ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.card-hover { transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--sh-md);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-muted);
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-accent { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.badge-success { background: var(--success-50); color: var(--success-700); border-color: #a7f3d0; }
.badge-warn { background: var(--warn-50); color: var(--warn-600); border-color: #fde68a; }
.badge-outline { background: #fff; border-color: var(--line); color: var(--text-muted); }
.badge-dark { background: var(--brand-800); color: #fff; }
.badge-dot::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ---------- Avatar / Logo ---------- */
.logo-tile {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.logo-tile-lg { width: 64px; height: 64px; font-size: 24px; border-radius: var(--r-lg); }
.logo-tile-sm { width: 36px; height: 36px; font-size: 14px; border-radius: var(--r-sm); }

/* ---------- Utility ---------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* ---------- Site frame ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.035em;
  text-decoration: none;
  line-height: 1;
}
.brand:hover { color: var(--text); }
/* Logomark — three ascending squares, see /logo.svg */
.brand::before {
  content: "";
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  background: url("logo.svg") center / contain no-repeat;
}
.brand-name { line-height: 1; display: inline-flex; align-items: baseline; gap: 0; }
.brand-name .dot {
  display: none;
  width: 8px;
  height: 8px;
  background: var(--accent-500);
  border-radius: 1.5px;
  margin-left: 3px;
  transform: translateY(-1px);
}
/* Legacy .brand-mark kept hidden so pages that still emit it don't break */
.brand-mark { display: none; }

.nav-primary {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--bg-muted); color: var(--text); }
.nav-link.active { color: var(--text); background: var(--bg-muted); }

.site-footer {
  background: var(--brand-900);
  color: var(--text-on-dark);
  padding: 64px 0 32px;
  margin-top: 96px;
}
.site-footer h5 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.site-footer a {
  color: #94a3b8;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  text-decoration: none;
}
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: inline-flex; padding: 0; }

/* ---------- Section spacing ---------- */
.section { padding: 72px 0; }
.section-lg { padding: 96px 0; }
.section-sm { padding: 48px 0; }

.section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}
.section-title h2 { margin: 0; }
.section-title p { color: var(--text-muted); font-size: 17px; max-width: 600px; }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .4s ease-out both; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hide-md { display: none !important; }
  .section { padding: 48px 0; }
  .section-lg { padding: 64px 0; }
  :root { --container-pad: 16px; }
}
