/* goksuns — ortak stil
   Fikir: yapı çizimlerindeki aks ızgarası. Aks çizgileri ve aks balonları
   sayfanın iskeletini, tarama (hatch) deseni de seçilen alanı gösterir. */

:root {
  --kagit:        #F2F3F1;
  --yuzey:        #FAFAF9;
  --murekkep:     #15181C;
  --soluk:        #59616A;
  --cizgi:        #C3C9CD;
  --cizgi-zayif:  #E1E4E6;
  --kobalt:       #2443C9;
  --kobalt-koyu:  #1B33A0;
  --kobalt-acik:  #E4E9FB;
  --tarama:       rgba(36, 67, 201, 0.16);
  --hata:         #B3261E;
  --hata-acik:    #FBE9E7;

  --yazi: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --kagit:        #111417;
    --yuzey:        #171B1F;
    --murekkep:     #E6E8EA;
    --soluk:        #9AA2AA;
    --cizgi:        #3A4148;
    --cizgi-zayif:  #262C32;
    --kobalt:       #8EA2FF;
    --kobalt-koyu:  #B3C1FF;
    --kobalt-acik:  #1D2447;
    --tarama:       rgba(142, 162, 255, 0.17);
    --hata:         #FF8A80;
    --hata-acik:    #3A1A18;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--kagit);
  color: var(--murekkep);
  font-family: var(--yazi);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--kobalt); }
:focus-visible { outline: 2px solid var(--kobalt); outline-offset: 2px; }

.ekran-okuyucu {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ───────── Marka ───────── */
.marka {
  font-stretch: 125%;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--murekkep);
  text-decoration: none;
  line-height: 1;
}

/* ───────── Pafta (karşılama ve giriş sayfaları) ───────── */
.pafta-sayfa {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 4vw, 48px) 28px;
}
.pafta-ust { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.pafta-ust .not { font-size: 14px; color: var(--soluk); }

.pafta {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 92px 24px 28px 64px;
  min-height: 360px;
}

/* Aks çizgileri */
.aks { position: absolute; pointer-events: none; }
.aks-d { top: -60px; bottom: -18px; width: 28px; margin-left: -14px; }
.aks-d::before {
  content: ''; position: absolute; left: 50%; top: 28px; bottom: 0; width: 1px;
  background: var(--cizgi); transform-origin: top;
  animation: ciz-d 700ms cubic-bezier(.2,.7,.2,1) both;
}
.aks-y { left: -60px; right: -18px; height: 28px; margin-top: -14px; }
.aks-y::before {
  content: ''; position: absolute; top: 50%; left: 28px; right: 0; height: 1px;
  background: var(--cizgi); transform-origin: left;
  animation: ciz-y 800ms cubic-bezier(.2,.7,.2,1) both;
}
.balon {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--murekkep);
  background: var(--kagit);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; font-stretch: 90%;
  animation: belir 400ms ease-out both;
}
.aks-d .balon { top: 0; left: 0; }
.aks-y .balon { left: 0; top: 0; }

.aks:nth-of-type(2)::before, .aks:nth-of-type(2) .balon { animation-delay: 90ms; }
.aks:nth-of-type(3)::before, .aks:nth-of-type(3) .balon { animation-delay: 180ms; }
.aks:nth-of-type(4)::before, .aks:nth-of-type(4) .balon { animation-delay: 260ms; }
.aks:nth-of-type(5)::before, .aks:nth-of-type(5) .balon { animation-delay: 330ms; }

@keyframes ciz-d { from { transform: scaleY(0); } }
@keyframes ciz-y { from { transform: scaleX(0); } }
@keyframes belir { from { opacity: 0; } }

.yalniz-mobil { display: none; }

/* Açıklık: iki aks arasındaki alan */
.aciklik {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  animation: belir 500ms ease-out 450ms both;
}
.aciklik::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(135deg, var(--tarama) 0 1px, transparent 1px 10px);
  opacity: 0; transition: opacity 220ms ease;
}
a.aciklik:hover::before, a.aciklik:focus-visible::before { opacity: 1; }
a.aciklik:focus-visible { outline: 2px solid var(--kobalt); outline-offset: -8px; }

.aciklik h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.aciklik p { color: var(--soluk); max-width: 36ch; font-size: 16px; }
.eylem {
  margin-top: 10px;
  align-self: flex-start;
  font-weight: 600;
  color: var(--kobalt);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-underline-offset 180ms ease;
}
a.aciklik:hover .eylem { text-underline-offset: 8px; text-decoration-thickness: 2px; }

/* Antet (çizim künyesi) */
.antet {
  align-self: flex-end;
  display: grid;
  grid-template-columns: repeat(4, auto);
  border: 1px solid var(--cizgi);
  margin: 0;
  font-size: 13px;
  background: var(--kagit);
}
.antet div { padding: 7px 14px 8px; border-left: 1px solid var(--cizgi); }
.antet div:first-child { border-left: 0; }
.antet dt { color: var(--soluk); font-size: 12px; font-stretch: 90%; }
.antet dd { margin: 0; font-weight: 600; white-space: nowrap; }

/* ───────── Form (giriş sayfası) ───────── */
.pafta.tek {
  grid-template-columns: minmax(0, 1fr);
  width: min(calc(100% - 88px), 540px);
  margin-left: auto; margin-right: auto;
  min-height: 0;
}
.pafta.tek h2 { max-width: none; }
.pafta.tek .aciklik { justify-content: center; gap: 22px; }
.form { display: grid; gap: 16px; }
.alan { display: grid; gap: 6px; }
.alan label { font-size: 14px; font-weight: 600; }
.alan input {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--cizgi);
  border-radius: 2px;
  background: var(--yuzey);
  color: var(--murekkep);
}
.alan input:hover { border-color: var(--soluk); }
.alan input:focus-visible { outline: 2px solid var(--kobalt); outline-offset: -1px; border-color: var(--kobalt); }
.dugme {
  font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--kobalt);
  border-radius: 2px;
  background: var(--kobalt);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) { .dugme { color: #0D1030; } }
.dugme:hover { background: var(--kobalt-koyu); border-color: var(--kobalt-koyu); }
.dugme.ikincil { background: transparent; color: var(--kobalt); }
.dugme.ikincil:hover { background: var(--kobalt-acik); }
.uyari {
  padding: 10px 12px;
  border-left: 3px solid var(--hata);
  background: var(--hata-acik);
  font-size: 15px;
}
.uyari.bilgi { border-left-color: var(--kobalt); background: var(--kobalt-acik); }
.kod {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  padding: 12px;
  background: var(--yuzey);
  border: 1px solid var(--cizgi);
  overflow-x: auto;
  white-space: pre;
  user-select: all;
}

/* ───────── Mobil ───────── */
@media (max-width: 760px) {
  .pafta-sayfa { padding: 20px 16px 20px; }
  .pafta { grid-template-columns: 1fr; margin: 80px 18px 24px 52px; min-height: 0; }
  .yalniz-masaustu { display: none; }
  .yalniz-mobil { display: block; }
  .aks-y { left: -52px; }
  .aciklik { padding: 32px 24px 36px; min-height: 42vh; }
  .pafta.tek .aciklik { min-height: 0; }
  .antet { align-self: stretch; grid-template-columns: 1fr 1fr; }
  .antet div:nth-child(3) { border-left: 0; }
  .antet div:nth-child(n+3) { border-top: 1px solid var(--cizgi); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
