/* ===========================================================
   Ahmet Yenilmez — Gizli Yönetim Paneli — PROTOTİP
   Ortak stil dosyası. Üç ekran da (giris, index, yeni-yazi) bu
   dosyayı kullanır. Dış kaynak (CDN) yok, her şey yerel.
   =========================================================== */

@font-face {
  font-family: 'Anybody';
  src: url('../font/anybody-genis.woff2') format('woff2');
  font-weight: 300 700;
  font-stretch: 100% 150%;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../font/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --zemin: #F3EEE4;      /* kemik */
  --metin: #0A0908;
  --kirmizi: #B3262E;
  --metin-ikincil: rgba(10, 9, 8, .6);
  --cizgi: rgba(10, 9, 8, .12);
  --kart: #FFFDF8;
  --dokunma-min: 56px;
  --kenar: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--zemin);
  color: var(--metin);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  min-height: 100vh;
}

h1, h2, h3, .baslik-yazi {
  font-family: 'Anybody', -apple-system, system-ui, sans-serif;
  font-stretch: 150%;
  font-weight: 700;
  margin: 0;
}

p { margin: 0; }

button, input, textarea {
  font-family: inherit;
  color: inherit;
}

a { color: var(--kirmizi); text-decoration: none; }

/* --- Genel sayfa sarmalayıcı --- */
.sayfa {
  padding: var(--kenar);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Düğme temelleri (dokunma hedefi >=56px) --- */
.dugme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--dokunma-min);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 14px 20px;
  transition: transform .12s ease;
  -webkit-user-select: none;
  user-select: none;
}

.dugme:active {
  transform: scale(.98);
}

.dugme-dolu {
  background: var(--kirmizi);
  color: #FFFDF8;
}

.dugme-cizgili {
  background: transparent;
  color: var(--metin);
  border: 2px solid var(--cizgi);
}

@media (prefers-reduced-motion: reduce) {
  .dugme, .kart, .fade-up { transition: none !important; animation: none !important; }
}

/* --- Giriş sayfaları yardımcı sınıfı --- */
.not-kucuk {
  font-size: 15px;
  color: var(--metin-ikincil);
  text-align: center;
}

/* --- Kart giriş animasyonu --- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fade-up .2s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}
