/* ============================================================
   Sade blog teması — renkleri :root içinden değiştirebilirsin
   ============================================================ */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6b6b70;
  --line: #e4e2dc;
  --accent: #d9480f;
  --accent-dark: #b33a0a;
  --radius: 10px;
  --max: 1100px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---------- Üst bant: logo + menü ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--bg); color: var(--accent); }

.search input {
  width: 150px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: var(--bg);
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: #fff; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; }

/* ---------- Reklam bandı ---------- */
.ad-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 12px 0 14px;
}
.ad-band .container { display: flex; flex-direction: column; align-items: center; }
.ad-label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.ad-slot { width: 100%; max-width: 970px; display: flex; justify-content: center; overflow: hidden; }
.ad-slot + .ad-slot { margin-top: 10px; }
.ad-slot a, .ad-slot picture { display: block; }
.ad-slot img { margin: 0 auto; border-radius: 4px; }

/* ---------- İçerik ---------- */
.site-main { padding: 36px 0 56px; }
.list-heading { font-size: 28px; margin: 0 0 24px; letter-spacing: -.01em; }

.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-list.compact { grid-template-columns: repeat(3, 1fr); }
.post-list:not(.compact) > .card:first-child { grid-column: 1 / -1; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-list:not(.compact) > .card:first-child { flex-direction: row; }
.post-list:not(.compact) > .card:first-child .card-cover { flex: 0 0 55%; }
.post-list:not(.compact) > .card:first-child .card-cover img { height: 100%; }
.post-list:not(.compact) > .card:first-child .card-title { font-size: 28px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 21px; line-height: 1.3; margin: 6px 0 8px; letter-spacing: -.01em; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--muted); margin: 0 0 14px; font-size: 16px; }
.more { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }
.compact .card-title { font-size: 17px; }
.compact .card-excerpt, .compact .more { display: none; }

.meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.cat {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
  text-decoration: none;
}

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.pagination a {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.page-num { color: var(--muted); font-size: 14px; }

/* ---------- Tekil yazı ---------- */
.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 16px 52px;
}
.entry > * { max-width: var(--read); margin-left: auto; margin-right: auto; }
.entry-title { font-size: 38px; line-height: 1.2; margin: 10px auto 24px; letter-spacing: -.02em; }
.entry-cover { width: 100%; max-width: 900px; border-radius: 8px; margin-bottom: 32px; }
.entry-content h2 { font-size: 26px; margin: 1.8em 0 .5em; line-height: 1.3; }
.entry-content h3 { font-size: 21px; margin: 1.5em 0 .4em; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1.1em; }
.entry-content img { border-radius: 6px; margin: 1.5em auto; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg);
  border-radius: 0 6px 6px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--bg); }
.entry-content pre { background: #1d1d1f; color: #f5f5f5; padding: 16px; border-radius: 6px; overflow-x: auto; font-size: 14px; }

.btn, .entry-content a.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}
.btn:hover { background: var(--accent-dark); color: #fff; }

.related { margin-top: 48px; }
.related h2 { font-size: 22px; margin: 0 0 18px; }

.notice {
  background: #fff4e5;
  border: 1px solid #f5c98b;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
}
.empty, .not-found { text-align: center; color: var(--muted); padding: 60px 0; }
.not-found h1 { color: var(--text); }

/* ---------- Alt bilgi ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.site-footer p { margin: 4px 0; }
.disclosure { max-width: 720px; margin: 0 auto 8px !important; font-size: 13px; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .nav-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    border-radius: 8px;
  }
  .nav-toggle-btn span, .nav-toggle-btn span::before, .nav-toggle-btn span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: .2s;
  }
  .nav-toggle-btn span::before { position: absolute; top: -7px; }
  .nav-toggle-btn span::after { position: absolute; top: 7px; }
  .nav-toggle:checked + .nav-toggle-btn span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-btn span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-btn span::after { top: 0; transform: rotate(-45deg); }
  .nav-toggle:focus-visible + .nav-toggle-btn { outline: 2px solid var(--accent); }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 8px;
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px; }
  .search input { width: 100%; }

  .post-list, .post-list.compact { grid-template-columns: 1fr; }
  .post-list:not(.compact) > .card:first-child { flex-direction: column; }
  .post-list:not(.compact) > .card:first-child .card-title { font-size: 22px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { min-height: 60px; }
  .brand-logo { height: 34px; }
  .site-main { padding: 20px 0 40px; }
  .entry { padding: 28px 16px 36px; border-radius: 0; border-left: 0; border-right: 0; margin: 0 -16px; }
  .entry-title { font-size: 28px; }
  .list-heading { font-size: 24px; }
  .ad-band { padding: 8px 0 10px; }
}

/* ---------- SEO yardımcıları ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 4px; }
.entry .meta { flex-wrap: wrap; }
.post-list.no-feature > .card:first-child { grid-column: auto; flex-direction: column; }
.post-list.no-feature > .card:first-child .card-cover { flex: none; }
.post-list.no-feature > .card:first-child .card-title { font-size: 21px; }

.faq { margin-top: 40px; }
.faq h2 { font-size: 26px; margin: 0 0 16px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; }
