/* ═══════════════════════════════════════════════════════
   LignoJobs.ch – Unified Design System
   Clean White / Professional Look
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS VARIABLES ────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:        #ffffff;
  --bg2:       #f8f7f5;
  --bg3:       #f1ede8;
  --bg4:       #e8e2da;

  /* Borders & text */
  --border:    #e0d9d0;
  --border2:   #ccc4b8;
  --text:      #1a1612;
  --text2:     #3d3630;
  --muted:     #8a7d72;
  --muted2:    #b0a49a;

  /* Brand colours */
  --accent:    #41a0c8;       /* teal */
  --accent2:   #6dbde0;
  --accent3:   #a8d8f0;
  --accent-light: #e8f5fb;   /* light teal */
  --accent-mid: #6dbde0;     /* mid teal */
  --wood:      #a0522d;       /* warm wood */
  --wood2:     #c87941;
  --wood-bg:   rgba(168,88,42,0.08);

  /* Semantic */
  --success:   #2d6a4f;
  --error:     #c0392b;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.06);
}

/* ── RESET ────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none; }

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  gap: 16px;
}

/* ── LOGO ─────────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo .holz { color: var(--wood2); }
.logo .ing  { color: #ffffff; }
.logo .ch   { color: rgba(255,255,255,0.8); font-size: 13px; margin-left: 1px; }

/* ── MAIN NAV ─────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  /* centred in remaining space */
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}
.nav-link.active {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--wood);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ── HEADER AUTH AREA ─────────────────────────────────── */
.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── HEADER BUTTONS ───────────────────────────────────── */
.btn-hdr {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-hdr-outline {
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
}
.btn-hdr-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
  color: #ffffff;
}
.btn-hdr-solid {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-hdr-solid:hover {
  background: var(--accent2);
  border-color: var(--accent2);
}

/* ── AVATAR (header) ──────────────────────────────────── */
.hdr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1.5px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.15s;
  flex-shrink: 0;
}
.hdr-avatar:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.hdr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── GENERAL BUTTONS ──────────────────────────────────── */
.btn {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent2); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--text2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: var(--bg2); }

/* ── CARDS ────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ── FORM FIELDS ──────────────────────────────────────── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.08);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--muted2); }
.field textarea { resize: vertical; min-height: 90px; }

/* ── CHIP SELECTORS ───────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.chip {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
  user-select: none;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45,106,79,0.08);
  font-weight: 500;
}

/* ── BADGES / PILLS ───────────────────────────────────── */
.badge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 2px 9px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge-green {
  background: rgba(45,106,79,0.10);
  color: var(--accent2);
  border: 1px solid rgba(45,106,79,0.18);
}
.badge-wood {
  background: rgba(200,121,65,0.10);
  color: var(--wood2);
  border: 1px solid rgba(200,121,65,0.18);
}
.badge-neutral {
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── MESSAGES ─────────────────────────────────────────── */
.msg {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 16px;
  display: none;
}
.msg.show { display: block; }
.msg.err {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  color: var(--error);
}
.msg.ok {
  background: rgba(45,106,79,0.08);
  border: 1px solid rgba(45,106,79,0.25);
  color: var(--accent);
}

/* ── SECTION LABELS ───────────────────────────────────── */
.sec-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ── DIVIDER ──────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ── TOGGLE ───────────────────────────────────────────── */
.tog {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.tog.on { background: var(--accent); border-color: var(--accent); }
.tog::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tog.on::after { transform: translateX(18px); }

/* ── VIEWS (show/hide) ────────────────────────────────── */
.view { display: none; }
.view.show { display: block; }

/* ── ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-up { animation: fadeUp 0.25s ease; }
