/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1e3a5f;
  --accent:    #2563eb;
  --accent-h:  #1d4ed8;
  --red:       #dc2626;
  --text:      #1a1a1a;
  --text-2:    #444;
  --text-3:    #666;
  --border:    #e5e7eb;
  --bg:        #fff;
  --bg-2:      #f9fafb;
  --radius:    6px;
  --max-w:     1100px;
  --content-w: 760px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--content-w); margin: 0 auto; padding: 0 20px; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.site-logo span { color: #93c5fd; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .875rem;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 4px;
  transition: background .15s;
  text-decoration: none;
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.5rem;
  padding: 8px;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}


/* ── Page hero ────────────────────────────────────────────── */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 40px 0 32px;
  border-bottom: 4px solid var(--accent);
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; line-height: 1.2; }
.page-hero p  { color: rgba(255,255,255,.75); margin-top: 6px; font-size: .9375rem; }

/* ── Blog list ────────────────────────────────────────────── */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px 0 60px; }

.post-list { display: flex; flex-direction: column; gap: 0; }

.post-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.post-card:first-child { padding-top: 0; }

.post-card__cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
  text-decoration: none;
}
.post-card__cat:hover { background: var(--accent-h); text-decoration: none; }

.post-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--accent); text-decoration: none; }

.post-card__excerpt { color: var(--text-2); font-size: .9375rem; margin-bottom: 14px; line-height: 1.6; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .8125rem;
  color: var(--text-3);
}
.post-card__meta span { display: flex; align-items: center; gap: 4px; }
.post-card__read-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
}
.post-card__read-more:hover { text-decoration: underline; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar__widget { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar__widget-title {
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 10px 16px;
}
.sidebar__widget-body { padding: 16px; }

.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 4px;
  font-size: .875rem;
  color: var(--text-2);
}
.cat-list a:hover { color: var(--accent); text-decoration: none; }
.cat-list .count {
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: .7rem;
  padding: 1px 7px;
  border-radius: 10px;
  color: var(--text-3);
}

/* ── WhatsApp CTA (sidebar - masaüstü) ───────────────────── */
.wa-cta {
  background: #25D366;
  color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
}
.wa-cta__icon { margin-bottom: 10px; }
.wa-cta__text { font-size: .8125rem; opacity: .92; margin-bottom: 14px; line-height: 1.5; }
.btn-wa {
  display: inline-block;
  background: #fff;
  color: #128c4e;
  font-size: .875rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: .15s;
}
.btn-wa:hover { background: #e8fdf0; text-decoration: none; color: #128c4e; }

/* ── WhatsApp Mobile Banner ───────────────────────────────── */
.wa-mobile-banner {
  display: none;
}
@media (max-width: 768px) {
  .wa-mobile-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .9rem;
  }
  .wa-mobile-banner svg { flex-shrink: 0; }
  .wa-mobile-banner span { flex: 1; opacity: .93; }
  .wa-mobile-banner strong { white-space: nowrap; font-weight: 700; }
  .wa-mobile-banner:hover { background: #1ebe5d; text-decoration: none; color: #fff; }
}


/* ── Pagination ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .875rem;
  color: var(--text-2);
  text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Blog Detail ──────────────────────────────────────────── */
.post-detail { padding: 40px 0 60px; }
.post-detail__header { margin-bottom: 32px; }

.post-detail__cat {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
  text-decoration: none;
}

.post-detail__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.post-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .875rem;
  color: var(--text-3);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--accent);
}

.post-detail__cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/9;
  background: var(--bg-2);
}
.post-detail__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ── Article content ──────────────────────────────────────── */
.post-content { font-size: 1.0625rem; line-height: 1.8; color: var(--text); }
.post-content h2 {
  font-size: 1.625rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--primary);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  color: var(--text);
}
.post-content p  { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: .4rem; }
.post-content strong { font-weight: 700; }
.post-content a { color: var(--accent); text-decoration: underline; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: .75rem 1rem;
  margin: 1.5rem 0;
  background: var(--bg-2);
  font-style: italic;
  color: var(--text-2);
}
.post-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.post-content th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.post-content td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.post-content tr:nth-child(even) td { background: var(--bg-2); }

/* ── Tags ─────────────────────────────────────────────────── */
.post-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.post-tags__label { font-size: .8125rem; font-weight: 600; color: var(--text-3); }
.post-tag {
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: .8125rem;
  padding: 4px 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: .15s;
}
.post-tag:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Prev/Next Navigation ─────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav__item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: .15s;
  display: block;
}
.post-nav__item:hover { border-color: var(--accent); text-decoration: none; background: var(--bg-2); }
.post-nav__item--next { text-align: right; }
.post-nav__dir { font-size: .75rem; color: var(--text-3); margin-bottom: 4px; }
.post-nav__title { font-size: .9375rem; font-weight: 600; color: var(--accent); line-height: 1.35; }

/* ── Social Share ─────────────────────────────────────────── */
.post-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.post-share__label { font-size: .875rem; font-weight: 600; color: var(--text-3); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: .15s;
  color: #fff;
  min-height: 44px;
  touch-action: manipulation;
}
.share-btn--x       { background: #000; }
.share-btn--fb      { background: #1877f2; }
.share-btn--wa      { background: #25d366; }
.share-btn--copy    { background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); cursor: pointer; font-family: inherit; }
.share-btn:hover    { opacity: .88; text-decoration: none; color: #fff; }
.share-btn--copy:hover { border-color: var(--accent); color: var(--accent); }

/* ── TOC ──────────────────────────────────────────────────── */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 28px;
  display: none;
}
.toc__title { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; }
.toc__list  { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc__list a { font-size: .875rem; color: var(--text-2); }
.toc__list a:hover { color: var(--accent); }
.toc__sub { padding-left: 16px; }

/* ── Author box ───────────────────────────────────────────── */
.author-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 28px;
}
.author-box__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-box__name { font-weight: 700; margin-bottom: 4px; }
.author-box__bio  { font-size: .875rem; color: var(--text-2); }

/* ── Comments ─────────────────────────────────────────────── */
.comments { margin-top: 40px; }
.comments__title { font-size: 1.375rem; font-weight: 800; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }

.comment {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9375rem;
  flex-shrink: 0;
}
.comment__name    { font-weight: 700; font-size: .9375rem; }
.comment__date    { font-size: .8125rem; color: var(--text-3); margin-left: 8px; }
.comment__text    { font-size: .9375rem; margin-top: 6px; line-height: 1.6; white-space: pre-wrap; }

.comment-form { margin-top: 32px; }
.comment-form__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: .15s;
}
.form-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea.form-input { resize: vertical; }

.btn { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: .9375rem; font-weight: 600; padding: 10px 22px; border-radius: 4px; cursor: pointer; transition: .15s; border: none; text-decoration: none; touch-action: manipulation; min-height: 44px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #16304d; color: #fff; text-decoration: none; }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-h); color: #fff; text-decoration: none; }

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .9rem; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.8);
  margin-top: 60px;
}
.site-footer__seo {
  background: rgba(0,0,0,.2);
  padding: 20px 0;
  text-align: center;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer__seo a { color: #93c5fd; }
.site-footer__main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  font-size: .8125rem;
}
.site-footer__links { display: flex; gap: 16px; }
.site-footer__links a { color: rgba(255,255,255,.7); font-size: .8125rem; }
.site-footer__links a:hover { color: #fff; text-decoration: none; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  padding: 10px 0;
  font-size: .8125rem;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb__sep { margin: 0 6px; color: var(--border); }

/* ── Read progress ────────────────────────────────────────── */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 999;
  transition: width .1s;
}

/* ── Admin ────────────────────────────────────────────────── */
.admin-body { background: #f1f5f9; min-height: 100vh; }
.admin-wrap { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 50;
}
.admin-sidebar__logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 1.125rem;
  font-weight: 800;
}
.admin-sidebar__logo span { color: #93c5fd; }
.admin-sidebar__logo small { display: block; font-size: .7rem; font-weight: 400; opacity: .6; margin-top: 2px; }

.admin-nav { padding: 12px 0; }
.admin-nav__section {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  padding: 12px 20px 4px;
}
.admin-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,.8);
  font-size: .875rem;
  text-decoration: none;
  transition: .15s;
}
.admin-nav__link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.admin-nav__link.active { background: rgba(255,255,255,.15); color: #fff; }
.admin-nav__link .badge { margin-left: auto; background: #ef4444; color: #fff; font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }

.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar__title { font-weight: 700; font-size: .9375rem; }
.admin-topbar__user  { font-size: .875rem; color: #64748b; display: flex; align-items: center; gap: 6px; }

.admin-content { padding: 28px; flex: 1; }

.admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}
.admin-card__title {
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: var(--primary);
}

.admin-input {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: .9375rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: .15s;
}
.admin-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.admin-label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 5px; color: #374151; }
.admin-form-group { margin-bottom: 16px; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { background: #f8fafc; font-weight: 600; text-align: left; padding: 10px 14px; color: #374151; border-bottom: 2px solid #e2e8f0; }
.admin-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.admin-table tr:hover td { background: #fafbfc; }

.badge-active   { background: #dcfce7; color: #166534; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.badge-inactive { background: #fee2e2; color: #991b1b; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.badge-draft    { background: #fef9c3; color: #713f12; font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

.btn-sm { font-size: .8125rem; padding: 5px 12px; border-radius: 4px; }
.btn-danger  { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.btn-danger:hover  { background: #fca5a5; }
.btn-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.btn-success:hover { background: #86efac; }
.btn-edit    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.btn-edit:hover    { background: #bfdbfe; }

.admin-flash {
  padding: 12px 20px;
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-flash--success { background: #f0fdf4; border-bottom: 1px solid #86efac; color: #166534; }
.admin-flash--error   { background: #fef2f2; border-bottom: 1px solid #fca5a5; color: #991b1b; }

/* SEO Panel */
.seo-meter { height: 5px; border-radius: 3px; background: #e2e8f0; overflow: hidden; margin-top: 4px; }
.seo-meter__fill { height: 100%; border-radius: 3px; transition: width .3s, background .3s; }
.char-count { font-size: .7rem; color: #64748b; text-align: right; margin-top: 2px; }
.char-count.warn { color: #f59e0b; }
.char-count.over { color: #ef4444; }

.serp-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; font-family: Arial, sans-serif; }
.serp-url  { font-size: .75rem; color: #006621; margin-bottom: 2px; }
.serp-title { font-size: 1.125rem; color: #1a0dab; display: block; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-desc { font-size: .8125rem; color: #545454; line-height: 1.5; }

.seo-check { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: #374151; margin-bottom: 6px; }
.seo-check .icon-pass { color: #22c55e; }
.seo-check .icon-fail { color: #ef4444; }
.seo-check .icon-na   { color: #94a3b8; }

.seo-score-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px 16px; text-align: center; font-size: .9375rem; font-weight: 600; color: #374151; margin-top: 12px; }

.ck-editor__editable { min-height: 360px !important; }

/* Link picker modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 10px; width: min(600px, 95vw); max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1rem; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #64748b; }
.modal-body { flex: 1; overflow-y: auto; padding: 8px 12px; }
.modal-search { padding: 12px 20px; border-bottom: 1px solid #e2e8f0; }
.link-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.link-item:hover { background: #f1f5f9; }
.link-item__title { font-size: .875rem; font-weight: 600; color: var(--text); }
.link-item__url   { font-size: .75rem; color: #64748b; }

/* Dashboard stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; }
.stat-card__num  { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card__label { font-size: .8125rem; color: #64748b; margin-top: 4px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-layout { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--primary); flex-direction: column; gap: 0; padding: 8px 0; }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .admin-sidebar { transform: translateX(-100%); transition: .25s; position: fixed; z-index: 200; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 16px; }
  #sidebarToggle { display: flex !important; }
  .post-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .post-detail { padding: 24px 0 40px; }
  .post-detail__title { font-size: clamp(1.5rem, 6vw, 2.25rem); }
  .post-tags { gap: 8px; }
  .post-share { gap: 8px; }
  .toc { padding: 12px 16px; }
  .author-box { flex-direction: column; gap: 12px; }
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr 260px; gap: 28px; }
  .container { padding: 0 24px; }
  .container--narrow { padding: 0 24px; }
  .post-detail__title { font-size: clamp(1.625rem, 4vw, 2.25rem); }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
}

/* ── İletişim Formu ───────────────────────────────────────── */
.contact-wrap { margin-top: 40px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form__textarea { resize: vertical; min-height: 160px; }
.contact-form__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.contact-form__note { font-size: .8125rem; color: #64748b; }
.contact-form__btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; font-size: 1rem; }
.req { color: var(--red); }
.contact-success { display: flex; align-items: flex-start; gap: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 20px; color: #166534; font-size: .9375rem; line-height: 1.5; }
.contact-success svg { flex-shrink: 0; color: #16a34a; margin-top: 2px; }
@media (max-width: 600px) {
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__footer { flex-direction: column; align-items: flex-start; }
  .contact-form__btn { width: 100%; justify-content: center; }
}

/* ── Kategori Açıklaması ───────────────────────────────────── */
.cat-description {
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── Yazar sayfası post listesi (container--narrow içinde) ─── */
.container--narrow .post-list { padding-top: 0; }
.container--narrow .post-card { padding: 24px 0; }
.container--narrow .post-card:first-child { padding-top: 0; }
