:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #f0ece6;
  --text: #1f2421;
  --muted: #646b66;
  --border: #e3ddd4;
  --accent: #1d6b66;
  --accent-soft: #e2f0ee;
  --warn: #9a5b12;
  --warn-soft: #fbefdc;
  --danger: #a33a32;
  --danger-soft: #f8e3e0;
  --ok: #2f6f3a;
  --ok-soft: #e3f1e5;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 30, 20, .05), 0 4px 16px rgba(30, 30, 20, .04);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141716; --surface: #1c201e; --surface-2: #232826; --text: #e9ece9; --muted: #9aa39d;
    --border: #2e3431; --accent: #5fb8ae; --accent-soft: #1f3432; --warn: #e2a95c; --warn-soft: #3a2e1d;
    --danger: #e88a80; --danger-soft: #3b2422; --ok: #7cc68a; --ok-soft: #1f3324;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #141716; --surface: #1c201e; --surface-2: #232826; --text: #e9ece9; --muted: #9aa39d;
  --border: #2e3431; --accent: #5fb8ae; --accent-soft: #1f3432; --warn: #e2a95c; --warn-soft: #3a2e1d;
  --danger: #e88a80; --danger-soft: #3b2422; --ok: #7cc68a; --ok-soft: #1f3324; --shadow: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--text); }
.logo b { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.logo b span { color: var(--accent); }
.logo small { color: var(--muted); font-size: .82rem; }
.search { margin-left: auto; flex: 1 1 220px; max-width: 320px; }
.search input { width: 100%; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--border); background: var(--surface); padding: 6px 13px; border-radius: 999px; cursor: pointer; font-size: .88rem; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { opacity: .65; margin-left: 4px; font-size: .8em; }

/* ---------- feed */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 14px 0 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-decoration: none; color: inherit; transition: border-color .15s; }
.card:hover { border-color: var(--accent); }
.card h2 { font-family: var(--serif); font-size: 1.18rem; line-height: 1.3; margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: .93rem; }
.card.lead { grid-column: 1 / -1; padding: 26px; }
.card.lead h2 { font-size: 1.7rem; }
.card.lead p { font-size: 1.02rem; max-width: 760px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .74rem; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 500; }
.badge.cat { background: var(--accent-soft); color: var(--accent); }
.badge.ev-high { background: var(--ok-soft); color: var(--ok); }
.badge.ev-mid { background: var(--warn-soft); color: var(--warn); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--muted); margin-top: auto; }
.verified { color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 60px 16px; grid-column: 1 / -1; }
.more { display: block; margin: 0 auto 40px; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }

/* ---------- article */
.article { max-width: 720px; margin: 0 auto; padding: 28px 0 48px; }
.back { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; margin-bottom: 18px; }
.article h1 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.2; margin: 12px 0; letter-spacing: -.01em; }
.article .lede { font-size: 1.15rem; color: var(--text); font-weight: 500; border-left: 3px solid var(--accent); padding-left: 14px; margin: 18px 0 24px; }
.article .body p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.7; margin: 0 0 1.1em; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 24px 0; font-size: .92rem; }
.box h3 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.box ul { margin: 0; padding-left: 18px; }
.review { display: flex; gap: 10px; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: var(--radius); padding: 12px 16px; font-size: .92rem; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin-top: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; padding: 22px 0 32px; }

/* ---------- admin */
.admin-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 16px; padding: 16px 0 40px; align-items: start; }
@media (max-width: 860px) { .admin-grid { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 14px; }
.tab { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-size: .9rem; }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.filters input, .filters select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; flex: 1 1 160px; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-height: calc(100vh - 210px); overflow-y: auto; }
.row { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row[aria-current="true"] { background: var(--accent-soft); }
.row .t { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.row .s { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.editor { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.editor h2 { font-size: 1.05rem; margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea { padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); width: 100%; }
.field textarea { resize: vertical; line-height: 1.5; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.orig { background: var(--surface-2); border-radius: 10px; padding: 14px; margin: 12px 0 18px; font-size: .9rem; }
.orig details summary { cursor: pointer; color: var(--accent); margin-top: 6px; }
.orig .abs { white-space: pre-wrap; margin-top: 8px; max-height: 320px; overflow-y: auto; }
.note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.btn { border: 1px solid var(--border); background: var(--surface); padding: 9px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-size: .9rem; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.login { max-width: 380px; margin: 80px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.hint { color: var(--muted); font-size: .85rem; }

/* ---------- statik site eklemeleri */
.topnav { margin-left: auto; display: flex; gap: 14px; font-size: .9rem; }
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--accent); }
.chip { text-decoration: none; color: inherit; }
.chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge.cat { text-decoration: none; }
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .badges a { position: relative; z-index: 1; }
.search-row { padding: 6px 0 0; }
.search-row input { width: 100%; max-width: 420px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.page-title { font-family: var(--serif); font-size: 1.6rem; margin: 18px 0 0; }
.back { display: inline-block; text-decoration: none; }
.site-footer p { margin: 0 0 8px; }
