/* Uygulamanın tasarım belirteçleri: koyu yüzeyler, tek vurgu rengi, sistem yazı tipi, 8 pt ızgara. */
:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --raised: #1C1C1C;
  --line: rgba(255, 255, 255, 0.08);
  --text: #FFFFFF;
  --muted: #A3A3A3;
  --faint: #8A8A8A;
  --accent: #D7261E;
  --accent-text: #FF4D45;
  --radius: 16px;
  --measure: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Hiragino Sans", "PingFang SC",
    "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

code {
  font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--raised);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

/* Üst ve alt çubuk */
.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bar nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.bar nav > a { color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand img { border-radius: 8px; }
footer.bar { border-top: 1px solid var(--line); margin-top: 96px; font-size: 15px; justify-content: flex-start; gap: 32px; }
footer.bar a { color: var(--muted); }

/* Dil seçici: betiksiz açılır liste */
.languages { position: relative; }
.languages summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--raised);
}
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after { content: " ▾"; color: var(--faint); }
.languages ul {
  position: absolute;
  right: 0;
  z-index: 2;
  margin: 8px 0 0;
  padding: 8px;
  list-style: none;
  min-width: 200px;
  background: var(--raised);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 16px 32px rgba(0, 0, 0, 0.5);
}
.languages li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); }
.languages li a:hover { background: var(--line); text-decoration: none; }
.languages li a[aria-current="page"] { color: var(--accent-text); }

/* İçerik sütunu */
main { max-width: var(--measure); margin: 0 auto; padding: 0 32px; }
main.landing { max-width: 1120px; }
.part { max-width: var(--measure); margin: 0 auto; padding-top: 80px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: clamp(30px, 7vw, 64px); margin: 24px 0; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: 32px; margin: 0 0 24px; font-weight: 600; }
h3 { font-size: 20px; margin: 32px 0 8px; font-weight: 600; }
p, li { color: #D4D4D4; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin: 0 0 8px; }
li > ul { margin-top: 8px; }
strong { color: var(--text); font-weight: 600; }

/* Kahraman bölümü */
.part-1 { padding-top: 48px; }
.part-1 .hero-icon { display: block; border-radius: 22px; }
.part-1 h1 + p { font-size: 20px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text);
  font-weight: 600;
}
.button.primary { background: var(--accent); box-shadow: 0 8px 24px rgba(215, 38, 30, 0.28); }
.button:hover { text-decoration: none; filter: brightness(1.1); }
.note { color: var(--faint); font-size: 15px; }

/* Kanıt kartları */
.part-2 { max-width: 1120px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin-top: 0; font-size: 22px; }

/* SSS */
.question { font-size: 18px; margin: 32px 0 8px; }

/* Tablolar: dar ekranda yalnız tablo kayar, sayfa kaymaz */
.table { overflow-x: auto; margin: 0 0 24px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); font-weight: 600; background: var(--surface); }
tbody th { color: var(--muted); font-weight: 600; width: 28%; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: #D4D4D4; }

/* Gizlilik sayfası */
main.doc { padding-top: 32px; }
main.doc h2 { margin-top: 64px; font-size: 26px; }
main.doc h3 { margin-top: 40px; }

/* Taslak önizlemesinde eksik değerler */
mark.todo { background: #5A4A00; color: #FFE680; padding: 0 4px; border-radius: 4px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .bar, main { padding-left: 16px; padding-right: 16px; }
  .bar nav { gap: 16px; }
  .part { padding-top: 56px; }
  .card { padding: 24px; }
  h2 { font-size: 26px; }
  tbody th { width: auto; }
  footer.bar { gap: 16px; }
}
