/* ============================================================
   base.css — TÜM SAYFALARDA ORTAK: değişkenler, reset, butonlar,
   ikon boyutu, gece/gündüz anahtarı. Her sayfa bunu ilk sırada
   yükler; sayfaya özel css dosyaları bunun üzerine yazılır.
   ============================================================ */

:root{
  --bg: #F0F2F5;
  --surface: #FFFFFF;
  --surface-alt: #F0F2F5;
  --surface-hover: #E4E6E9;
  --border: rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.15);

  --accent: #4F7CFF;
  --accent-deep: #3D63E0;
  --accent-text: var(--accent-deep);
  --accent2: #8B5CF6;
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  --like-color: #4F7CFF;

  --text: #1C1E21;
  --text-muted: #65676B;
  --text-dim: #6B7280;

  --font: 'Poppins', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.06), 0 1px 6px rgba(0,0,0,0.04);
  color-scheme: light;
}

[data-theme="dark"]{
  --bg: #18191A;
  --surface: #242526;
  --surface-alt: #3A3B3C;
  --surface-hover: #4A4B4C;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --accent-text: var(--accent);
  --text: #E4E6EB;
  --text-muted: #B0B3B8;
  --text-dim: #8A8D91;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  color-scheme: dark;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
html, body{ overflow-x:hidden; max-width:100%; }
body{
  background:var(--bg); color:var(--text); font-family:var(--font);
  line-height:1.5; -webkit-font-smoothing:antialiased;
  transition: background .2s ease, color .2s ease;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
img{ max-width:100%; display:block; }
:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }

.icon{ width:19px; height:19px; flex-shrink:0; }

/* ---- buttons ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px; border-radius:8px; font-weight:600; font-size:0.86rem;
  border:1px solid transparent; white-space:nowrap;
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary{ background:var(--grad); color:#fff; box-shadow:0 4px 14px -6px rgba(79,124,255,0.5); }
.btn-primary:hover{ box-shadow:0 6px 18px -6px rgba(79,124,255,0.6); }
.btn-ghost{ background:var(--surface-alt); color:var(--text); }
.btn-ghost:hover{ background:var(--surface-hover); }
.btn-outline{ border-color:var(--border-strong); color:var(--text); }
.btn-outline:hover{ background:var(--surface-alt); }
.btn-sm{ padding:8px 14px; font-size:0.8rem; }
.btn-block{ width:100%; }
.btn-icon{ width:38px; height:38px; padding:0; border-radius:50%; background:var(--surface-alt); display:flex; align-items:center; justify-content:center; }
.btn-icon:hover{ background:var(--surface-hover); }

/* ---- theme switch (gece/gündüz anahtarı) ---- */
.theme-switch{
  display:flex; align-items:center; gap:6px;
  background:var(--surface-alt); border-radius:999px; padding:5px; position:relative;
  width:64px; height:34px; flex-shrink:0;
}
.theme-switch .icon{ width:15px; height:15px; position:relative; z-index:2; }
.theme-switch .ic-sun{ color:#E8A33D; margin-left:2px; }
.theme-switch .ic-moon{ color:#8B5CF6; margin-right:2px; }
.theme-thumb{
  position:absolute; top:3px; left:3px; width:28px; height:28px; border-radius:50%;
  background:var(--surface); box-shadow:0 1px 3px rgba(0,0,0,0.25);
  transition: transform .22s ease;
}
[data-theme="dark"] .theme-thumb{ transform:translateX(30px); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}


/* ---- kapak fotoğrafı yüksekliği (override) ---- */
#coverKapsayici{ height:340px !important; overflow:hidden; position:relative; }
#coverImg{ position:absolute !important; left:0; }