/* De landingspagina van het live dashboard (dashboard.html) en haar bedankje (dashboard-thanks.html).
   Ze bouwen op style.css van de gids: dezelfde balk, donkere lucht, letters, knoppen (.btn, .btn-brass)
   en kaders (.framed, .stone). Hier staat alleen wat deze pagina's zelf hebben: twee kolommen, links de
   belofte met het formulier, rechts een voorbeeld van het dashboard. Alles hangt aan body.dash. */

.dash { --wrap: 1140px; display: flex; flex-direction: column; }
.dash .topbar-inner { gap: 12px; }
/* de naam in de balk is de weg terug naar de gids, met een pijltje naar links */
.dash-home { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.dash-home .icon { width: 18px; height: 18px; transform: rotate(90deg); }

.dash-main { flex: 1 0 auto; padding: clamp(40px, 7vw, 88px) 0 0; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }

/* ---------- Links: de belofte ---------- */

.dash-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-kicker { margin: 0; font: 600 13px/1.4 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-500); }
.dash .dash-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; letter-spacing: .03em; text-wrap: balance; overflow-wrap: break-word; filter: drop-shadow(0 2px 0 rgba(4, 12, 12, .85)) drop-shadow(0 0 34px rgba(99, 245, 201, .22)); }
.dash-sub { max-width: 46ch; margin: 0; font-size: clamp(17px, 1.8vw, 19.5px); line-height: 1.45; color: var(--bone); text-wrap: pretty; }
/* de drie punten, elk met een ruitje zoals in het menu van de gids */
.dash-points { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.dash-point { display: flex; align-items: center; gap: 13px; color: var(--mist); }
.dash-point::before { content: ""; flex: none; width: 8px; height: 8px; border: 1px solid var(--brass-500); background: rgba(99, 245, 201, .5); transform: rotate(45deg); }
.dash-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 0; }
.dash .btn-brass { min-height: 52px; padding: 12px 26px 11px; font-size: 16px; text-decoration: none; }
.dash-cta[aria-expanded="true"] { display: none; }

/* ---------- Het formulier, onder de knop ---------- */

.dash-form { display: grid; gap: 14px; width: min(100%, 480px); padding: 22px clamp(18px, 4vw, 26px) 20px; }
.dash-form-title { margin: 0 0 2px; font: 700 20px/1.2 var(--font-display); letter-spacing: .05em; color: var(--brass-300); }
.dash-field { display: grid; gap: 4px; }
.dash-label { font-size: 16px; line-height: 1.3; color: var(--bone); }
.dash-optional { font-size: 14px; font-style: italic; color: var(--mist); }
.dash-optional::before { content: "("; }
.dash-optional::after { content: ")"; }
.dash-field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  font: 500 17px/1.2 var(--font-body);
  color: var(--bone);
  background: rgba(4, 14, 14, .62);
  border: 1px solid var(--brass-700);
  border-radius: 2px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55);
  -webkit-appearance: none;
  appearance: none;
}
.dash-field input::placeholder { color: #7f958f; font-style: italic; }
.dash-field input:focus-visible { outline: 2px solid var(--anima); outline-offset: 1px; border-color: var(--brass-300); }
.dash-field input[aria-invalid="true"] { border-color: var(--ember); }
.dash-msg { margin: 0; font-size: 16px; line-height: 1.35; color: var(--ember-soft); }
.dash-msg:empty { display: none; }
/* gelukt: de knop wordt groen en zegt het, de regel erboven ook; daarna volgt het bedankje */
.dash-msg.is-done { font-style: italic; color: var(--anima-soft); }
.dash-submit { width: 100%; }
.dash-privacy { margin: 0; font-size: 15px; line-height: 1.4; font-style: italic; color: var(--mist); text-align: center; }

/* ---------- Rechts: een voorbeeld van het dashboard ---------- */

.dash-preview { min-width: 0; padding: 16px; }
.dp-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; font-size: 18px; font-weight: 500; background: rgba(4, 14, 14, .62); border: 1px solid var(--brass-700); border-radius: 2px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55); }
.dp-search .icon { width: 20px; height: 20px; color: var(--brass-500); }
.dp-chests { margin: 10px 0 12px; padding: 0; list-style: none; }
/* een rij zoals een treffer in het zoekvak; de aangewezen rij zoals de gekozen treffer */
.dp-chest { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 46px; padding: 6px 12px; border-radius: 2px; }
.dp-chest.is-active { background: linear-gradient(180deg, #1e3f3c, #153331); box-shadow: inset 0 0 0 1px rgba(201, 161, 78, .45); }
.dp-names { display: flex; flex-direction: column; min-width: 0; }
.dp-name { font-weight: 600; }
.dp-base { font-size: 14.5px; font-style: italic; color: var(--mist); }
.dp-qty { font: 700 16px/1 var(--font-display); letter-spacing: .04em; color: var(--brass-200); }
/* een uitsnede van de kaart van Ashenfall met een ruitje per kist; de aangewezen kist licht op */
.dp-map { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0a1e1f url("assets/map-3072.jpg") 62% 46% / 520% no-repeat; border: 1px solid var(--brass-700); border-radius: 2px; }
.dp-map::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, .5) 100%); }
.dp-mark { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--brass-500); border: 2px solid var(--storm-950); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); transform: rotate(45deg); transition: all .2s cubic-bezier(.22, 1, .36, 1); }
.dp-mark.is-active { z-index: 1; width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--anima); box-shadow: 0 0 0 1px var(--brass-500), 0 0 14px 2px rgba(99, 245, 201, .7); }
.dp-mark[data-chest="0"] { left: 44%; top: 40%; }
.dp-mark[data-chest="1"] { left: 52%; top: 56%; }
.dp-mark[data-chest="2"] { left: 78%; top: 30%; }
.dp-online { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 3px; font: 600 12.5px/1.2 var(--font-display); letter-spacing: .07em; color: var(--anima-soft); background: rgba(8, 24, 24, .88); border: 1px solid rgba(99, 245, 201, .5); }
.dp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--anima); box-shadow: 0 0 8px rgba(99, 245, 201, .8); }

/* ---------- Bedankje ---------- */

.dash-done { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 720px; margin: 0 auto; text-align: center; }
.dash-done .dash-sub { margin-inline: auto; }
.dash-seal { display: block; width: 64px; height: 64px; color: var(--brass-300); }
.dash .dash-back { min-height: 46px; font-size: 15px; }

/* ---------- Voet ---------- */

.dash-footer { padding: clamp(56px, 8vw, 96px) 0 48px; text-align: center; font-size: 15px; line-height: 1.45; color: #86a098; }
.dash-footer p { max-width: 76ch; margin: 0 auto; }
.dash-noscript { margin: 0; padding: 0 16px 24px; text-align: center; color: var(--ember-soft); }

@media (max-width: 420px) {
  .dash .btn-brass { padding-inline: 16px; }
}
