/*
  blokpatlatmacera.com — tek stil dosyası.

  İskelet ceyizdan.com/assets/site.css'ten (aynı sınıf adları: site-header,
  brand, doc, summary, table.stack, site-footer). Renkler oyunun paletinden
  (lib/core/theme/app_colors.dart): mor #8B5CF6, mürekkep #2B2540, lavanta
  zemin. Bağlantı rengi #6D28D9 — #8B5CF6 açık zeminde 4,5:1'i tutturmuyor
  (WCAG AA).

  Site YALNIZ açık temada (Çeyizdan'daki karar gibi): oyunun vitrin renkleri
  koyu zeminde başka bir marka gibi görünüyor.

  Satır içi stil YOK: içerik güvenlik politikası (_headers → CSP style-src
  'self') satır içi stili engeller. Sayfalar tool/build_legal_pages.py ile
  üretilir; elle docs/web/*.html düzenleme, kaynak docs/web_src/ ve docs/*.md.

  Başlık fontu oyunun Fredoka'sı — Türkçe harfleri (ş ğ İ) eklenmiş sürüm,
  assets/fonts/Fredoka-VariableFont.ttf'nin kopyası (art_source/fonts/
  patch_turkish.py). Google Fonts'taki Fredoka'da bu harfler YOK.
*/

@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f5f3ff;
  --surface: #ffffff;
  --surface-alt: #efeaff;
  --accent-bg: #fff4cc;
  --accent-line: #ffe08a;
  --line: #e4ddfa;
  --text: #2b2540;
  --text-soft: #574f73;
  --link: #6d28d9;
  --brand: #8b5cf6;
  --radius: 20px;
  --max: 1040px;
  --read: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 14px;
  z-index: 10;
}

h1,
h2,
h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  margin-top: 1.6em;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.3em;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

li + li {
  margin-top: 0.35em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- üst şerit ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  font-size: 0.98rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 10px 2px;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-nav a.lang {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

/* ---------- ana sayfa ---------- */

.hero {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  box-shadow: 0 10px 28px rgba(43, 37, 64, 0.18);
}

.hero .lead {
  font-size: clamp(1.12rem, 2.4vw, 1.3rem);
  color: var(--text-soft);
  max-width: 34em;
}

/* İki mağaza rozeti yan yana; dar ekranda alt alta iner, metin rozetin
   içinde kırılabilir (sayfa yatay kaymaz). */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--text);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.98rem;
}

/* Mağaza ekran görüntüleri: telefonda 2, genişte 3 ya da 6 sütun. Görsel
   9:16; width/height öznitelikleri yer ayırır, sayfa yüklenirken kaymaz. */
.shots {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shots li {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(43, 37, 64, 0.14);
}

.features {
  list-style: none;
  padding: 0;
  margin: 8px 0 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.features li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.features h3 {
  margin: 0 0 0.3em;
  font-size: 1.3rem;
}

.features p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

.note {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 48px;
}

.note h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.note ul {
  padding-left: 1.2em;
  margin-bottom: 0;
}

/* ---------- metin sayfaları ---------- */

.doc {
  max-width: var(--read);
  padding-top: 40px;
  padding-bottom: 56px;
}

.doc .meta {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0 8px;
}

.doc .summary > :last-child {
  margin-bottom: 0;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.97rem;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 10px 0;
}

.doc th {
  font-weight: 600;
}

.path {
  font-weight: 600;
}

.contact {
  font-size: 1.15rem;
  font-weight: 600;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 18px;
  margin: 0 0 12px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 12px 0;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

/* ---------- alt bilgi ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.site-footer a {
  color: var(--text-soft);
}

/* Dar ekranda tablo satırları kart olur: başlık hücresi etiketi
   data-label'dan gelir (satır içi stil yok — CSP). */
@media (max-width: 600px) {
  .doc table.stack,
  .doc table.stack tbody,
  .doc table.stack tr,
  .doc table.stack td {
    display: block;
    width: 100%;
  }

  .doc table.stack thead {
    position: absolute;
    left: -9999px;
  }

  .doc table.stack tr {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 16px;
    margin: 0 0 12px;
  }

  .doc table.stack td {
    border: 0;
    padding: 4px 0;
  }

  .doc table.stack td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-soft);
  }
}

/* 375 px telefonda marka + dil düğmesi tek satıra sığsın. */
@media (max-width: 420px) {
  .brand {
    font-size: 1.2rem;
    gap: 8px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 640px) {
  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: auto 1fr;
    gap: 36px;
    padding: 64px 0 40px;
  }
}

@media (min-width: 980px) {
  .shots {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
