/* =========================================================
   TEMA RENKLERİ — markanıza göre buradan değiştirin.
   THEME COLORS — change these to match your brand.
   ========================================================= */
:root {
  --accent: #ff3d57;          /* Vurgu: butonlar, rozetler, aktif öğeler */
  --accent-hover: #e62e48;
  --accent-contrast: #ffffff; /* Vurgu rengi üzerindeki yazı */

  --header-bg: #16181d;       /* Üst menü arka planı */
  --header-text: #e9ebef;
  --header-muted: #9aa1ad;

  --bg: #f3f4f6;              /* Sayfa arka planı */
  --surface: #ffffff;         /* Kart / kutu arka planı */
  --surface-2: #f8f9fb;
  --text: #1c1f26;
  --text-muted: #6b7280;
  --border: #e4e6eb;

  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  color-scheme: light;
}

/* Koyu tema (sistem tercihi) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --surface: #181b21;
    --surface-2: #1f232b;
    --text: #e8eaed;
    --text-muted: #9aa0a6;
    --border: #2a2f38;
    --header-bg: #0b0c0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
/* Koyu tema (kullanıcı seçimi) */
:root[data-theme="dark"] {
  --bg: #0f1115;
  --surface: #181b21;
  --surface-2: #1f232b;
  --text: #e8eaed;
  --text-muted: #9aa0a6;
  --border: #2a2f38;
  --header-bg: #0b0c0f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- ortak temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
[hidden] { display: none !important; }

.logo-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: var(--accent-contrast); font-weight: 800; font-size: 18px; line-height: 1;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-accent { background: var(--accent); color: var(--accent-contrast); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.btn small { font-weight: 400; opacity: .85; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; border: 1px solid; font-size: 14px; }
.alert-success { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.alert-error   { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-info    { background: color-mix(in srgb, var(--info) 10%, var(--surface)); border-color: color-mix(in srgb, var(--info) 35%, transparent); }

.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0 8px; }
.pagination a, .pagination span.pg-current, .pagination .pg-gap {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: 14px;
}
.pagination a { background: var(--surface); border: 1px solid var(--border); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .pg-current { background: var(--accent); color: var(--accent-contrast); }
.pagination .pg-gap { min-width: auto; color: var(--text-muted); }
.pagination .pg-info { margin-left: auto; color: var(--text-muted); font-size: 13px; }
