/* Wijnveiling Scanner — Wijnatelier Eikenrode-huisstijl (bordeaux/goud/cream). */

:root {
  --bordeaux: #6B1F2F;
  --bordeaux-dark: #4E1622;
  --gold: #B08D3F;
  --gold-light: #D4B878;
  --cream: #FAF6F0;
  --paper: #FFFFFF;
  --ink: #2B2118;
  --muted: #8A7D6B;
  --line: #E4DBCD;
  --ok: #2E7D4F;
  --warn: #C0392B;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; }

/* ---------- layout ---------- */
header.topbar {
  background: var(--bordeaux);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.topbar img { height: 34px; width: 34px; border-radius: 4px; background: #fff; }
header.topbar .brand { font-size: 17px; letter-spacing: .3px; }
header.topbar .brand small { display: block; font-size: 10px; color: var(--gold-light); font-family: Helvetica, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; }
header.topbar .personal {
  margin-left: auto;
  font-family: Helvetica, sans-serif;
  font-size: 10px;
  color: var(--gold-light);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .8px;
  max-width: 40%;
}

nav.tabs {
  display: flex;
  background: var(--bordeaux-dark);
  overflow-x: auto;
  position: sticky;
  top: 54px;
  z-index: 9;
}
nav.tabs a {
  color: #E8D9C0;
  text-decoration: none;
  padding: 10px 14px;
  font-family: Helvetica, sans-serif;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
nav.tabs a.active { color: #fff; border-bottom-color: var(--gold); }

main { max-width: 760px; margin: 0 auto; padding: 18px 14px 80px; }

h1 { font-size: 24px; color: var(--bordeaux); margin: 6px 0 14px; }
h2 { font-size: 17px; color: var(--bordeaux); margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
h3 { font-size: 15px; margin: 14px 0 6px; }

/* ---------- cards & rows ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.lot-row {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--ink);
}
.lot-row:hover { border-color: var(--gold); }
.lot-title { font-size: 14px; line-height: 1.4; color: var(--bordeaux); }
.lot-meta { font-family: Helvetica, sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.lot-meta .price { color: var(--gold); font-weight: 600; }
.badge {
  display: inline-block;
  font-family: Helvetica, sans-serif;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 9px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--muted);
  vertical-align: 1px;
}
.badge.gold { background: #F6EAD2; border-color: var(--gold-light); color: #7A5F22; }

/* ingetogen iconografie i.p.v. emoji */
.ico { vertical-align: -1px; }
.ico-gold { color: var(--gold); }
.region {
  display: inline-block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 9.5px; font-weight: 600; letter-spacing: .6px;
  padding: 1px 5px; border: 1px solid var(--gold-light); border-radius: 3px;
  color: #7A5F22; background: #F6EAD2; vertical-align: 1px; margin-right: 2px;
}
.chip-gold {
  display: inline-block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px; color: #7A5F22; background: #F6EAD2;
  border: 1px solid var(--gold-light); border-radius: 9px; padding: 0 7px; vertical-align: 1px;
}
.chip-gold .ico { margin-right: 2px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0; margin-right: 4px; }
.dot-priority { background: #7A2E2E; }
.dot-watch { background: var(--gold); }
.dot-background { background: #C3B7A2; }
.dot-ok { background: var(--ok); }
.dot-warn { background: #C08A12; }
.dot-err { background: var(--warn); }
.dot-run { background: #B7AA95; }
.tag {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 9.5px;
  letter-spacing: .5px; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; margin-left: 4px;
}
.chev { color: var(--muted); display: inline-flex; transition: transform .2s; }

/* ---------- forms ---------- */
label.fld { display: block; font-family: Helvetica, sans-serif; font-size: 12px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }

.btn {
  display: inline-block;
  background: var(--bordeaux);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 14px;
  text-decoration: none;
}
.btn:hover { background: var(--bordeaux-dark); }
.btn.secondary { background: transparent; color: var(--bordeaux); border: 1px solid var(--bordeaux); }
.btn.small { padding: 6px 14px; font-size: 13px; margin-top: 0; }
.btn.gold { background: var(--gold); }
.btn:disabled { opacity: .5; cursor: default; }

.msg { font-family: Helvetica, sans-serif; font-size: 13px; padding: 10px 14px; border-radius: 6px; margin: 12px 0; }
.msg.ok { background: #E8F3EC; color: var(--ok); }
.msg.err { background: #F9E8E5; color: var(--warn); }
.msg.info { background: #F6EAD2; color: #7A5F22; }

.muted { color: var(--muted); font-family: Helvetica, sans-serif; font-size: 12.5px; }

/* toggle */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; background: #CFC5B4; border-radius: 12px; cursor: pointer; transition: .2s;
}
.switch span::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s;
}
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(18px); }

/* auth screens */
.auth-wrap { max-width: 380px; margin: 40px auto; }
.auth-wrap .logo { display: block; margin: 0 auto 14px; height: 84px; }
.auth-wrap h1 { text-align: center; }
.auth-tabs { display: flex; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.auth-tabs a { flex: 1; text-align: center; padding: 9px; font-family: Helvetica, sans-serif; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.auth-tabs a.active { color: var(--bordeaux); border-bottom-color: var(--gold); }

/* update banner + verify banner */
.banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bordeaux); color: #fff;
  font-family: Helvetica, sans-serif; font-size: 13px;
  padding: 12px 16px; display: flex; gap: 12px; align-items: center; justify-content: center;
  z-index: 50;
}
.banner button { background: var(--gold); border: none; color: #fff; border-radius: 5px; padding: 7px 14px; cursor: pointer; }

/* advies-blok */
.advice { background: #FBF7EE; border: 1px solid var(--gold-light); border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.advice h3 { color: var(--bordeaux); margin-top: 0; }
.advice .disclaimer { font-size: 11px; color: var(--muted); font-family: Helvetica, sans-serif; margin-top: 10px; }

/* dunne-lijn extern-link-icoon (geen unicode-pijltjes/emoji in de UI) */
.ico-ext { width: 13px; height: 13px; margin-left: 7px; vertical-align: -1.5px; }

table.admin { width: 100%; border-collapse: collapse; font-family: Helvetica, sans-serif; font-size: 12.5px; }
table.admin th { text-align: left; color: var(--muted); font-weight: 400; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
table.admin td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (max-width: 480px) {
  header.topbar .personal { display: none; }
  main { padding: 14px 10px 80px; }
}
