:root {
  --color-primary: #7a0f1e;
  --color-primary-dark: #4c010a;
  --color-accent: #b3541e;
  --color-bg: #fdfaf6;
  --color-surface: #ffffff;
  --color-text: #2b2320;
  --color-text-muted: #7a7168;
  --color-border: #ece3d8;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(43, 35, 32, 0.06);
  --shadow-hover: 0 10px 28px rgba(43, 35, 32, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --admin-sidebar-bg: #2a0407;
  --admin-sidebar-text: #e9d9d4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { font-size: 1.8rem; }
.brand-mark-img { height: 44px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--color-primary); }
.brand-tagline { font-size: 0.72rem; color: var(--color-text-muted); }

.main-nav { display: flex; align-items: center; justify-content: center; gap: 22px; font-weight: 500; font-size: 0.95rem; flex: 1; }
.main-nav a:hover { color: var(--color-primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: transparent;
  border: 1px solid transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.open .nav-dropdown-trigger {
  background: var(--color-bg);
  border-color: var(--color-border);
  color: var(--color-primary);
}
.nav-caret { font-size: 0.7em; transition: transform 0.18s ease; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  padding: 8px;
  min-width: 200px;
  z-index: 60;
}
/* Buton ile açılır menü arasındaki boşlukta fare "köprüsü" — bu görünmez
   alan olmadan fare boşluktan geçerken menü anında kapanıyordu. */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--color-bg); color: var(--color-primary); }
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.main-nav-mobile-only { display: none; }

.header-auth { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-auth-ghost { padding: 8px 16px; font-weight: 600; color: var(--color-text); border-radius: 999px; border: 1px solid var(--color-border); }
.header-auth-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.header-user-chip { position: relative; }
.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  font-family: var(--font-body);
}
.header-user-trigger:hover { border-color: var(--color-primary); }
.header-user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.header-user-avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.header-user-name { font-weight: 600; font-size: 0.88rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-user-caret { font-size: 0.7rem; color: var(--color-text-muted); transition: transform 0.15s ease; }
.header-user-chip.open .header-user-caret { transform: rotate(180deg); }
.header-user-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  z-index: 60;
}
.header-user-chip.open .header-user-menu { display: block; }
.header-user-menu a { display: block; padding: 11px 16px; font-size: 0.88rem; }
.header-user-menu a:hover { background: var(--color-bg); color: var(--color-primary); }
.btn-nav {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.btn-nav:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--color-text); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-search-row { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.header-search-row .container { padding-top: 10px; padding-bottom: 10px; }
.header-search { display: flex; align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 4px 6px 4px 18px; max-width: 420px; margin: 0 auto; box-shadow: var(--shadow); }
.header-search input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--font-body); font-size: 0.92rem; width: 100%; }
.header-search button { border: none; background: var(--color-primary); color: #fff; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; flex-shrink: 0; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .header-auth { display: none; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 20px 18px;
    box-shadow: var(--shadow-hover);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 8px 0; }
  .main-nav-mobile-only { display: block; border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 10px !important; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { width: 100%; padding: 8px 0; justify-content: space-between; }
  .nav-dropdown-menu { position: static; transform: none; display: none; box-shadow: none; border: none; background: var(--color-bg); margin: 4px 0 4px 12px; min-width: 0; width: calc(100% - 12px); }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* ---------- Alerts ---------- */
.alert { margin-top: 16px; padding: 12px 18px; border-radius: var(--radius); font-size: 0.92rem; }
.alert-success { background: #e8f6ee; color: #1e7a46; border: 1px solid #c6ead4; }
.alert-error { background: #fdecea; color: #b3261e; border: 1px solid #f6cdc9; }

/* ---------- Layout ---------- */
.page-content { padding: 36px 20px 64px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 34px; }
@media (max-width: 860px) { .content-grid { grid-template-columns: 1fr; } }

.archive-title { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 6px; }
.archive-desc { color: var(--color-text-muted); margin-bottom: 24px; }

/* ---------- Anasayfa hero (tam genişlik, görsel arka planlı) ---------- */
.hero-full {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-color: var(--color-primary-dark);
  background-image: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-accent) 130%);
  background-size: cover;
  background-position: center;
  margin-top: -1px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 10px 22px -16px rgba(20,8,6,0.55);
}
.hero-full-inner { position: relative; z-index: 2; padding: 70px 20px 40px; width: 100%; color: #fff; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.hero-categories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero-chip {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  backdrop-filter: blur(3px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-chip:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

.hero-spacer { height: 28px; }
.hero-dish-title {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
  transition: opacity 0.2s ease;
}
.hero-dish-title:hover { opacity: 0.85; }

@media (max-width: 640px) {
  .hero-full { min-height: 320px; }
  .hero-full-inner { padding: 50px 16px 28px; }
  .hero-spacer { height: 16px; }
}

/* ---------- Post card ---------- */
.post-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.post-card-thumb { position: relative; flex: 0 0 220px; border-radius: 12px; overflow: hidden; height: 150px; background: #f2e9dd; display: flex; align-items: center; justify-content: center; }
.like-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(20, 8, 6, 0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.post-card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.35s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.06); }
.post-card-thumb.placeholder { display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.post-card-body { flex: 1; min-width: 0; }
.category-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.post-card-title { font-family: var(--font-heading); font-size: 1.3rem; margin: 4px 0 8px; }
.post-card-title a:hover { color: var(--color-primary); }
.post-card-meta { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 8px; }
.post-card-excerpt { color: var(--color-text-muted); font-size: 0.93rem; margin-bottom: 8px; }
.read-more { color: var(--color-primary); font-weight: 600; font-size: 0.88rem; }

@media (max-width: 560px) {
  .post-card { flex-direction: column; align-items: stretch; }
  .post-card-thumb { flex: none; width: 100%; }
}

/* ---------- Sidebar ---------- */
.widget { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.85rem; color: var(--color-text-muted); cursor: pointer; text-decoration: none; transition: all 0.2s ease; }
.tab-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.tab-btn.active { color: #fff; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-color: transparent; }
.sidebar-featured { display: block; margin-bottom: 14px; border-radius: 12px; overflow: hidden; position: relative; }
.sidebar-featured-img { display: block; width: 100%; height: 130px; object-fit: cover; }
.sidebar-featured-title {
  display: block;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(20,8,6,0.05) 0%, rgba(20,8,6,0.75) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.3;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.ranked-list { list-style: none; margin: 0; padding: 0; }
.ranked-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.ranked-list li:last-child { border-bottom: none; }
.rank { flex: 0 0 22px; height: 22px; background: var(--color-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--color-primary); }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 0.9rem; }
.plain-list li:last-child { border-bottom: none; }
.plain-list li a { display: block; font-weight: 500; }
.plain-list li a:hover { color: var(--color-primary); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill { background: var(--color-bg); border: 1px solid var(--color-border); padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; }
.tag-pill:hover { border-color: var(--color-primary); color: var(--color-primary); }

.widget-title { margin: 0 0 16px; font-size: 1.02rem; font-family: var(--font-heading); padding-bottom: 12px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 8px; }
.widget-social { padding-bottom: 16px; }
.widget-social-title { margin: 0 0 12px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.sidebar-social { display: flex; flex-wrap: wrap; gap: 10px; }
.sidebar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.sidebar-social a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); transform: translateY(-2px); }
.muted { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.page-link { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--color-surface); box-shadow: var(--shadow); font-weight: 600; font-size: 0.88rem; }
.page-link.active { background: var(--color-primary); color: #fff; }
.page-ellipsis { padding: 0 4px; color: var(--color-text-muted); }
.admin-pagination { margin: 18px 0 0; }

/* ---------- Single post ---------- */
.single-title { font-family: var(--font-heading); font-size: 2.3rem; margin: 12px 0; }
.single-meta { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 20px; }
.single-featured { display: block; width: 100%; height: 380px; max-height: 460px; object-fit: cover; object-position: center; border-radius: var(--radius); margin: 0 auto 24px; }
@media (max-width: 640px) { .single-featured { height: 240px; } }
.single-content { font-size: 1.02rem; }
/* WordPress'ten aktarılan içerikteki görseller genelde sabit piksel
   genişliği/hizalama sınıflarıyla geliyor (alignnone, wp-caption vb.) —
   burada hepsini kendi çerçevesinde ortalıyoruz ve taşmasını engelliyoruz. */
.single-content img {
  display: block;
  max-width: 100% !important;
  width: auto;
  height: auto !important;
  border-radius: 10px;
  margin: 16px auto;
  object-fit: cover;
  object-position: center;
}
.single-content .wp-caption {
  max-width: 100% !important;
  width: auto !important;
  margin: 16px auto !important;
  text-align: center;
}
.single-content .wp-caption img { margin: 0 auto; }
.single-content .wp-caption-text,
.single-content .wp-caption-dd {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 6px 0 0;
  margin: 0;
}
.single-content .alignleft,
.single-content .alignright,
.single-content .aligncenter,
.single-content .alignnone {
  float: none !important;
  display: block;
  margin: 16px auto !important;
}
.single-content h2, .single-content h3 { font-family: var(--font-heading); }
.single-tags { margin: 28px 0; }

.like-bar { margin: 8px 0 4px; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.like-btn:hover:not(:disabled) { box-shadow: var(--shadow-hover); transform: translateY(-1px); border-color: var(--color-primary); color: var(--color-primary); }
.like-btn .like-icon { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s ease, stroke 0.2s ease; }
.like-btn.is-liked { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); border-color: transparent; color: #fff; }
.like-btn.is-liked .like-icon { fill: #fff; stroke: #fff; }
.like-btn:disabled { cursor: default; }
.like-btn .like-count { background: rgba(0,0,0,0.08); border-radius: 999px; padding: 2px 9px; font-size: 0.82rem; }
.like-btn.is-liked .like-count { background: rgba(255,255,255,0.22); }

.comments-section { margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 28px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.comment-author { font-weight: 700; }
.comment-date { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 6px; }
.comment-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.comment-form input, .comment-form textarea {
  padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 10px; font-family: var(--font-body); font-size: 0.92rem;
}
.comment-login-notice {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.92rem;
}
.comment-login-notice a { color: var(--color-primary); font-weight: 600; }
.comment-login-notice p { margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--color-surface); box-shadow: var(--shadow); font-weight: 600; font-size: 0.9rem; border: 1px solid var(--color-border); cursor: pointer; transition: box-shadow 0.2s ease, transform 0.15s ease; }
.btn:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff !important; border: none; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-block { width: 100%; text-align: center; }
.link-danger { background: none; border: none; color: #b3261e; cursor: pointer; font-size: 0.85rem; padding: 0; }
.link-primary { background: none; border: none; color: var(--color-primary); cursor: pointer; font-size: 0.85rem; padding: 0; font-weight: 600; margin-right: 12px; transition: color 0.15s ease; }
.link-primary:hover { color: var(--color-primary-dark); text-decoration: underline; }

/* ---------- Forms (auth + post editor) ---------- */
.auth-wrap { max-width: 420px; margin: 20px auto; background: var(--color-surface); padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.auth-wrap h1 { font-family: var(--font-heading); margin-top: 0; }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 0.85rem; font-weight: 600; margin-top: 8px; }
.auth-form input { padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 10px; font-family: var(--font-body); transition: border-color 0.18s ease, box-shadow 0.18s ease; }
.auth-form input:focus, .post-form input:focus, .post-form select:focus, .post-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 15, 30, 0.12);
}
.auth-alt { text-align: center; margin-top: 16px; font-size: 0.9rem; }
.auth-alt a { color: var(--color-primary); font-weight: 600; }

.post-form { display: flex; flex-direction: column; gap: 6px; background: var(--color-surface); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 760px; }
.post-form label { font-weight: 600; font-size: 0.88rem; margin-top: 14px; }
.post-form input, .post-form select, .post-form textarea {
  padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.current-thumb { max-width: 220px; margin-top: 10px; border-radius: 10px; }
.settings-form { max-width: 960px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.92rem; margin-top: 12px; cursor: pointer; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-primary); cursor: pointer; }
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 6px;
  max-height: 220px;
  overflow-y: auto;
}

/* ---------- Dashboard / Admin ---------- */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.table-wrap { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.data-table thead th {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--color-border);
}
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: var(--color-bg); }
.data-table tbody tr:last-child td { border-bottom: none; }
.row-actions a { margin-right: 12px; color: var(--color-primary); font-weight: 600; }
.status-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.status-published { background: #e8f6ee; color: #1e7a46; }
.status-draft { background: #f1eee9; color: #7a7168; }
.status-pending { background: #fff4e0; color: #b8770a; }
.inline-form select {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.inline-form select:hover, .inline-form select:focus { border-color: var(--color-primary); outline: none; }
.row-actions a { transition: color 0.15s ease; }
.link-danger { transition: color 0.15s ease; }
.link-danger:hover { color: #7a1610; text-decoration: underline; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 720px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.stat-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}
.stat-icon { font-size: 1.5rem; margin-bottom: 6px; }
.stat-number { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); }
.stat-label { color: var(--color-text-muted); font-size: 0.85rem; }

.admin-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.admin-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.admin-link-card span { font-size: 1.4rem; }
.admin-link-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--color-primary); }

.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-family: var(--font-heading); font-size: 5rem; color: var(--color-primary); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #221a17; color: #d9cfc6; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 36px 20px; flex-wrap: wrap; gap: 20px; }
.footer-brand { color: #fff; font-size: 1.2rem; }
.footer-text { font-size: 0.85rem; max-width: 340px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #d9cfc6;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icons a:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.footer-nav a { color: #d9cfc6; font-size: 0.85rem; }
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 20px 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.footer-legal-nav { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; opacity: 0.85; }
.footer-legal-nav a { cursor: pointer; }
.footer-copy { font-size: 0.78rem; color: #a89b90; }

/* ---------- Yasal sayfalar modalı ---------- */
.legal-modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.legal-modal[hidden] { display: none !important; }
.legal-modal-backdrop { position: absolute; inset: 0; background: rgba(20,10,8,0.55); backdrop-filter: blur(2px); }
.legal-modal-box {
  position: relative;
  background: var(--color-surface);
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 44px 36px 36px;
  box-shadow: var(--shadow-hover);
}
.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.legal-modal-close:hover { background: var(--color-primary); color: #fff; border-color: transparent; transform: rotate(90deg); }
.legal-modal-body .single-title { margin-top: 0; font-size: 1.6rem; }
@media (max-width: 560px) {
  .legal-modal-box { padding: 40px 22px 26px; }
}

/* ---------- Çerez onayı (cookie consent) ---------- */
.cookie-consent {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
  max-width: 560px;
  margin: 0 auto;
}
.cookie-consent-inner { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.cookie-consent p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.cookie-consent a { color: var(--color-primary); font-weight: 600; }
.cookie-consent-actions { display: flex; gap: 10px; }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: var(--color-bg); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--admin-sidebar-bg);
  color: var(--admin-sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand img { height: 36px; width: 36px; object-fit: cover; border-radius: 8px; }
.admin-brand span { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: #fff; }

.admin-nav { display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; flex: 1; overflow-y: auto; }
.admin-nav a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--admin-sidebar-text);
  opacity: 0.85;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.15s ease, padding-left 0.15s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); opacity: 1; padding-left: 18px; }
.admin-nav a.active {
  background: linear-gradient(90deg, rgba(179,84,30,0.35), rgba(255,255,255,0.06));
  opacity: 1;
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--color-accent);
}
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.badge {
  display: inline-block;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}
.admin-nav a .badge { background: rgba(255,255,255,0.22); }
.admin-nav a.active .badge { background: var(--color-primary); }
.tab-btn .badge { background: var(--color-border); color: var(--color-text-muted); margin-left: 4px; }
.tab-btn.active .badge { background: rgba(255,255,255,0.28); color: #fff; }

.admin-sidebar-footer { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.admin-sidebar-footer a { color: var(--admin-sidebar-text); font-size: 0.88rem; }
.admin-sidebar-footer a:hover { color: #fff; }

.admin-main { flex: 1; min-width: 0; }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 32px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(43, 35, 32, 0.04);
  font-size: 0.95rem;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-topbar-greeting { flex: 1; }
.topbar-hi { color: var(--color-text-muted); font-size: 0.9rem; }

.admin-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 1.1rem;
  cursor: pointer;
}

.admin-profile { position: relative; }
.admin-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font-family: var(--font-body);
}
.admin-profile-trigger:hover { border-color: var(--color-primary); }
.admin-profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.admin-profile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.admin-profile-info { display: none; flex-direction: column; text-align: left; line-height: 1.2; }
.admin-profile-info strong { font-size: 0.86rem; }
.admin-profile-info small { color: var(--color-text-muted); font-size: 0.72rem; }
@media (min-width: 560px) { .admin-profile-info { display: flex; } }
.admin-profile-caret { font-size: 0.7rem; color: var(--color-text-muted); transition: transform 0.15s ease; }
.admin-profile.open .admin-profile-caret { transform: rotate(180deg); }

.admin-profile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  z-index: 60;
}
.admin-profile.open .admin-profile-menu { display: block; }
.admin-profile-menu a { display: block; padding: 11px 16px; font-size: 0.88rem; color: var(--color-text); }
.admin-profile-menu a:hover { background: var(--color-bg); color: var(--color-primary); }

.admin-viewas-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #fff;
  padding: 12px 32px;
  font-size: 0.9rem;
}
.admin-viewas-banner .btn-sm {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
}
.admin-viewas-banner .btn-sm:hover { background: rgba(255,255,255,0.28); }

.admin-content { padding: 28px 32px 60px; }
.admin-content h1 { font-family: var(--font-heading); font-size: 1.7rem; margin-top: 0; }
.admin-content .alert { margin: 0 32px 0; }
.admin-content > .alert:first-child { margin-top: 0; }

.settings-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .admin-nav-toggle { display: block; }
  .admin-shell { position: relative; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 100;
    box-shadow: var(--shadow-hover);
  }
  .admin-shell.sidebar-open .admin-sidebar { transform: translateX(0); }
  .admin-main { width: 100%; }
}

@media (max-width: 760px) {
  .admin-topbar { padding: 14px 18px; }
  .admin-content { padding: 18px; }
  .admin-profile-trigger { padding: 4px 10px 4px 4px; }
}
