/* Ortak erişilebilirlik ve etkileşim katmanı — tüm sayfalarda yüklenir.
   Dayanak: Apple HIG — accessibility.md, buttons.md › Best practices, motion.md, typography.md */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Klavye odağı: fareyle tıklamada görünmez, klavyeyle gezerken her zaman görünür (3:1 üzeri) */
:where(a, button, summary, [role="button"], [tabindex]):focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid #C0192B;
  outline-offset: 2px;
}
input:not([type="checkbox"]):not([type="radio"]):focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #C0192B !important;
  outline-offset: 0;
}
/* Lacivert zeminlerde odak halkası beyaz */
:where(.bg-\[\#0F172A\], .bg-\[\#0f172a\], footer.bg-\[\#0F172A\]) :where(a, button):focus-visible {
  outline-color: #FFFFFF;
}

/* Basma durumu: özel düğmeler dokunulduğunu hissettirir */
:where(button, [role="button"], a[class*="bg-"]):not(:disabled):active {
  filter: brightness(0.92);
}
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }

/* Yalnızca ikondan oluşan düğmeler: dokunmatik ekranda 44×44 dokunma alanı (erisim.js işaretler) */
@media (pointer: coarse) {
  .ikon-dugme { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
}

/* Hareketi azalt: otomatik ve tekrarlayan hareketler durur; yükleniyor göstergesi yavaşça döner */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-spin {
    animation-duration: 1.5s !important;
    animation-iteration-count: infinite !important;
  }
}

/* Ekran okuyucular için görünmez metin */
.sr-yalniz {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
