/* =========================================================
   SMM Panel - Genel stil
   ========================================================= */

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #eff6ff;
  --border: #e5e7eb;
  --row-hover: #f9fafb;
  --danger: #dc2626;
  --green: #16a34a;
  --amber: #d97706;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; flex-wrap: wrap; gap: 10px; padding-top: 8px; padding-bottom: 8px;
}
.brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; opacity: .9; }
/* Logo yüklendiyse: mavi başlık üstünde okunur olsun diye beyaz zemine alınır */
.brand-logo-box {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 6px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.14);
}
.brand-logo-box img { display: block; height: 40px; width: auto; max-width: 210px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: #fff; font-size: .95rem; }
.nav a:hover { text-decoration: none; opacity: .85; }

/* Sağ üstte her zaman görünen bakiye rozeti (menü kapalıyken de durur) */
.nav-balance {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 6px 13px;
  color: #fff; font-size: .9rem; text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background .18s ease;
}
.nav-balance:hover { background: rgba(255,255,255,.26); text-decoration: none; }
.nav-balance strong { font-weight: 700; }
.nav-balance-label { opacity: .82; font-weight: 500; }

/* ---------- Mobil menü düğmesi ----------
   Geniş ekranda hiç görünmez; menü zaten açıktır.
   Ana sayfa (landing.css) da bu dosyayı yüklediği için ortak tanımdır. */
.menu-btn {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 11px; margin: -11px -11px -11px 0;
  border-radius: 10px;
}
.menu-btn span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: #fff; margin: 4px 0;
  transition: transform .22s ease, opacity .22s ease;
}
.menu-btn:hover, .menu-btn:focus-visible { background: rgba(255,255,255,.16); outline: none; }
/* Açıkken üstteki çizgi aşağı, alttaki yukarı iner -> "X" olur */
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* [data-menu] şartı: hamburger düğmesi bağlanmış menüler buraya girer.
   Bağlanmamış bir .nav (ör. eski bir sayfa) asla gizlenmez. */
@media (max-width: 820px) {
  /* Sıra: marka(1) — bakiye(2) — hamburger(3) — menü(4, açıldığında altta) */
  .brand { order: 1; }
  .nav-balance { order: 2; margin-left: auto; }
  .menu-btn { order: 3; display: block; }
  .nav[data-menu] {
    order: 4;
    display: none;
    width: 100%; flex-direction: column; align-items: stretch;
    gap: 0; padding: 4px 0 10px;
    border-top: 1px solid rgba(255,255,255,.22);
  }
  .nav[data-menu].is-open { display: flex; }
  .nav[data-menu] a {
    padding: 12px 2px; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
  }
  .nav[data-menu] a:last-child { border-bottom: 0; }
  .nav[data-menu] .btn { margin-top: 10px; text-align: center; align-self: flex-start; }
}

/* Çok dar ekranda bakiye rozetinde yalnızca miktar kalsın */
@media (max-width: 430px) {
  .nav-balance { padding: 6px 10px; gap: 5px; font-size: .84rem; }
  .nav-balance-label, .nav-balance-dot { display: none; }
}

/* ---------- Main ---------- */
.main { flex: 1; padding-top: 28px; padding-bottom: 48px; }

.page-head { text-align: center; margin-bottom: 26px; }
.page-head h1 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.page-head p { color: var(--muted); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin-bottom: 22px;
  overflow: hidden;
}
.card-body { padding: 22px; }
.card-title {
  padding: 15px 20px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 1.05rem;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}

/* ---------- Tablo ---------- */
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--accent); color: #fff; text-align: left;
  padding: 13px 18px; font-size: .93rem; font-weight: 600;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s ease; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--row-hover); }
