/* Sempati erişilebilirlik araç çubuğu — düğme, panel ve html.e-* kuralları (WCAG 2.2 AA odaklı).
   Lexend: Google Fonts'tan indirilen değişken ağırlıklı dosya (400–600), yalnız latin + latin-ext. */
@font-face{font-family:'Lexend';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/lexend-400-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Lexend';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/lexend-400-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ---- düğme: sol alt (Sempo balonu ve başa dön sağda, sabit alt çubuk telefonda altta) ---- */
.erisim-dugme {
  position: fixed; left: 20px; bottom: 24px; z-index: 61;
  width: 48px; height: 48px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 50%; border: 2px solid var(--altin, #d99a2b);
  background: var(--murekkep, #0f1b3d); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(15, 27, 61, .22);
  transition: transform var(--gecis, .25s ease), box-shadow var(--gecis, .25s ease);
}
.erisim-dugme svg { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .erisim-dugme:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 27, 61, .28); } }
.erisim-dugme:focus-visible, .erisim-panel button:focus-visible, .erisim-panel a:focus-visible { outline: 3px solid var(--murekkep, #0f1b3d); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; }
.erisim-dugme[aria-expanded="true"] { background: var(--altin, #d99a2b); color: var(--murekkep, #0f1b3d); border-color: var(--murekkep, #0f1b3d); }

/* ---- panel ---- */
.erisim-panel {
  position: fixed; left: 16px; bottom: 84px; z-index: 97;
  width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto;
  padding: 14px 16px 16px; border-radius: 20px;
  background: var(--yuzey, #fff); color: var(--murekkep, #0f1b3d);
  border: 1px solid var(--cizgi, #e8e3d9); box-shadow: 0 22px 48px -14px rgba(15, 27, 61, .35);
  font-family: var(--sans, system-ui, sans-serif); font-size: .95rem; line-height: 1.4;
}
.erisim-panel[hidden] { display: none; }
.erisim-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.erisim-ust h2 { margin: 0; font-family: var(--serif, Georgia, serif); font-weight: 500; font-size: 1.25rem; letter-spacing: 0; line-height: 1.2; color: var(--murekkep, #0f1b3d); }
.erisim-kapat { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--zemin-2, #f4efe6); color: var(--murekkep, #0f1b3d); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.erisim-grup { margin: 6px 0 10px; }
.erisim-etiket { display: block; font-weight: 600; margin-bottom: 6px; }
.erisim-secenek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.erisim-secenek button, .erisim-anahtar, .erisim-sifirla {
  font: inherit; color: var(--murekkep, #0f1b3d); background: var(--yuzey, #fff);
  border: 1.5px solid var(--cizgi, #e8e3d9); border-radius: 12px; cursor: pointer; min-height: 48px;
}
.erisim-secenek button { font-weight: 700; }
.erisim-secenek button:nth-child(2) { font-size: 1.1em; }
.erisim-secenek button:nth-child(3) { font-size: 1.2em; }
.erisim-anahtar { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; margin: 0 0 8px; text-align: left; }
.erisim-anahtar i { font-style: normal; font-size: .82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--zemin-2, #f4efe6); color: var(--soluk, #5a6180); }
.erisim-secenek button[aria-pressed="true"], .erisim-anahtar[aria-pressed="true"] { background: var(--murekkep, #0f1b3d); color: #fff; border-color: var(--murekkep, #0f1b3d); }
.erisim-anahtar[aria-pressed="true"] i { background: var(--altin, #d99a2b); color: var(--murekkep, #0f1b3d); }
.erisim-sifirla { width: 100%; margin-top: 4px; font-weight: 600; background: var(--zemin-2, #f4efe6); }
.erisim-not { margin: 10px 0 0; font-size: .82rem; color: var(--soluk, #5a6180); }
.erisim-not a { color: var(--vurgu, #2456d6); }

/* telefon: sabit alt çubuğun (.mobil-cubuk, ≤640px) üstünde kalsın */
@media (max-width: 640px) {
  .erisim-dugme { left: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .erisim-panel { left: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); max-height: calc(100vh - 180px); }
}
html.oyun-modu .erisim-dugme, html.oyun-modu .erisim-panel, body.test-yazdirma .erisim-dugme, body.test-yazdirma .erisim-panel { display: none !important; }
@media print { .erisim-dugme, .erisim-panel { display: none !important; } }

/* ---- yazı boyutu: html yüzdesi (rem'ler) + body (site.css'te 17px sabit) ---- */
html.e-yazi-2 { font-size: 112.5%; }
html.e-yazi-3 { font-size: 125%; }
html.e-yazi-2 body, html.e-yazi-3 body { font-size: 1.0625rem; }

/* ---- satır aralığı (WCAG 1.4.12 metin aralığına yakın) ---- */
html.e-satir body { line-height: 1.85; }
html.e-satir p { margin-bottom: 1.6em; }
html.e-satir li { margin-bottom: .4em; }
html.e-satir h1, html.e-satir h2 { line-height: 1.25; }
html.e-satir h3 { line-height: 1.5; }

/* ---- yüksek kontrast ---- */
html.e-kontrast {
  --murekkep: #000; --metin: #000; --soluk: #1a1a1a; --cizgi: #000;
  --zemin: #fff; --zemin-2: #fff; --yuzey: #fff;
  --vurgu: #0000c8; --vurgu-acik: #fff; --yesil: #0a5a2e;
}
html.e-kontrast body { color: #000; background: #fff; }
html.e-kontrast a { color: #0000c8; text-decoration: underline; text-decoration-thickness: 2px; }
html.e-kontrast h1, html.e-kontrast h2, html.e-kontrast h3, html.e-kontrast h4 { color: #000; }
html.e-kontrast h1 em, html.e-kontrast h2 em { background: none; text-decoration: underline; text-decoration-color: #000; }
html.e-kontrast :focus-visible { outline: 3px solid var(--altin, #d99a2b) !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #000 !important; }
html.e-kontrast img, html.e-kontrast svg, html.e-kontrast video { filter: none !important; }
html.e-kontrast .bas, html.e-kontrast .mobil-cubuk, html.e-kontrast .yardim-panel, html.e-kontrast .erisim-panel, html.e-kontrast .rahat-panel, html.e-kontrast .ust-tel-liste {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: #fff !important; border-color: #000 !important;
}
html.e-kontrast .btn, html.e-kontrast button { border-color: #000; }
html.e-kontrast .btn-ana, html.e-kontrast .btn-wa, html.e-kontrast .erisim-dugme { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html.e-kontrast .erisim-secenek button[aria-pressed="true"], html.e-kontrast .erisim-anahtar[aria-pressed="true"] { background: #000; color: #fff; }
html.e-kontrast .erisim-anahtar i { color: #000; border: 1px solid #000; }
html.e-kontrast ::selection { background: #000; color: #fff; }

/* ---- okuma dostu yazı tipi ---- */
html.e-lexend body, html.e-lexend h1, html.e-lexend h2, html.e-lexend h3, html.e-lexend h4,
html.e-lexend button, html.e-lexend input, html.e-lexend select, html.e-lexend textarea, html.e-lexend .erisim-ust h2 {
  font-family: 'Lexend', var(--sans, system-ui, sans-serif); letter-spacing: 0;
}
html.e-lexend h1, html.e-lexend h2 { font-weight: 600; line-height: 1.15; }
html.e-lexend body { word-spacing: .05em; }
