/* ============================================================================
 * İÇERİK / REHBER SAYFALARI (content.css)
 * ----------------------------------------------------------------------------
 * /kelime-duellosu, /saatli-bomba, /kelime-turetme-oyunu-nasil-oynanir gibi
 * sunucuda HTML olarak üretilen (bkz. seoPages.js) okunabilir rehber
 * sayfalarının stili. Oyunun kendi style.css'ini (131KB, oyun ekranlarına
 * özel) YÜKLEMEZ — bu sayfalar hızlı açılsın diye ayrı ve küçük tutuldu.
 * Renkler oyunla aynı (style.css :root ile birebir), böylece oyuncu rehberden
 * oyuna geçerken aynı markayı görür.
 * ==========================================================================*/

:root {
  --bg-deep: #150F28;
  --bg-card: #251C43;
  --bg-card-soft: #2C2250;
  --primary: #6C5CE7;
  --primary-light: #8B7FF0;
  --primary-dim: #4B3FA8;
  --accent-mint: #3FDDBF;
  --accent-amber: #FFC857;
  --accent-coral: #FF6B6B;
  --text-primary: #F5F3FF;
  --text-muted: #C3BBE6;
  --text-faint: #9389BD;
  --border-soft: rgba(255, 255, 255, 0.1);
  --font-display: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #2A2050 0%, var(--bg-deep) 60%) fixed, var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-mint); text-underline-offset: 3px; }
a:hover { color: #7BEAD5; }

:focus-visible { outline: 3px solid var(--accent-amber); outline-offset: 2px; border-radius: 4px; }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

/* --- Üst şerit --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(21, 15, 40, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent-amber); }
.brand:hover { color: var(--text-primary); }

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 0 var(--primary-dim);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-play:hover { color: #fff; filter: brightness(1.08); }
.btn-play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-dim); }
.btn-play-lg { padding: 13px 28px; font-size: 1.15rem; }

/* --- Ekmek kırıntısı ----------------------------------------------------- */
.breadcrumb { font-size: 0.86rem; color: var(--text-faint); margin: 18px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-faint); }
.breadcrumb a { color: var(--text-muted); }

/* --- Makale ------------------------------------------------------------- */
main { padding-bottom: 40px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text-primary); line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); margin: 14px 0 6px; }
h2 { font-size: clamp(1.3rem, 4vw, 1.6rem); margin: 38px 0 12px; }
h3 { font-size: 1.12rem; margin: 26px 0 8px; }
p { margin: 0 0 14px; }
strong { color: var(--text-primary); }
ul, ol { padding-left: 1.3em; margin: 0 0 14px; }
li { margin-bottom: 6px; }

.updated { font-size: 0.86rem; color: var(--text-faint); margin: 0 0 18px; }

.lead { font-size: 1.12rem; color: var(--text-primary); }

/* "Kısaca" kutusu — sayfanın özünü veren, alıntılanabilir kısa gerçekler. */
.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--accent-mint);
  border-radius: var(--radius);
  padding: 16px 18px 6px;
  margin: 20px 0 8px;
}
.summary-box h2 { font-size: 1.1rem; margin: 0 0 8px; }
.summary-box ul { margin-bottom: 10px; }

.example {
  background: var(--bg-card-soft);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 0 0 16px;
}
.chain { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); letter-spacing: 0.3px; }
.chain b { color: var(--accent-amber); }

.tip {
  background: rgba(255, 200, 87, 0.08);
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 16px;
}

/* Tablolar mobilde yatay kaydırılabilir (sayfa genişliğini taşırmaz). */
.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 0.94rem; }
caption { text-align: left; color: var(--text-faint); font-size: 0.86rem; padding-bottom: 6px; }
th, td { padding: 9px 10px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
th { color: var(--text-primary); font-family: var(--font-display); font-weight: 700; background: var(--bg-card); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* --- SSS ---------------------------------------------------------------- */
.faq-item { border-top: 1px solid var(--border-soft); padding-top: 4px; }
.faq-item h3 { color: var(--accent-mint); margin-top: 16px; }

/* --- Harekete geçirici kutu ------------------------------------------- */
.cta {
  text-align: center;
  background: linear-gradient(160deg, var(--bg-card-soft), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 26px 18px 28px;
  margin: 40px 0 10px;
}
.cta h2 { margin-top: 0; }
.cta p { margin-bottom: 18px; }

/* --- İlgili sayfalar / alt bilgi --------------------------------------- */
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.related li { margin: 0; }
.related a {
  display: block;
  height: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
}
.related a small { display: block; color: var(--text-faint); font-weight: 600; margin-top: 2px; }
.related a:hover { border-color: var(--accent-mint); }

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 0.88rem;
  color: var(--text-faint);
}
.site-footer nav ul { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-footer a { color: var(--text-muted); }

@media (max-width: 520px) {
  /* Dar ekranda tablo yana kaydırma gerektirmeden sığsın (kaydırılabileceği
     her kullanıcının aklına gelmiyor). */
  table { min-width: 0; font-size: 0.86rem; }
  th, td { padding: 8px 6px; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.15rem; }
  .btn-play { padding: 8px 14px; font-size: 0.92rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
