/*
 * base.css — reset ve belge varsayilanlari.
 *
 * Sitedeki her sayfa (index, apps, privacy, terms, 404, egitim) bunu
 * tokens.css'ten SONRA, kendi bilesen CSS'inden ONCE yukler.
 *
 * Onceki surumde ayni reset uc ayri dosyada (style.css, legal.css ve dolayli
 * olarak education.css) tekrar ediyordu. Reset ve belge varsayilanlari artik
 * yalnizca burada tanimlanir.
 */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-6);
  -webkit-text-size-adjust: 100%;
  /* Yatay tasmaya karsi emniyet. `clip` bilincli tercih: `hidden` body'yi
     kaydirma konteynerine cevirir ve `position: sticky` profil kartini bozar. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100svh;
  background: var(--bg_dark);
  color: var(--text_body);
  font-family: var(--font_sans);
  font-size: var(--font-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-relaxed);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text_strong);
  font-weight: var(--weight-normal);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--text_strong);
  font-weight: var(--weight-medium);
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
}

code,
pre,
.code-text {
  font-family: var(--font_mono);
}

::selection {
  background: var(--primary_color);
  color: var(--bg_dark);
}

/* --- Erisilebilirlik --------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary_color);
  outline-offset: 3px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  z-index: 10001;
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--primary_color);
  color: var(--bg_dark);
  font-weight: var(--weight-semibold);
  transform: translateX(-50%);
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* reCAPTCHA v3 rozeti gizlenir; bilgilendirme metni formun altinda verilir. */
.grecaptcha-badge {
  visibility: hidden;
}
