/* ===== Erişilebilirlik, çerez onayı, yasal sayfalar, site haritası ===== */

/* --- klavye odak görünürlüğü (WCAG 2.4.7) --- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #ff9100;
  outline-offset: 3px;
  border-radius: 6px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: #0d47a1; color: #fff; padding: 12px 22px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- erişilebilirlik butonu --- */
.a11y-toggle {
  position: fixed; left: 24px; bottom: 24px; z-index: 300;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #0d47a1, #1e88e5); color: #fff;
  box-shadow: 0 8px 24px rgba(13,71,161,.42);
  display: flex; align-items: center; justify-content: center; transition: .25s;
}
.a11y-toggle:hover { transform: scale(1.08); }
.rtl .a11y-toggle { left: auto; right: 24px; }
/* çerez bandı açıkken alt köşe butonları bandın üstüne çıksın */
body.cookie-open .a11y-toggle { bottom: 168px; }
body.cookie-open .a11y-panel { bottom: 232px; }
body.cookie-open .wa-float { bottom: 168px; }

/* --- erişilebilirlik paneli --- */
.a11y-panel {
  position: fixed; left: 24px; bottom: 90px; z-index: 301;
  width: 330px; max-width: calc(100vw - 40px); max-height: 78vh; overflow-y: auto;
  background: #fff; border-radius: 18px; padding: 20px;
  box-shadow: 0 24px 60px rgba(15,27,45,.3);
  opacity: 0; transform: translateY(14px); transition: .25s;
}
.a11y-panel.open { opacity: 1; transform: none; }
.rtl .a11y-panel { left: auto; right: 24px; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.a11y-head h2 { font-size: 17px; color: #0f1b2d; }
.a11y-close {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: #eef2f8;
  cursor: pointer; font-size: 14px; transition: .2s; color: #0f1b2d;
}
.a11y-close:hover { background: #dfe7f2; transform: rotate(90deg); }
.a11y-group { margin-bottom: 16px; }
.a11y-label {
  display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: #8296ad; margin-bottom: 9px;
}
.a11y-row { display: flex; align-items: center; gap: 10px; }
.a11y-btn {
  flex: 1; padding: 10px; border: 2px solid #e6ecf5; border-radius: 10px; background: #fafcff;
  font-weight: 800; font-size: 15px; cursor: pointer; transition: .2s; color: #0f1b2d; font-family: inherit;
}
.a11y-btn:hover { border-color: #1e88e5; color: #1e88e5; }
.a11y-val { min-width: 54px; text-align: center; font-weight: 800; font-size: 13px; color: #0f1b2d; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-opt {
  display: flex; align-items: center; gap: 7px; padding: 10px 9px;
  border: 2px solid #e6ecf5; border-radius: 10px; background: #fafcff;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s;
  text-align: left; color: #33455e; font-family: inherit; line-height: 1.3;
}
.a11y-opt i { font-style: normal; font-size: 14px; flex-shrink: 0; }
.a11y-opt:hover { border-color: #1e88e5; }
.a11y-opt.on { background: linear-gradient(135deg, #0d47a1, #1e88e5); border-color: #0d47a1; color: #fff; }
.a11y-reset {
  width: 100%; padding: 11px; border: 0; border-radius: 10px; background: #feeaea; color: #c62828;
  font-weight: 800; font-size: 13px; cursor: pointer; transition: .2s; font-family: inherit;
}
.a11y-reset:hover { background: #fbd2d2; }
.a11y-note { font-size: 11px; color: #8296ad; margin-top: 12px; line-height: 1.6; }

/* sesli okuma kontrolleri */
.speech-ctl {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 9px; padding: 9px; background: #f2f8ff; border-radius: 10px; border: 1px solid #d8e8fb;
}
.speech-ctl button {
  padding: 7px 11px; border: 1px solid #bcd8f5; border-radius: 8px; background: #fff;
  cursor: pointer; font-size: 12px; font-weight: 700; color: #0d47a1; font-family: inherit; transition: .18s;
}
.speech-ctl button:hover { background: #0d47a1; color: #fff; border-color: #0d47a1; }
.speech-rate { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #5b7089; width: 100%; margin-top: 3px; }
.speech-rate input { flex: 1; accent-color: #1e88e5; }
.speech-rate span { min-width: 34px; text-align: right; }
body.is-speaking .a11y-toggle { animation: speakPulse 1.1s ease-in-out infinite; }
@keyframes speakPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(13,71,161,.42), 0 0 0 0 rgba(30,136,229,.55); }
  50%      { box-shadow: 0 8px 24px rgba(13,71,161,.42), 0 0 0 12px rgba(30,136,229,0); }
}
.a11y-note kbd {
  background: #eef2f8; border-radius: 4px; padding: 1px 5px; font-size: 10.5px;
  border: 1px solid #dfe7f2; font-family: inherit;
}

/* --- uygulanan ayarlar --- */
.a11y-font-on { font-size: var(--a11y-font, 100%); }
.a11y-contrast { filter: contrast(1.45) saturate(1.35); }
.a11y-grayscale { filter: grayscale(1); }
.a11y-invert { filter: invert(1) hue-rotate(180deg); }
.a11y-invert img, .a11y-invert video, .a11y-invert iframe { filter: invert(1) hue-rotate(180deg); }
.a11y-dark { filter: invert(.92) hue-rotate(180deg); background: #fff; }
.a11y-dark img, .a11y-dark video, .a11y-dark iframe, .a11y-dark .flag { filter: invert(1) hue-rotate(180deg); }
.a11y-dyslexic, .a11y-dyslexic * { font-family: Verdana, Tahoma, 'Comic Sans MS', sans-serif !important; }
.a11y-spacing, .a11y-spacing * { letter-spacing: .09em !important; word-spacing: .18em !important; }
.a11y-lineheight, .a11y-lineheight * { line-height: 2.1 !important; }
.a11y-align p, .a11y-align li, .a11y-align h1, .a11y-align h2, .a11y-align h3 { text-align: left !important; }
.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; font-weight: 700 !important; outline: 1px dashed rgba(255,145,0,.6); outline-offset: 2px; }
.a11y-animations *, .a11y-animations *::before, .a11y-animations *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
.a11y-animations .reveal { opacity: 1 !important; transform: none !important; }
.a11y-bigcursor, .a11y-bigcursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 2l30 20-14 2 8 16-6 3-8-16-10 9z' fill='%23000' stroke='%23fff' stroke-width='2.5'/%3E%3C/svg%3E") 4 2, auto !important;
}
.a11y-ruler {
  position: fixed; left: 0; right: 0; height: 44px; z-index: 299; pointer-events: none;
  background: rgba(255,145,0,.16); border-top: 2px solid #ff9100; border-bottom: 2px solid #ff9100;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* --- çerez bandı --- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 310;
  background: #fff; box-shadow: 0 -8px 34px rgba(15,27,45,.2);
  border-top: 4px solid; border-image: linear-gradient(90deg,#0072ff,#00c6ff,#00e5c3) 1;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.cookie-bar.show { transform: none; }
.cookie-in { display: flex; align-items: center; gap: 28px; padding: 20px; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 280px; }
.cookie-text h3 { font-size: 16px; margin-bottom: 6px; color: #0f1b2d; }
.cookie-text p { font-size: 13.5px; color: #44586f; line-height: 1.65; }
.cookie-text a { color: #1e88e5; font-weight: 700; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-plain { background: transparent; color: #5b6b80; text-decoration: underline; padding: 11px 14px; }
.btn-plain:hover { color: #1e88e5; }

/* --- çerez ayarları modalı --- */
/* [hidden] öğeler display:flex ile görünür kalıp tıklamaları engelliyordu */
.cookie-modal[hidden], .cookie-bar[hidden], .a11y-panel[hidden], .a11y-ruler[hidden] { display: none !important; }
.cookie-modal {
  position: fixed; inset: 0; z-index: 320; background: rgba(7,30,61,.7);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; transition: .25s;
}
.cookie-modal.open { opacity: 1; }
.cookie-modal-in {
  background: #fff; border-radius: 20px; width: 560px; max-width: 100%; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  transform: scale(.94); transition: .25s;
}
.cookie-modal.open .cookie-modal-in { transform: none; }
.cm-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px 14px; }
.cm-head h2 { font-size: 19px; color: #0f1b2d; }
.cm-body { padding: 0 26px; }
.cm-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid #eef2f8; cursor: pointer;
}
.cm-item:last-child { border-bottom: 0; }
.cm-info { flex: 1; }
.cm-info b { display: block; font-size: 14.5px; color: #0f1b2d; margin-bottom: 3px; }
.cm-info span { font-size: 12.5px; color: #5b6b80; line-height: 1.6; }
.cm-check { position: absolute; opacity: 0; pointer-events: none; }
.cm-switch {
  width: 48px; height: 27px; border-radius: 20px; background: #d5dfeb;
  position: relative; flex-shrink: 0; transition: .25s;
}
.cm-switch i {
  position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; transition: .25s; box-shadow: 0 2px 5px rgba(0,0,0,.2);
}
.cm-check:checked + .cm-switch, .cm-switch.on { background: linear-gradient(90deg,#0072ff,#00c6ff); }
.cm-check:checked + .cm-switch i, .cm-switch.on i { left: 24px; }
.cm-item.locked { opacity: .75; cursor: not-allowed; }
.cm-foot {
  display: flex; gap: 12px; justify-content: flex-end; padding: 18px 26px 24px;
  border-top: 1px solid #eef2f8; margin-top: 8px; flex-wrap: wrap;
}

/* --- yasal sayfalar --- */
.legal-layout { display: grid; grid-template-columns: 1fr 300px; gap: 34px; align-items: start; }
.legal-body {
  background: #fff; border-radius: 18px; padding: 40px; box-shadow: 0 10px 30px rgba(13,71,161,.12);
  color: #33455e; font-size: 15px; line-height: 1.85;
}
.legal-body h2 {
  font-size: 20px; font-weight: 800; color: #0f1b2d; margin: 30px 0 14px;
  padding-left: 14px; border-left: 4px solid; border-image: linear-gradient(180deg,#0072ff,#00e5c3) 1;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16px; font-weight: 800; color: #0d47a1; margin: 22px 0 10px; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 18px 24px; }
.legal-body li { margin-bottom: 9px; }
.legal-body a { color: #1e88e5; font-weight: 700; border-bottom: 1px solid rgba(30,136,229,.35); }
.legal-body a:hover { border-bottom-color: #1e88e5; }
.legal-body strong { color: #0f1b2d; }
.legal-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }

/* --- site haritası --- */
.sm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; margin-bottom: 22px; }
.sm-block {
  background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(13,71,161,.1);
}
.sm-block.wide { margin-bottom: 22px; }
.sm-block h2 {
  font-size: 17px; font-weight: 800; color: #0f1b2d; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid #eef2f8; display: flex; align-items: center; gap: 9px;
}
.sm-block h2 small { color: #8296ad; font-weight: 600; font-size: 13px; }
.sm-ic { font-size: 20px; }
.sm-sub { font-size: 14.5px; font-weight: 800; color: #0d47a1; margin: 18px 0 10px; }
.sm-block ul { list-style: none; }
.sm-block li { padding: 6px 0; font-size: 14px; }
.sm-block li a { color: #33455e; transition: .2s; }
.sm-block li a:hover { color: #1e88e5; padding-left: 5px; }
.sm-block li em { color: #8296ad; font-size: 12px; font-style: normal; }
.sm-cols { columns: 3; column-gap: 28px; }
.sm-xml {
  text-align: center; background: #eaf4ff; border-radius: 14px; padding: 18px;
  font-size: 14px; color: #33455e;
}
.sm-xml a { color: #1e88e5; font-weight: 800; }

/* --- 404 sayfası --- */
.nf-search { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 26px; }
.nf-search input {
  flex: 1; padding: 13px 18px; border: 2px solid #dbe4ef; border-radius: 30px;
  font-family: inherit; font-size: 14.5px; background: #fff;
}
.nf-search input:focus { outline: none; border-color: #00c6ff; box-shadow: 0 0 0 4px rgba(0,198,255,.15); }
.nf-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.nf-cats { background: #fff; border-radius: 18px; padding: 26px; box-shadow: 0 10px 30px rgba(13,71,161,.1); max-width: 760px; margin: 0 auto; }
.nf-cats h3 { font-size: 15px; margin-bottom: 14px; color: #0f1b2d; }
.nf-cat-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.nf-cat-list a {
  background: #eef5ff; color: #0d47a1; padding: 8px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 700; transition: .2s;
}
.nf-cat-list a:hover { background: linear-gradient(90deg,#0072ff,#00c6ff); color: #fff; }

/* --- footer yasal satırı --- */
.footer-legal {
  display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center;
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px;
}
.footer-legal a, .footer-legal button {
  color: #93a9c4; transition: .2s; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 12.5px; padding: 0;
}
.footer-legal a:hover, .footer-legal button:hover { color: #00c6ff; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-side { position: static; }
  .sm-cols { columns: 2; }
}
@media (max-width: 640px) {
  .sm-cols { columns: 1; }
  .legal-body { padding: 24px 20px; }
  .a11y-toggle { left: 16px; bottom: 84px; width: 48px; height: 48px; }
  .a11y-panel { left: 16px; right: 16px; width: auto; bottom: 140px; }
  .cookie-btns { width: 100%; }
  .cookie-btns .btn { flex: 1; }
}

/* --- Erişilebilirlik butonu: mobilde gizlenebilir --- */
.a11y-fab { position: fixed; left: 24px; bottom: 24px; z-index: 300; }
.a11y-fab .a11y-toggle { position: static; left: auto; bottom: auto; }
.a11y-hide {
  position: absolute; top: -5px; right: -5px; width: 21px; height: 21px;
  border-radius: 50%; border: 2px solid #fff; cursor: pointer;
  background: #37474f; color: #fff; display: none;
  align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 3px 9px rgba(0,0,0,.3);
}
.a11y-hide:hover { background: #c62828; }
.a11y-restore {
  position: fixed; left: 0; bottom: 96px; z-index: 300;
  width: 30px; height: 40px; border: 0; cursor: pointer; padding: 0;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #0d47a1, #1e88e5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(13,71,161,.38); opacity: .82; transition: .25s;
}
.a11y-restore:hover { opacity: 1; width: 38px; }
.a11y-restore[hidden] { display: none; }
.rtl .a11y-fab { left: auto; right: 24px; }
.rtl .a11y-hide { right: auto; left: -5px; }
.rtl .a11y-restore { left: auto; right: 0; border-radius: 12px 0 0 12px; }
body.cookie-open .a11y-fab { bottom: 168px; }

/* dokunmatik ekranlarda kapatma tuşu her zaman görünür */
@media (max-width: 980px), (hover: none) {
  .a11y-hide { display: flex; }
}
@media (max-width: 980px) {
  .a11y-fab { left: 16px; bottom: 84px; }
  .a11y-fab .a11y-toggle { width: 48px; height: 48px; }
  .a11y-restore { bottom: 84px; width: 26px; height: 36px; }
}

/* --- Alt köşe butonları TEK taban çizgisine bağlı ---
   Ayrı ayrı "bottom" verildiğinde biri diğerinden kayıyordu.
   Tek değişken: üçü de aynı hizada kalır, çerez bandı açılınca birlikte yükselir. */
:root{ --fab-alt: 24px; }
@media(max-width:980px){ :root{ --fab-alt: 20px; } }
body.cookie-open{ --fab-alt: 168px; }

.wa-float{ bottom: var(--fab-alt) !important; }
.a11y-fab{ bottom: var(--fab-alt) !important; }
.a11y-restore{ bottom: var(--fab-alt) !important; }

@media(max-width:980px){
  /* Yükseklikler eşitlenir ki merkezleri de aynı çizgiye otursun */
  .wa-float{ width:48px; height:48px; }
  .a11y-fab .a11y-toggle{ width:48px; height:48px; }
  .a11y-restore{ width:28px; height:48px; }
}
@media(max-width:400px){
  .wa-float{ width:44px; height:44px; }
  .a11y-fab .a11y-toggle{ width:44px; height:44px; }
  .a11y-restore{ width:26px; height:44px; }
}