tbody td { padding: 15px 18px; vertical-align: middle; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

.product-name { font-weight: 600; }
.price { font-weight: 700; font-size: 1.05rem; color: var(--accent); text-align: right; white-space: nowrap; }

/* ---------- Fiyat listesi ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 22px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
  transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.filter-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-chip span {
  background: rgba(0,0,0,.08); border-radius: 999px; font-size: .75rem;
  padding: 1px 8px; font-weight: 700;
}
.filter-chip.is-on span { background: rgba(255,255,255,.25); }

.price-table td.num, .price-table th.num { text-align: right; }
.price-table .svc-name { font-weight: 600; margin-bottom: 3px; }
.price-table .svc-desc { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.price-table td.price { font-size: 1.12rem; }
/* Buton metni iki satıra bölünmesin (Maks. sütunu eklenince sıkışmıştı) */
.price-table .btn { white-space: nowrap; }

/* Servis adı altındaki ek bilgiler: ortalama süre, drip-feed */
.price-table .svc-meta {
  margin-top: 5px; display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: .78rem; color: var(--muted);
}
.price-table .svc-meta-item { white-space: nowrap; }
.price-table .svc-meta-item strong { color: var(--text); font-weight: 600; }
/* Yalnızca mobilde görünen adet özeti (Min/Maks sütunları gizlenince) */
.price-table .svc-qty {
  display: none; margin-top: 4px;
  font-size: .84rem; color: var(--muted);
}
.price-table .svc-qty strong { color: var(--text); font-weight: 600; }

/* ---------- Drip-feed sipariş formu ---------- */
.drip-box {
  border: 1px dashed var(--border, #d8d8e0);
  border-radius: 10px; padding: 12px 14px;
  background: rgba(0,0,0,.015);
}
.check-label {
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; font-size: .95rem;
}
.check-label input { margin-top: 3px; }
.drip-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.drip-grid label { display: block; font-size: .85rem; margin-bottom: 4px; }
.drip-summary {
  margin-top: 10px; font-size: .85rem; color: var(--muted);
  line-height: 1.5;
}
.drip-summary.is-warn { color: #b26a00; }
@media (max-width: 520px) {
  .drip-grid { grid-template-columns: 1fr; }
}

/* Sipariş satırındaki ek bilgiler (başlangıç değeri, drip-feed) */
.order-meta {
  margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 12px;
  font-size: .76rem; color: var(--muted); font-weight: 400;
}
.order-meta strong { color: var(--text); font-weight: 600; }
@media (max-width: 720px) {
  /* Dar ekranda Min./Maks. Adet sütunları gizlenir — yerine servis satırında
     "Adet: 100 – 500.000" özeti gösterilir */
  .price-table th:nth-child(3), .price-table td:nth-child(3),
  .price-table th:nth-child(4), .price-table td:nth-child(4) { display: none; }
  .price-table .svc-qty { display: block; }
}

/* ---------- Rozetler ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.badge-organik    { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-kaliteli   { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-kalitesiz  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-neutral    { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }

.badge-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.badge-warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-muted   { background: #f3f4f6; color: #4b5563; border: 1px solid #e5e7eb; }

.count {
  background: var(--accent); color: #fff; border-radius: 999px;
  font-size: .78rem; padding: 2px 10px; font-weight: 600;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block; border: none; border-radius: 8px; cursor: pointer;
  font-size: .9rem; font-weight: 600; padding: 10px 16px;
  transition: background .15s ease, transform .05s ease;
  text-align: center; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger  { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-outline:hover { background: #f3f4f6; color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: .84rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
/* Adet alanındaki canlı uyarılar */
.hint.is-warn { color: var(--danger); font-weight: 600; }
.hint.is-ok   { color: var(--green); font-weight: 600; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .95rem; background: #fff; font-family: inherit;
}
/* Dosya seçimi tam genişlikte olmasın; içeriği taşırmasın */
input[type=file] {
  width: 100%; padding: 8px 10px; border: 1px dashed var(--border);
  border-radius: 8px; font-size: .9rem; background: #f9fafb;
}
input[type=file]::file-selector-button {
  margin-right: 10px; padding: 7px 12px; border: 1px solid var(--border);
  border-radius: 7px; background: #fff; font-size: .85rem; cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
input[readonly] { background: #f9fafb; }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > * { flex: 1; min-width: 180px; }

/* Seçenek satırları (radio / checkbox) — .field label'ın blok-ağırlığını kırar */
label.radio, label.checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: .92rem; font-weight: 400; cursor: pointer;
  margin-bottom: 7px; line-height: 1.4;
}
label.radio input, label.checkbox input { width: auto; margin: 0; flex: 0 0 auto; }
label.radio:last-child, label.checkbox:last-child { margin-bottom: 0; }

/* ---------- Uyarılar ---------- */
.alert {
  padding: 13px 16px; border-radius: 10px; margin-bottom: 16px;
  font-size: .93rem; border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }

.errors {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: 10px; padding: 14px 18px; margin-bottom: 18px;
}
.errors ul { margin-left: 18px; }

/* ---------- İstatistik kutuları ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 6px 18px rgba(0,0,0,.05);
}
.stat .label { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.stat .value { font-size: 1.5rem; font-weight: 700; color: var(--accent); }

/* ---------- Sepet / miktar ---------- */
.qty-input { width: 92px; padding: 8px 10px; text-align: center; margin-right: 8px; }

/* ---------- Panel (müşteri/admin) layout ---------- */
.panel-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.side-nav { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.side-nav a {
  display: block; padding: 13px 18px; color: var(--text); font-size: .93rem;
  border-bottom: 1px solid var(--border);
}
.side-nav a:last-child { border-bottom: none; }
.side-nav a:hover { background: var(--row-hover); text-decoration: none; }
.side-nav a.active { background: var(--accent); color: #fff; font-weight: 600; }

.balance-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; border-radius: 14px; padding: 20px 22px; margin-bottom: 22px;
}
.balance-box .label { font-size: .87rem; opacity: .85; }
.balance-box .value { font-size: 1.9rem; font-weight: 700; margin-top: 4px; }

/* ---------- Tab (segmented) ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 16px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); color: var(--muted); font-size: .9rem; font-weight: 600;
}
.tabs a.active, .tabs a:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; }

/* ---------- Yardımcılar ---------- */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.stack > * + * { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #fff; border-top: 1px solid var(--border);
  padding: 20px 0; text-align: center; font-size: .86rem; color: var(--muted);
}
/* İç sayfa footer'ı beyaz zeminde — logoya ayrıca kutu gerekmez */
.site-footer .footer-site-logo { margin-bottom: 14px; }
.site-footer .footer-site-logo img {
  display: inline-block; height: 44px; width: auto; max-width: 220px; object-fit: contain;
}

/* ---------- Duyarlı ---------- */
@media (max-width: 800px) {
  .panel-grid { grid-template-columns: 1fr; }
  thead th, tbody td { padding: 11px 10px; }
  .page-head h1 { font-size: 1.5rem; }
  .form-row > * { min-width: 100%; }
  .qty-input { width: 76px; margin-right: 6px; }
}

/* =========================================================
   BLOG — genel
   ========================================================= */
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.req { color: var(--danger); font-weight: 700; }

.field-error {
  display: block; color: var(--danger); font-size: .82rem;
  font-weight: 600; margin-top: 4px;
}
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--danger); background: #fef2f2;
}
.err-list { margin: 6px 0 0; padding-left: 20px; }
.err-list li { margin-bottom: 3px; }

/* ---------- Blog liste ızgarası ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.blog-grid--tight { gap: 18px; }

.post-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.post-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, .10);
  transform: translateY(-3px);
  border-color: #cfd8e6;
}

.post-card-cover {
  display: block; aspect-ratio: 1200 / 630; overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #4c1d95);
}
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-cover.is-empty {
  display: flex; align-items: center; justify-content: center;
}
.post-card-cover-mark { font-size: 2.4rem; opacity: .75; }

.post-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.post-card-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--muted); margin-bottom: 10px;
}
.cat-chip {
  display: inline-block; background: var(--accent-light); color: var(--accent-dark);
  border: 1px solid #bfdbfe; border-radius: 999px;
  padding: 2px 10px; font-size: .76rem; font-weight: 600;
}

.post-card-title {
  font-size: 1.14rem; line-height: 1.35; font-weight: 700; margin: 0 0 8px;
}
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: var(--accent); text-decoration: none; }

.post-card-excerpt {
  color: var(--muted); font-size: .93rem; line-height: 1.6;
  margin: 0 0 14px; flex: 1;
}

.read-more {
  color: var(--accent); font-weight: 600; font-size: .92rem;
  align-self: flex-start;
}
.read-more:hover { text-decoration: none; opacity: .8; }

/* ---------- Sayfalama ---------- */
.pager {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 6px; margin-top: 30px;
}
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--card); color: var(--text);
  font-size: .9rem; font-weight: 600;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pager .is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager-dots { border: none !important; background: none !important; color: var(--muted); }

/* ---------- Kırıntı yolu ---------- */
.crumbs {
  font-size: .85rem; color: var(--muted); margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- Tek yazı ---------- */
.post-full {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 34px clamp(20px, 4vw, 46px);
}
.post-full-head { margin-bottom: 22px; }
.post-full-title {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem); line-height: 1.25;
  font-weight: 800; letter-spacing: -.015em; margin: 10px 0 0;
}
.post-full-cover { margin: 0 0 26px; }
.post-full-cover img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
}

.post-full-foot {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.post-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin: 0; padding: 0; font-size: .88rem; color: var(--text);
}
.post-facts li span {
  display: block; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 2px;
}

/* ---------- Yazı içeriği (yöneticinin yazdığı HTML) ---------- */
.post-body { font-size: 1.03rem; line-height: 1.78; color: var(--text); overflow-wrap: break-word; }
.post-body > *:first-child { margin-top: 0; }
.post-body > *:last-child { margin-bottom: 0; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 1.7em 0 .55em; line-height: 1.3; }
.post-body h3 { font-size: 1.22rem; font-weight: 700; margin: 1.5em 0 .45em; line-height: 1.35; }
.post-body h4 { font-size: 1.06rem; font-weight: 700; margin: 1.3em 0 .4em; }
.post-body p  { margin: 0 0 1.05em; }
.post-body ul, .post-body ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.post-body li { margin-bottom: .42em; }
.post-body li > ul, .post-body li > ol { margin-top: .42em; margin-bottom: 0; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.post-body strong, .post-body b { font-weight: 700; }
.post-body blockquote {
  margin: 1.3em 0; padding: .95em 1.2em;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 10px 10px 0;
  color: #374151; font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code {
  background: #f1f5f9; border: 1px solid var(--border);
  padding: .1em .38em; border-radius: 5px;
  font-size: .9em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.post-body pre {
  background: #0f172a; color: #e2e8f0;
  padding: 15px 17px; border-radius: 11px;
  overflow-x: auto; margin: 1.3em 0;
  font-size: .89rem; line-height: 1.62;
}
.post-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.post-body img {
  max-width: 100%; height: auto; display: block;
  border-radius: 12px; margin: 1.4em auto;
}
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.1em 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.3em 0; font-size: .95rem; }
.post-body th, .post-body td {
  border: 1px solid var(--border); padding: 9px 11px; text-align: left;
}
.post-body th { background: var(--row-hover); font-weight: 700; }
.post-body figure { margin: 1.4em 0; }
.post-body figcaption {
  text-align: center; font-size: .85rem; color: var(--muted); margin-top: 8px;
}

/* ---------- İlgili yazılar ---------- */
.related { margin-top: 34px; }
.related h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 16px; }

/* ---------- Önceki / sonraki ---------- */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px;
}
.post-nav-item {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
}
.post-nav-item:hover { border-color: var(--accent); text-decoration: none; }
.post-nav-item.is-next { text-align: right; }
.post-nav-label { font-size: .8rem; color: var(--muted); }
.post-nav-title { font-weight: 700; color: var(--text); font-size: .98rem; line-height: 1.4; }
.post-nav-item:hover .post-nav-title { color: var(--accent); }

/* ---------- 404 ---------- */
.post-notfound { padding: 26px 10px; }
.post-notfound-mark { font-size: 2.6rem; margin-bottom: 10px; }
.post-notfound h1 { font-size: 1.5rem; margin-bottom: 8px; }

/* =========================================================
   BLOG — yönetim paneli
   ========================================================= */
.blog-admin-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.blog-admin-head .count { font-size: .88rem; color: var(--muted); }
.blog-admin-head .count .badge { vertical-align: middle; }

.blog-edit-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}

.slug-preview {
  display: inline-block; background: var(--row-hover);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 3px 8px; font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .79rem; color: var(--muted); word-break: break-all;
}
.slug-preview b { color: var(--green); font-weight: 600; }

/* ---------- Karakter sayaçları ---------- */
.counter {
  font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 1px 5px; border-radius: 5px;
}
.counter.is-ok   { color: var(--green); background: #ecfdf5; }
.counter.is-warn { color: var(--amber); background: #fffbeb; }
.counter.is-over { color: var(--danger); background: #fef2f2; }

/* ---------- Google önizlemesi ---------- */
.g-snippet {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 20px;
  max-width: 620px;
}
.g-url {
  font-size: .82rem; color: #202124; margin-bottom: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.g-title {
  font-size: 1.2rem; line-height: 1.3; color: #1a0dab;
  margin-bottom: 5px; font-weight: 400;
}
.g-title.is-long { color: #6b21a8; }
.g-desc { font-size: .89rem; line-height: 1.55; color: #4d5156; }
.g-desc.is-long { color: var(--amber); }

/* ---------- Metin düzenleyici ---------- */
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 5px;
  padding: 8px; margin-bottom: 8px;
  background: var(--row-hover); border: 1px solid var(--border);
  border-radius: 10px 10px 0 0; border-bottom: none;
}
.ed-btn {
  border: 1px solid var(--border); background: #fff;
  border-radius: 7px; padding: 6px 10px;
  font-size: .82rem; font-weight: 600; color: var(--text);
  cursor: pointer; font-family: inherit; line-height: 1.3;
}
.ed-btn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent-dark); }
.ed-btn:disabled { opacity: .5; cursor: wait; }
.ed-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ed-sep { width: 1px; background: var(--border); margin: 3px 3px; }

.editor-area {
  border-radius: 0 0 10px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92rem; line-height: 1.65; resize: vertical;
  min-height: 340px;
}
.editor-preview {
  border: 1px solid var(--border); border-radius: 0 0 10px 10px;
  padding: 22px; background: #fff; min-height: 340px;
}

.cover-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px;
  background: var(--row-hover); border: 1px solid var(--border);
  border-radius: 10px;
}
.cover-thumb {
  width: 150px; height: 80px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border); display: block;
}
.cover-remove { display: flex; align-items: center; gap: 7px; font-size: .88rem; cursor: pointer; }
.cover-remove input { width: auto; }

.save-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 6px;
}

/* ---------- Duyarlı (blog) ---------- */
@media (max-width: 720px) {
  .blog-grid, .blog-grid--tight { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-item.is-next { text-align: left; }
  .post-full { padding: 24px 18px; }
  .g-snippet { max-width: 100%; padding: 14px; }
  .g-title { font-size: 1.05rem; }
  .cover-thumb { width: 100%; height: 130px; }
  .pager a, .pager span { min-width: 34px; height: 34px; font-size: .85rem; }
}
@media (max-width: 520px) {
  .post-card-title { font-size: 1.05rem; }
  .blog-edit-top { flex-direction: column; align-items: flex-start; }
  .ed-btn { padding: 5px 8px; font-size: .78rem; }
}
