/* POSTAR v2 — base (mobile-first) */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-elev: #ffffff;
  --fg: #0f172a;
  --fg-soft: #475569;
  --fg-mute: #64748b;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-fg: #ffffff;
  --danger: #dc2626;
  --success: #059669;
  --warn: #d97706;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 4px 14px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.12);
  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 100%;
  --gap: 16px;
}
.dark {
  --bg: #0b1220;
  --bg-soft: #111827;
  --bg-elev: #131c2f;
  --fg: #e5e7eb;
  --fg-soft: #cbd5e1;
  --fg-mute: #94a3b8;
  --border: #1f2937;
  --border-strong: #334155;
  --shadow: 0 4px 14px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
@media (hover: hover) { a:hover { text-decoration: underline; } }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px)  { .container { padding: 0 24px; } }
@media (min-width: 1280px) { .container { padding: 0 32px; } }

.muted { color: var(--fg-mute); }
.empty {
  text-align: center; padding: 48px 16px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 24px 0;
}
.empty h1, .empty h2 { margin: 0 0 8px; }

/* Form & buttons */
.btn, button.btn, .btn--ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  background: var(--accent); color: var(--accent-fg);
  border: 0; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: filter .15s;
}
.btn:hover { filter: brightness(.92); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border-strong); }

.form { display: grid; gap: 16px; max-width: 560px; margin: 24px 0; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input[type=text], .form input[type=email], .form input[type=password],
.form input[type=number], .form input[type=color], .form select, .form textarea {
  width: 100%; padding: 12px 14px; min-height: 44px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg-elev); color: var(--fg);
  font: inherit; font-size: 16px; /* iOS zoom önleme */
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.form textarea { min-height: 140px; resize: vertical; }

/* Flash mesajlar */
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.flash--ok      { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash--err, .flash--error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash--info    { background: #eff6ff; color: #1e3a8a; border-color: #bfdbfe; }
.flash--warn    { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.dark .flash--ok    { background:#022c22; color:#a7f3d0; }
.dark .flash--err   { background:#3f1212; color:#fecaca; }
.dark .flash--info  { background:#0c1f3d; color:#bfdbfe; }
.dark .flash--warn  { background:#3a2a08; color:#fde68a; }

/* Tema toggle */
.theme-toggle {
  background: transparent; border: 1px solid var(--border-strong);
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; color: var(--fg);
}

/* Hamburger */
.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center;
  width: 44px; height: 44px; padding: 0; gap: 5px;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); cursor: pointer;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--fg); margin: 0 auto; }

/* Pager */
.pager {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin: 32px 0;
}
.pager__btn {
  min-height: 44px; padding: 10px 18px;
  background: var(--bg-elev); color: var(--fg);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-weight: 600;
}
.pager__info { color: var(--fg-mute); font-size: .9rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox__img { max-width: 100%; max-height: 90vh; box-shadow: 0 0 40px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 0; border-radius: 50%;
  width: 48px; height: 48px; font-size: 1.6rem; cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Site footer */
.site-footer {
  margin-top: 64px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  font-size: .9rem;
}
.site-footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
