/* Oxi web — uygulamayla aynı tasarım dili (app/lib/core/design/skin.dart) */
:root {
  --bg: #fff8f3;
  --surface: #fff;
  --surface-muted: #fff1ea;
  --ink: #1c1b2e;
  --muted: #6e6a7c;
  --border: #f2e4dc;
  --accent: #ff6b35;
  --accent-strong: #e8471f;
  --accent-soft: #ffe8dd;
  --accent-glow: #ff3f5e;
  --glow: var(--accent-glow);
  --teal: #1285a8;
  --teal-soft: #e2f2f7;
  --hover: #fff1ea;
  --warn: #f59e0b;
  --warn-soft: #fff3dc;
  --warn-ink: #92400e;
  --ok-soft: #dcfce7;
  --ok-ink: #166534;
  --danger: #e5322d;
  --danger-soft: #fde3e1;
  --info: #1285a8;
  --info-soft: #e2f2f7;
  --radius: 22px;
  --radius-sm: 14px;
  --pill: 999px;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--glow) 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% -10%, rgba(255, 107, 53, .16), transparent 70%),
    radial-gradient(40% 30% at 100% 100%, rgba(255, 63, 94, .10), transparent 70%);
}
a { color: var(--accent-strong); }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 20px; }

/* Başlık / alt bilgi */
.site-header { padding: 18px 0 10px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; line-height: 0; text-decoration: none; }
.wordmark img { display: block; height: 40px; width: auto; }
main { flex: 1; padding: 8px 0 40px; }
.site-footer { padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--accent-strong); }

/* Tipografi */
h1 { font-weight: 800; letter-spacing: -.025em; line-height: 1.1; font-size: clamp(30px, 7vw, 40px); margin: 0 0 12px; overflow-wrap: anywhere; }
h1.h-sm { font-size: clamp(22px, 5.5vw, 28px); }
h2 { font-weight: 800; letter-spacing: -.02em; font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--muted); margin-bottom: 24px; }
.hero { padding: 22px 0 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--accent-strong);
  background: var(--accent-soft); border-radius: var(--pill); padding: 6px 12px; margin-bottom: 16px;
}

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: var(--pill); border: 0;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(255, 107, 53, .65); }
.btn-primary:hover { box-shadow: 0 14px 28px -10px rgba(255, 107, 53, .8); }
.btn-secondary { background: var(--surface); color: var(--accent-strong); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-secondary.is-done { border-color: var(--accent); background: var(--accent-soft); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-direction: column; gap: 10px; }

/* Mağaza düğmeleri */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 360px) { .stores { grid-template-columns: 1fr; } }
.is-ios .stores [data-store="ios"] { order: -1; }
.btn-store { flex-direction: column; gap: 2px; padding: 10px 16px; min-height: 56px; text-align: center; }
/* uppercase kullanılmıyor: lang="tr" altında "i" → "İ" olur (ANDROİD, İPHONE) */
.btn-store .btn-sub { font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--muted); }
.btn-store .btn-main { font-size: 16px; }
.btn-store.is-soon { background: var(--surface-muted); color: var(--muted); border-color: transparent; box-shadow: none; cursor: default; }
.btn-store.is-soon:active { transform: none; }
.btn-store.is-soon .btn-sub { color: var(--accent-strong); }

/* Kart ve listeler */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 12px 30px -18px rgba(232, 71, 31, .22);
}
.section { margin-top: 16px; }
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.features li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px;
}
.features .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; }
.features b { display: block; font-weight: 700; }
.features span { color: var(--muted); font-size: 14px; }

/* v1.5: plan kapak görseli / kategori gradyanı (uygulamadaki CategoryArt ile aynı renkler) */
.ev-hero { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin: -4px 0 14px; background: linear-gradient(135deg, var(--accent), var(--glow)); }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-hero.cat-coffee { background: linear-gradient(135deg, #ff8c1f, #e8471f); }
.ev-hero.cat-food { background: linear-gradient(135deg, #ff5c3a, #ff3f5e); }
.ev-hero.cat-cinema { background: linear-gradient(135deg, #3b2f66, #6d4ed6); }
.ev-hero.cat-sport { background: linear-gradient(135deg, #1285a8, #25c6d9); }
.ev-hero.cat-concert { background: linear-gradient(135deg, #7c3aed, #ff3f5e); }
.ev-hero.cat-game { background: linear-gradient(135deg, #0e7c5b, #2dd4a6); }
.ev-hero.cat-night_out { background: linear-gradient(135deg, #1c1b2e, #5b21b6); }
.ev-hero.cat-spontaneous { background: linear-gradient(135deg, #ff6b35, #ffc53d); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; border-radius: var(--pill); padding: 5px 11px; background: var(--accent-soft); color: var(--accent-strong); }
.chip.status-open { background: var(--ok-soft); color: var(--ok-ink); }
.chip.status-full { background: var(--warn-soft); color: var(--warn-ink); }
.chip.status-completed { background: var(--surface-muted); color: var(--muted); }

.meta { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 12px; }
.meta li { display: flex; gap: 12px; align-items: flex-start; }
.meta svg { flex: none; color: var(--accent); margin-top: 2px; }
.meta b { font-weight: 700; }
.meta small { display: block; color: var(--muted); font-size: 13px; }
.meta small:empty { display: none; }

.hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.hint.is-warn { color: var(--warn-ink); }

.code-box { background: var(--accent-soft); border: 1.5px dashed var(--accent); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; margin: 16px 0; }
.code-box .code { font-family: var(--mono); font-size: clamp(28px, 9vw, 40px); font-weight: 800; letter-spacing: .18em; color: var(--accent-strong); overflow-wrap: anywhere; }
.code-box small { display: block; color: var(--muted); margin-top: 6px; font-size: 13px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.empty { text-align: center; padding: 12px 0 6px; }
.empty .glyph { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* İskelet */
.skeleton { position: relative; overflow: hidden; background: var(--surface-muted); border-radius: 10px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-chip { height: 26px; width: 90px; border-radius: var(--pill); margin-bottom: 14px; }
.sk-title { height: 34px; width: 75%; margin-bottom: 16px; }
.sk-line { height: 14px; width: 60%; margin-bottom: 12px; }
.sk-btn { height: 52px; border-radius: var(--pill); margin-top: 8px; }

/* Yasal sayfalar */
.draft { background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.legal h1 { font-size: clamp(26px, 6vw, 34px); }
.legal h2 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal mark { background: var(--warn-soft); color: var(--warn-ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.legal .updated { color: var(--muted); font-size: 13px; }

:focus-visible { outline: 3px solid rgba(255, 107, 53, .5); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } }
