/* ============================================================
   Erişilebilirlik Menüsü - Sade Panel / Kırmızı-Beyaz Tema
   Yazı boyutu gerçek punto olarak uygulanır (zoom değil)
   ============================================================ */

:root {
  --a11y-primary: #dc2626;
  --a11y-primary-dark: #b91c1c;
  --a11y-primary-light: #fee2e2;
  --a11y-primary-soft: #fef2f2;
  --a11y-accent: #991b1b;
  --a11y-bg: #ffffff;
  --a11y-surface: #f9fafb;
  --a11y-text: #111827;
  --a11y-muted: #6b7280;
  --a11y-border: #e5e7eb;
  --a11y-shadow: 0 20px 40px rgba(220, 38, 38, .22);
  --a11y-radius: 14px;
  /* GERÇEK PUNTO — body font-size'ı belirler */
  --a11y-font-size: 16px;
}

/* ===== Skip Link ===== */
.a11y-skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: #dc2626;
  color: #fff;
  z-index: 999999;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.2s;
}

  .a11y-skip-link:focus {
    top: 0;
    outline: 3px solid #fbbf24;
  }

/* ===== Floating Button ===== */
.a11y-fab {
  position: fixed;
  bottom: 75px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(220, 38, 38, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  transition: transform .2s, box-shadow .2s;
}

  .a11y-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(220, 38, 38, .65);
  }

  .a11y-fab:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
  }

  .a11y-fab svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
  }

  .a11y-fab::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(220, 38, 38, .4);
    animation: a11y-pulse 2.5s infinite;
    pointer-events: none;
  }

@keyframes a11y-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ===== Panel ===== */
.a11y-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 130px);
  background: var(--a11y-bg);
  border-radius: var(--a11y-radius);
  box-shadow: var(--a11y-shadow);
  border: 2px solid #fee2e2;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(.95);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
  overflow: hidden;
}

  .a11y-panel.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

/* ===== Header ===== */
.a11y-panel-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
}

  .a11y-panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  }

  .a11y-panel-header h2 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  }

    .a11y-panel-header h2 svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

.a11y-hdr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a11y-hdr-btn {
  background: rgba(255, 255, 255, .2);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .15s;
}

  .a11y-hdr-btn:hover {
    background: rgba(255, 255, 255, .35);
  }

  .a11y-hdr-btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
  }

  .a11y-hdr-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }

/* ===== Logo ===== */
.a11y-logo-area {
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-bottom: 2px solid #fecaca;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.a11y-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .15);
}

  .a11y-logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
  }

.a11y-logo-text {
  flex: 1;
  min-width: 0;
}

.a11y-logo-title {
  font-size: .88rem;
  font-weight: 800;
  color: #991b1b;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a11y-logo-subtitle {
  font-size: .68rem;
  color: #b91c1c;
  margin: 3px 0 0;
  font-weight: 500;
  opacity: .85;
}

/* ===== Content ===== */
.a11y-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 16px;
  scrollbar-width: thin;
}

  .a11y-content::-webkit-scrollbar {
    width: 8px;
  }

  .a11y-content::-webkit-scrollbar-track {
    background: var(--a11y-surface);
  }

  .a11y-content::-webkit-scrollbar-thumb {
    background: #fecaca;
    border-radius: 4px;
  }

    .a11y-content::-webkit-scrollbar-thumb:hover {
      background: #fca5a5;
    }

.a11y-group-title {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #991b1b;
  font-weight: 800;
  margin: 16px 0 8px;
  padding-left: 8px;
  border-left: 3px solid #dc2626;
}

  .a11y-group-title:first-child {
    margin-top: 0;
  }

/* ===== Yazı Boyutu (Punto) ===== */
.a11y-fontsize-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fecaca;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 4px;
}

.a11y-fontsize-preview {
  background: #fff;
  border: 1px dashed #fca5a5;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
  color: #7f1d1d;
  margin-bottom: 12px;
  font-weight: 600;
  transition: font-size .15s;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a11y-fontsize-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.a11y-fontsize-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #fecaca;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: #991b1b;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: inherit;
}

  .a11y-fontsize-btn:hover {
    background: #fee2e2;
    border-color: #dc2626;
    transform: scale(1.05);
  }

  .a11y-fontsize-btn:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
  }

  .a11y-fontsize-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
  }

.a11y-fontsize-value {
  flex: 1;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #991b1b;
  font-variant-numeric: tabular-nums;
}

.a11y-fontsize-reset {
  width: 40px;
  height: 40px;
  border: 2px solid #fecaca;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  color: #991b1b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}

  .a11y-fontsize-reset:hover {
    background: #fee2e2;
    border-color: #dc2626;
  }

  .a11y-fontsize-reset:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
  }

  .a11y-fontsize-reset svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

/* ===== Sesli Okuma Kartı ===== */
.a11y-tts-card {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 2px solid #fecaca;
  border-radius: 12px;
  padding: 14px;
}

.a11y-tts-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.a11y-tts-status-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, .35);
  transition: transform .3s;
}

  .a11y-tts-status-icon.active {
    animation: a11y-tts-pulse 1.4s infinite;
  }

@keyframes a11y-tts-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, .35);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, .55);
  }
}

.a11y-tts-status-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.a11y-tts-status-info {
  flex: 1;
  min-width: 0;
}

.a11y-tts-status-text {
  font-size: .82rem;
  font-weight: 700;
  color: #991b1b;
  margin: 0 0 2px;
}

.a11y-tts-status-sub {
  font-size: .68rem;
  color: #b91c1c;
  opacity: .85;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a11y-tts-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.a11y-tts-btn {
  flex: 1;
  height: 40px;
  border: 2px solid #fecaca;
  background: #fff;
  border-radius: 10px;
  color: #991b1b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: inherit;
}

  .a11y-tts-btn:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, .2);
  }

  .a11y-tts-btn:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
  }

  .a11y-tts-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
  }

  .a11y-tts-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .a11y-tts-btn.primary {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    border-color: #dc2626;
  }

    .a11y-tts-btn.primary:hover:not(:disabled) {
      box-shadow: 0 6px 18px rgba(220, 38, 38, .4);
    }

.a11y-tts-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: .76rem;
}

  .a11y-tts-slider label {
    min-width: 76px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
  }

    .a11y-tts-slider label svg {
      width: 14px;
      height: 14px;
      fill: #dc2626;
    }

  .a11y-tts-slider input[type="range"] {
    flex: 1;
    accent-color: #dc2626;
    cursor: pointer;
    height: 6px;
  }

.a11y-tts-slider-val {
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #dc2626;
  font-size: .72rem;
}

/* ===== Feature Buttons ===== */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

  .a11y-grid.cols-1 {
    grid-template-columns: 1fr;
  }

  .a11y-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

.a11y-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  background: var(--a11y-surface);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: .72rem;
  color: #374151;
  text-align: center;
  font-weight: 500;
  transition: all .15s;
  line-height: 1.25;
}

  .a11y-feature:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
  }

  .a11y-feature:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
  }

  .a11y-feature[aria-pressed="true"] {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    border-color: #dc2626;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .15);
  }

    .a11y-feature[aria-pressed="true"]::after {
      content: '✓';
      position: absolute;
      top: 3px;
      right: 5px;
      background: #dc2626;
      color: #fff;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      font-size: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
    }

  .a11y-feature svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

/* ===== Select ===== */
.a11y-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: .78rem;
}

  .a11y-select-row label {
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 76px;
  }

    .a11y-select-row label svg {
      width: 14px;
      height: 14px;
      fill: #dc2626;
    }

  .a11y-select-row select {
    flex: 1;
    padding: 8px 10px;
    border: 2px solid var(--a11y-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .78rem;
    background: #fff;
    color: var(--a11y-text);
    cursor: pointer;
    min-width: 0;
  }

    .a11y-select-row select:focus {
      outline: none;
      border-color: #dc2626;
      box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
    }

/* ===== Presets ===== */
.a11y-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.a11y-preset {
  padding: 10px 4px;
  background: var(--a11y-surface);
  border: 2px solid var(--a11y-border);
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 600;
  color: #374151;
  text-align: center;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

  .a11y-preset:hover {
    border-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
  }

  .a11y-preset:focus-visible {
    outline: 3px solid #dc2626;
    outline-offset: 2px;
  }

  .a11y-preset svg {
    width: 20px;
    height: 20px;
    fill: #dc2626;
  }

  .a11y-preset[aria-pressed="true"] {
    background: linear-gradient(135deg, #fee2e2, #fef2f2);
    border-color: #dc2626;
    color: #991b1b;
  }

/* ===== Slider ===== */
.a11y-slider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: .78rem;
}

  .a11y-slider label {
    min-width: 90px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
  }

    .a11y-slider label svg {
      width: 14px;
      height: 14px;
      fill: #dc2626;
    }

  .a11y-slider input[type="range"] {
    flex: 1;
    accent-color: #dc2626;
    cursor: pointer;
    height: 6px;
  }

.a11y-slider-val {
  min-width: 42px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #dc2626;
  font-size: .74rem;
}

/* ===== Footer ===== */
.a11y-panel-footer {
  padding: 12px 16px;
  border-top: 2px solid #fee2e2;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.a11y-footer-btn {
  flex: 1;
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

  .a11y-footer-btn svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
  }

  .a11y-footer-btn.reset {
    background: #fff;
    color: #991b1b;
    border-color: #fecaca;
  }

    .a11y-footer-btn.reset:hover {
      background: #fee2e2;
      border-color: #dc2626;
    }

  .a11y-footer-btn.save {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .3);
  }

    .a11y-footer-btn.save:hover {
      box-shadow: 0 6px 18px rgba(220, 38, 38, .45);
      transform: translateY(-1px);
    }

  .a11y-footer-btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
  }

/* ===== Toast ===== */
.a11y-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: all .25s;
  box-shadow: 0 10px 30px rgba(220, 38, 38, .4);
  display: flex;
  align-items: center;
  gap: 8px;
}

  .a11y-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .a11y-toast svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
  }

/* ===== Reading guide / Mask ===== */
.a11y-reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(220, 38, 38, .9);
  pointer-events: none;
  z-index: 99990;
  display: none;
  box-shadow: 0 0 14px rgba(220, 38, 38, .9);
  transition: opacity .2s;
}

html.a11y-f-reading-guide .a11y-reading-guide {
  display: block;
}

.a11y-mask-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99989;
  display: none;
}

html.a11y-f-reading-mask .a11y-mask-overlay {
  display: block;
}

.a11y-mask-overlay::before,
.a11y-mask-overlay::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .65);
  transition: height .05s;
}

.a11y-mask-overlay::before {
  top: 0;
  height: var(--mask-top, 40%);
}

.a11y-mask-overlay::after {
  bottom: 0;
  height: var(--mask-bottom, 40%);
}

/* ===== TTS Floating Bar ===== */
.a11y-tts-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 12px 36px rgba(220, 38, 38, .5);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99997;
  transition: transform .3s ease, opacity .3s ease;
  opacity: 0;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .25);
  max-width: calc(100vw - 32px);
}

  .a11y-tts-bar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

.a11y-tts-bar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}

  .a11y-tts-bar-btn:hover {
    background: rgba(255, 255, 255, .35);
    transform: scale(1.08);
  }

  .a11y-tts-bar-btn:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
  }

  .a11y-tts-bar-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .a11y-tts-bar-btn.primary {
    background: #fff;
    color: #991b1b;
  }

    .a11y-tts-bar-btn.primary:hover {
      background: #fee2e2;
    }

.a11y-tts-bar-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.a11y-tts-bar-title {
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.a11y-tts-bar-progress {
  height: 3px;
  background: rgba(255, 255, 255, .25);
  border-radius: 2px;
  overflow: hidden;
}

.a11y-tts-bar-progress-fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 2px;
  transition: width .2s;
  width: 0%;
}

/* ===== TTS Vurgulama ===== */
.a11y-tts-reading {
  background: linear-gradient(90deg, rgba(220, 38, 38, .1), rgba(220, 38, 38, .04)) !important;
  border-radius: 6px;
  box-shadow: -4px 0 0 #dc2626, 0 0 0 3px rgba(220, 38, 38, .15);
  transition: all .25s;
}

/* ===== Tıkla-Oku Modu ===== */
html.a11y-f-click-read body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *):not(.a11y-tts-bar):not(.a11y-tts-bar *) {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%23dc2626' stroke='white' stroke-width='2'/><path d='M8 12h8M12 8v8' stroke='white' stroke-width='2'/></svg>") 16 16, pointer !important;
}

html.a11y-f-click-read body *:hover:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *):not(.a11y-tts-bar):not(.a11y-tts-bar *) {
  outline: 3px dashed #dc2626 !important;
  outline-offset: 2px;
  background: rgba(220, 38, 38, .06) !important;
}

/* ============================================================
   ERİŞİLEBİLİRLİK DURUMLARI
   ============================================================ */

/* Metin aralıkları */
body {
  line-height: var(--a11y-line-height, 1.65);
}

body {
  letter-spacing: var(--a11y-letter-spacing, 0);
}

body {
  word-spacing: var(--a11y-word-spacing, 0);
}

/* High Contrast */
html.a11y-f-contrast, html.a11y-f-contrast body {
  background: #000 !important;
  color: #ffff00 !important;
}

  html.a11y-f-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *):not(.a11y-skip-link):not(.a11y-toast):not(.a11y-toast *):not(.a11y-reading-guide) {
    background-color: transparent !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
  }

  html.a11y-f-contrast body a {
    color: #00ffff !important;
    text-decoration: underline !important;
  }

/* Dark Contrast */
html.a11y-f-dark-contrast, html.a11y-f-dark-contrast body {
  background: #111 !important;
  color: #f1f5f9 !important;
}

  html.a11y-f-dark-contrast body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *) {
    background-color: transparent !important;
    color: #f1f5f9 !important;
    border-color: #334155 !important;
  }

  html.a11y-f-dark-contrast body a {
    color: #fca5a5 !important;
  }

/* Monochrome */
html.a11y-f-monochrome body {
  filter: grayscale(1) contrast(1.15);
}

/* Invert */
html.a11y-f-invert body {
  filter: invert(1) hue-rotate(180deg);
}

  html.a11y-f-invert body img,
  html.a11y-f-invert body video {
    filter: invert(1) hue-rotate(180deg);
  }

/* Highlight Links */
html.a11y-f-links body a {
  background: #fef08a !important;
  color: #7c2d12 !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
  outline: 2px solid #ca8a04 !important;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Highlight Headings */
html.a11y-f-headings body h1,
html.a11y-f-headings body h2,
html.a11y-f-headings body h3,
html.a11y-f-headings body h4 {
  outline: 3px dashed #dc2626 !important;
  outline-offset: 4px;
  background: rgba(220, 38, 38, .08) !important;
}

/* Highlight Buttons */
html.a11y-f-buttons body button:not(.a11y-fab):not(.a11y-hdr-btn):not(.a11y-feature):not(.a11y-preset):not(.a11y-footer-btn):not(.a11y-tts-btn):not(.a11y-fontsize-btn):not(.a11y-fontsize-reset) {
  outline: 3px solid #dc2626 !important;
  outline-offset: 3px;
}

/* Dyslexia */
html.a11y-f-dyslexia body,
html.a11y-f-dyslexia body *:not(svg):not(svg *) {
  font-family: 'Comic Sans MS', 'Trebuchet MS', Verdana, sans-serif !important;
  letter-spacing: .04em;
  word-spacing: .16em;
  line-height: 1.9 !important;
}

/* Big cursor */
html.a11y-f-big-cursor,
html.a11y-f-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 32 32'><path d='M8 2 L8 26 L14 20 L18 28 L22 26 L18 18 L26 18 Z' fill='%23dc2626' stroke='white' stroke-width='2'/></svg>") 4 2, auto !important;
}

/* Stop animations */
html.a11y-f-no-anim *,
html.a11y-f-no-anim *::before,
html.a11y-f-no-anim *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

/* Hide images */
html.a11y-f-hide-images body img,
html.a11y-f-hide-images body video {
  visibility: hidden !important;
}

/* Align left */
html.a11y-f-align-left body,
html.a11y-f-align-left body * {
  text-align: left !important;
}

/* Underline */
html.a11y-f-underline body,
html.a11y-f-underline body p,
html.a11y-f-underline body span,
html.a11y-f-underline body li {
  text-decoration: underline !important;
}

/* Strong focus */
html.a11y-f-strong-focus *:focus {
  outline: 4px solid #dc2626 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, .3) !important;
}

/* Reduce motion */
html.a11y-f-reduce-motion *,
html.a11y-f-reduce-motion *::before,
html.a11y-f-reduce-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* Sepia */
html.a11y-f-sepia body {
  background: #f5ecd9 !important;
  filter: sepia(.35) !important;
}

/* Night mode */
html.a11y-f-night-mode body {
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

  html.a11y-f-night-mode body *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *) {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
  }

  html.a11y-f-night-mode body a {
    color: #fca5a5 !important;
  }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .a11y-panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 88px;
    max-height: calc(100vh - 110px);
  }

  .a11y-fab {
    right: 12px;
    bottom: 12px;
    width: 54px;
    height: 54px;
  }

  .a11y-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .a11y-logo-img {
    width: 38px;
    height: 38px;
  }

  .a11y-tts-bar {
    left: 12px;
    right: 12px;
    transform: translateX(0) translateY(120px);
    bottom: 88px;
    padding: 8px 12px;
    border-radius: 16px;
  }

    .a11y-tts-bar.visible {
      transform: translateX(0) translateY(0);
    }

  .a11y-tts-bar-info {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a11y-panel, .a11y-fab, .a11y-fab::after {
    transition: none !important;
    animation: none !important;
  }
}
