/* Kaduke Creations — sade, minimal site stili.
   Renkler tek yerde: :root. Koyu tema otomatik (cihaz ayarına göre). */

:root {
  --bg: #ffffff;
  --surface: #f8f5f5;
  --text: #1f1a1a;
  --muted: #6b6262;
  --line: #ece4e4;
  --accent: #9b111e;          /* kan kırmızısı */
  --accent-soft: #f8e9ea;
  --radius: 14px;
  --max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141111;
    --surface: #1d1818;
    --text: #ece6e6;
    --muted: #a89d9d;
    --line: #2e2626;
    --accent: #e0525c;        /* koyu zeminde okunsun diye biraz açık kırmızı */
    --accent-soft: #3a1a1d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; display: block; }

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

/* ---------- İki dil: aktif olmayan dil gizlenir ---------- */
html:not([data-lang]) [lang="tr"],
html[data-lang="en"] [lang="tr"],
html[data-lang="tr"] [lang="en"] { display: none !important; }

/* ---------- Üst çubuk ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em;
  margin-right: auto;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--bg);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }

.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  font: inherit; font-size: 13px; font-weight: 600;
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 11px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }

@media (max-width: 560px) {
  .nav { display: none; }
}

/* ---------- Bölümler ---------- */
main { padding-bottom: 40px; }

.hero { padding: 88px 0 56px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.03em;
  margin: 0 0 18px; max-width: 18ch;
}
.hero p { font-size: 19px; color: var(--muted); margin: 0; max-width: 46ch; }

section { padding: 40px 0; }
.section-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}

/* ---------- Uygulama kartı ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: var(--bg);
  display: flex; flex-direction: column; gap: 12px;
}
.card-head { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 52px; height: 52px; border-radius: 13px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 26px; font-weight: 700;
}
.card h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 2px 10px; border-radius: 999px; margin-top: 4px;
  white-space: nowrap;
}
.card .links { display: flex; gap: 16px; margin-top: auto; padding-top: 6px; font-size: 15px; }

.card.placeholder {
  border-style: dashed; background: transparent; justify-content: center; align-items: center;
  color: var(--muted); text-align: center; min-height: 160px;
}

/* ---------- İletişim ---------- */
.contact-box {
  background: var(--surface); border-radius: var(--radius); padding: 26px;
}
.contact-box p { margin: 0 0 6px; color: var(--muted); }
.contact-box a { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .contact-box { padding: 20px; } .contact-box a { font-size: 17px; } }

/* ---------- Uygulama sayfası ---------- */
.app-hero { padding: 64px 0 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.app-hero .app-icon { width: 76px; height: 76px; border-radius: 18px; font-size: 38px; }
.app-hero h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; line-height: 1.15; }
.app-hero p { margin: 4px 0 0; color: var(--muted); }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li {
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
}
.features strong { display: block; margin-bottom: 2px; }
.features span.d { color: var(--muted); font-size: 16px; }

/* ---------- Metin sayfaları (gizlilik politikası) ---------- */
.doc { max-width: 720px; padding-top: 56px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .summary {
  background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 8px;
}
.doc .summary ul { margin: 6px 0 0; }

/* ---------- Alt bilgi ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }
