/* Vector Crisis - store pages
   Self-contained: no external fonts, no CDN, no trackers. */

:root {
  color-scheme: light dark;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #16191f;
  --text-muted: #5b6472;
  --border: #dde2ea;
  --accent: #2f6df6;
  --accent-soft: #e8f0ff;
  --warn-bg: #fff7e6;
  --warn-border: #f0d190;
  --radius: 14px;
  --maxw: 780px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1116;
    --surface: #161b22;
    --surface-2: #1c232d;
    --text: #e6eaf0;
    --text-muted: #9aa5b4;
    --border: #2a323d;
    --accent: #6f9bff;
    --accent-soft: #1a2436;
    --warn-bg: #2a2413;
    --warn-border: #5c4c1f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- language switching ---------- */
/* With no JS, both languages render - still readable. */
html[data-lang="tr"] [data-lang="en"] { display: none; }
html[data-lang="en"] [data-lang="tr"] { display: none; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand svg { display: block; }

.site-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}

.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

/* ---------- layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.page-title { font-size: 30px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.02em; }
.page-meta { color: var(--text-muted); font-size: 14px; margin: 0 0 28px; }

h2 { font-size: 20px; margin: 34px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 22px 0 6px; }
p, li { color: var(--text); }
ul, ol { padding-inline-start: 22px; }
li { margin: 5px 0; }
a { color: var(--accent); }

.lead { font-size: 17px; color: var(--text-muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 18px 0;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}

.callout--warn {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  border-inline-start-color: #d9a21b;
}

.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 460px;
}

th, td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th { background: var(--surface-2); font-weight: 650; }
tbody tr:last-child td { border-bottom: 0; }

.contact-mail {
  display: inline-block;
  font-weight: 600;
  font-size: 17px;
}

dl.faq { margin: 0; }
dl.faq dt { font-weight: 650; margin-top: 18px; }
dl.faq dd { margin: 4px 0 0; color: var(--text); }

code, kbd {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 22px 0; }

.tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.tile:hover { border-color: var(--accent); }
.tile strong { display: block; margin-bottom: 4px; }
.tile span { color: var(--text-muted); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 16px 40px;
  display: flex;
  gap: 12px 20px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a { color: var(--text-muted); }
.site-footer nav { margin-inline-start: auto; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .page-title { font-size: 25px; }
  .site-nav { margin-inline-start: 0; width: 100%; }
  .site-footer nav { margin-inline-start: 0; }
}

@media print {
  .site-header, .site-footer, .lang-toggle { display: none; }
  body { background: #fff; color: #000; }
  main { max-width: none; }
}
