/* ============================================================
   GBI SCM — Dek Preferensi Desain (Tinder for taste)
   Bahasa: Indonesia. Mobile-first. Dependency-free.
   ============================================================ */

:root {
  --gold: #C9A227;
  --gold-dark: #A98B2F;
  --ink: #24201A;
  --ivory: #FAF7F0;
  --stone: #EDE6D6;
  --muted: #6B6459;
  --teal: #1E3A4C;
  --white: #FFFFFF;
  --red: #C0392B;
  --green: #2E7D5B;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(36, 32, 26, .12);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Layout shell ---------- */
.app {
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--white);
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,.08);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--stone);
  z-index: 5;
}
.topbar .logo { width: 34px; height: 34px; border-radius: 50%; }
.topbar .brand { line-height: 1.1; }
.topbar .brand b { font-family: var(--serif); font-size: 17px; font-weight: 600; display: block; }
.topbar .brand span { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Intro ---------- */
.intro {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 24px; text-align: center; gap: 18px; overflow-y: auto;
}
.intro .logo { width: 84px; margin: 0 auto; }
.intro h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.intro p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 34ch; margin: 0 auto; }
.intro .eyebrow { color: var(--gold); letter-spacing: .22em; font-size: 11px; text-transform: uppercase; font-weight: 600; }
.hint-swipe { display: flex; justify-content: center; gap: 28px; font-size: 13px; color: var(--muted); }
.hint-swipe .no { color: var(--red); font-weight: 700; }
.hint-swipe .yes { color: var(--green); font-weight: 700; }

/* ---------- Deck ---------- */
.stage { flex: 1; position: relative; padding: 14px 16px 8px; overflow: hidden; }
.progress { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 8px; letter-spacing: .05em; }
.deck { position: relative; height: 100%; }

.card {
  position: absolute; inset: 0;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}
.card .art { flex: 1; min-height: 0; overflow: hidden; background: #111; }
.card .art img { width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; }
.card .meta { padding: 14px 16px 16px; background: var(--white); border-top: 1px solid var(--stone); }
.card .meta h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.card .meta p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.card .tags span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); background: var(--ivory); border: 1px solid var(--stone); padding: 3px 8px; border-radius: 999px; }

/* Swipe stamps */
.stamp {
  position: absolute; top: 18px; font-family: var(--sans); font-weight: 800; font-size: 30px;
  padding: 6px 14px; border: 4px solid; border-radius: 8px; letter-spacing: .05em;
  opacity: 0; transition: opacity .1s; pointer-events: none; z-index: 3;
}
.stamp.like { left: 16px; color: var(--green); border-color: var(--green); transform: rotate(-12deg); }
.stamp.nope { right: 16px; color: var(--red); border-color: var(--red); transform: rotate(12deg); }

/* Background peek cards */
.card.behind { transform: scale(.95) translateY(14px); box-shadow: none; }
.card.behind-2 { transform: scale(.90) translateY(26px); box-shadow: none; }

/* ---------- Action buttons ---------- */
.actions {
  display: flex; justify-content: center; gap: 22px; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--white); border-top: 1px solid var(--stone);
}
.act {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; font-size: 26px; font-weight: 800;
  box-shadow: var(--shadow); transition: transform .12s;
}
.act:active { transform: scale(.9); }
.act.nope { background: var(--white); color: var(--red); border: 2px solid var(--red); }
.act.like { background: var(--gold); color: var(--white); border: 2px solid var(--gold-dark); font-size: 24px; }
.act.undo { width: 48px; height: 48px; font-size: 18px; background: var(--white); color: var(--muted); border: 2px solid var(--stone); align-self: center; }

/* ---------- Summary ---------- */
.summary { flex: 1; overflow-y: auto; padding: 20px 20px 32px; }
.summary h1 { font-family: var(--serif); font-size: 26px; font-weight: 600; text-align: center; }
.summary .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.chips span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); background: #EAF1F4; border: 1px solid #D3E0E6; padding: 5px 11px; border-radius: 999px; font-weight: 600; }
.sum-section h3 { font-family: var(--serif); font-size: 18px; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.sum-list { display: flex; flex-direction: column; gap: 10px; }
.sum-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--stone); border-radius: 12px; background: var(--ivory); }
.sum-item img { width: 52px; height: 70px; object-fit: cover; border-radius: 8px; }
.sum-item b { font-size: 14px; display: block; }
.sum-item span { font-size: 12px; color: var(--muted); }
.sum-empty { font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; width: 100%; padding: 15px 20px; border-radius: 12px;
  font-weight: 700; font-size: 16px; text-align: center; transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn.gold { background: var(--gold); color: var(--white); }
.btn.gold:hover { background: var(--gold-dark); }
.btn.outline { background: var(--white); color: var(--ink); border: 2px solid var(--stone); }
.btn.teal { background: var(--teal); color: var(--white); }
.btn-row { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* ---------- Prototype banner ---------- */
  background: var(--teal); color: #fff; text-align: center; font-size: 11px;
  letter-spacing: .08em; padding: 5px; text-transform: uppercase; font-weight: 600;
}

/* Larger screens: center the phone frame */
@media (min-width: 540px) {
  body { display: grid; place-items: center; background: linear-gradient(160deg, var(--ivory), var(--stone)); }
  .app { height: 92dvh; border-radius: 28px; overflow: hidden; border: 1px solid var(--stone); }
}
