/* ==========================================================================
   Kendine Dönüş Yolu — Tasarım Sistemi (Latte / Kahve Tonları)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Caveat:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* --- Latte / kahve paleti (görsel referanstan birebir) --- */
  --latte-50: #FBF8F2;
  --latte-100: #F7F3EC;
  --latte-200: #EFE8DC;
  --latte-300: #DED6CA;
  --caramel-400: #C2A87F;
  --caramel-500: #B39A7C;
  --caramel-600: #97815F;
  --espresso-700: #5A4430;
  --espresso-800: #3A2E22;
  --espresso-900: #1D1B18;
  --sunset-400: #C2A87F;
  --sunset-300: #E4D3B8;
  --cream-white: #FBF8F2;
  --olive-500: #777966;

  /* --- Anlamsal roller --- */
  --bg: var(--latte-100);
  --bg-alt: var(--latte-200);
  --surface: var(--cream-white);
  --text: var(--espresso-700);
  --text-muted: #6B5D4C;
  --text-soft: var(--olive-500);
  --heading: var(--espresso-900);
  --accent: var(--caramel-500);
  --accent-strong: var(--caramel-600);
  --accent-soft: var(--sunset-300);
  --border: var(--latte-300);
  --header-bg: var(--latte-50);
  --header-text: var(--espresso-900);
  --icon-btn-bg: rgba(29, 27, 24, .05);
  --icon-btn-hover-bg: rgba(29, 27, 24, .10);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(43, 32, 21, 0.06);
  --shadow-md: 0 10px 30px rgba(43, 32, 21, 0.10);
  --shadow-lg: 0 24px 60px rgba(43, 32, 21, 0.16);
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #221A12;
  --bg-alt: #2B2117;
  --surface: #2E2419;
  --text: #EFE3D3;
  --text-muted: #C6B39C;
  --text-soft: #9C8B78;
  --heading: #FBF3E7;
  --border: #453422;
  --header-bg: #1A1309;
  --header-text: #F6EEE1;
  --accent: var(--sunset-400);
  --accent-strong: #F0B57F;
  --icon-btn-bg: rgba(255, 255, 255, .08);
  --icon-btn-hover-bg: rgba(255, 255, 255, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }
.script { font-family: var(--font-script); color: var(--accent-strong); }
.eyebrow {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary { background: var(--espresso-900); color: var(--latte-50); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--cream-white); }
.btn-accent:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--heading); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }

/* --- Header --- */
.site-header {
  background: var(--header-bg); color: var(--header-text);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; color: var(--header-text); }
.brand-tagline { display: block; font-size: .68rem; letter-spacing: .08em; color: var(--text-soft); font-family: var(--font-body); font-weight: 500; text-transform: uppercase; margin-top: 2px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; color: var(--accent-strong); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-size: .78rem; font-weight: 500; color: var(--text-muted); transition: color .2s; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-strong); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--icon-btn-bg);
  border: none; color: var(--heading); cursor: pointer; transition: background .2s;
}
.icon-btn:hover { background: var(--icon-btn-hover-bg); }
.nav-toggle { display: inline-flex; }

/* --- Sections --- */
section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.link-more { font-weight: 600; color: var(--accent-strong); font-size: .9rem; white-space: nowrap; }

/* --- Hero (tam kenar/full-bleed görsel, görsel referanstan birebir) --- */
.hero { padding: 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 640px; }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 40px 56px max(24px, calc((100vw - var(--container)) / 2 + 24px));
}
.hero-kicker { margin-bottom: 14px; }
.hero-text { color: var(--text-muted); font-size: 1.05rem; max-width: 480px; margin-bottom: 26px; }
.hero-actions { display: flex; align-items: center; gap: 18px; }
.hero-visual-wrap { position: relative; overflow: hidden; }
.hero-visual-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-note {
  position: absolute; top: 26px; right: 26px; font-family: var(--font-script);
  font-size: 1.25rem; color: var(--cream-white); transform: rotate(-3deg); z-index: 3;
  text-shadow: 0 2px 10px rgba(0,0,0,.35); line-height: 1.25; text-align: right; max-width: 220px;
}
.scroll-hint-wrap {
  position: absolute; right: 26px; bottom: 26px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint {
  width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.5); color: #fff; display: flex; align-items: center;
  justify-content: center; cursor: pointer; animation: bob 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 16px; height: 16px; }
.scroll-label {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); white-space: nowrap;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
/* Kaydırma düğmesi fotoğrafın içine gömülü (final_hero.jpg) — görünmez ama tıklanabilir katman */
.scroll-hint-invisible {
  position: absolute; right: 26px; bottom: 26px; z-index: 3; width: 56px; height: 56px;
  border-radius: 50%; background: transparent; border: none; cursor: pointer;
}

/* --- Feature strip --- */
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-item .ic { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--accent-strong); flex-shrink: 0; }
.feature-item strong { display: block; font-size: .95rem; color: var(--heading); }
.feature-item span { font-size: .82rem; color: var(--text-soft); }

/* --- Featured post + sidebar layout --- */
.home-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.featured-post {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-md); color: #fff;
}
.featured-post .fp-bg { position: absolute; inset: 0; z-index: 0; }
.featured-post .fp-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,20,10,.86) 0%, rgba(30,20,10,.35) 55%, rgba(30,20,10,.05) 100%); z-index: 1; }
.featured-post .fp-content { position: relative; z-index: 2; padding: 40px; }
.featured-post .eyebrow { color: var(--sunset-300); }
.featured-post h2 { color: #fff; margin-bottom: 12px; }
.featured-post p { color: rgba(255,255,255,.85); max-width: 520px; }
.fp-meta { display: flex; gap: 16px; align-items: center; margin-top: 14px; font-size: .82rem; color: rgba(255,255,255,.75); }

.sidebar-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 26px;
  border: 1px solid var(--border); margin-bottom: 24px;
}
.newsletter-box { background: linear-gradient(150deg, var(--latte-200), var(--latte-100)); position: relative; overflow: hidden; }
.newsletter-box h3 { margin-bottom: 8px; }
.newsletter-box p { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input[type=email] {
  padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--cream-white); font-family: var(--font-body); font-size: .9rem;
}
.newsletter-form input[type=email]:focus { outline: 2px solid var(--accent); }

.popular-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.popular-list li { display: flex; gap: 12px; align-items: flex-start; }
.popular-list .num { font-family: var(--font-display); font-size: 1.4rem; color: var(--accent-soft); width: 30px; flex-shrink: 0; }
.popular-list .thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.popular-list a { font-size: .92rem; font-weight: 600; color: var(--heading); line-height: 1.3; }
.popular-list a:hover { color: var(--accent-strong); }
.popular-list .meta { font-size: .76rem; color: var(--text-soft); margin-top: 3px; }

/* --- Post cards --- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.post-card .cat-badge { font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-strong); text-transform: uppercase; margin-bottom: 6px; }
.post-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.post-card h3 a:hover { color: var(--accent-strong); }
.post-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 10px; }
.post-card .meta { font-size: .78rem; color: var(--text-soft); display: flex; gap: 10px; align-items: center; }

/* --- Quote / ilham --- */
.inspire-strip { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; }
.inspire-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 220px;
  display: flex; align-items: center; box-shadow: var(--shadow-md); color: #fff;
}
.inspire-card .ic-bg { position: absolute; inset: 0; }
.inspire-card .ic-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,20,10,.82), rgba(30,20,10,.25)); }
.inspire-card .ic-content { position: relative; z-index: 2; padding: 38px; max-width: 380px; }
.inspire-card .eyebrow { color: var(--sunset-300); }
.inspire-card h3 { color: #fff; font-size: 1.5rem; }
.quote-card {
  background: transparent; color: var(--heading);
  padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px;
}
.quote-card svg { color: var(--accent); width: 28px; height: 28px; order: 2; }
.quote-card p { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--heading); order: 1; }

/* --- Footer --- */
.site-footer { background: var(--latte-200); color: var(--text); padding-top: 60px; border-top: 1px solid var(--border); }
.site-footer p { color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-grid h4 { color: var(--accent-strong); font-family: var(--font-body); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: .9rem; color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-brand p { font-size: .88rem; max-width: 280px; color: var(--text-muted); }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.footer-insta-card {
  position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16/10; max-width: 220px;
}
.footer-insta-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-insta-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,14,8,.75), rgba(20,14,8,.05) 60%); }
.footer-insta-card span { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-weight: 600; font-size: .85rem; line-height: 1.3; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; color: var(--text-soft); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--text-soft); }
.footer-bottom a:hover { color: var(--accent-strong); }

/* --- Page header (iç sayfalar) --- */
.page-hero { background: var(--bg-alt); padding: 54px 0 40px; }
.page-hero .divider { width: 90px; height: 14px; margin-top: 18px; color: var(--accent); }

/* --- Forms --- */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--heading); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); font-family: var(--font-body); font-size: .95rem; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .9rem; }
.alert-success { background: #E4F0DF; color: #365C2C; }
.alert-error { background: #F6DEDA; color: #7A2C22; }

/* --- Icon sizing (icon_svg() çıktıları) --- */
svg.ic-svg { width: 16px; height: 16px; min-width: 16px; flex-shrink: 0; vertical-align: middle; }
.icon-btn svg.ic-svg { width: 18px; height: 18px; }
.feature-item .ic svg.ic-svg { width: 24px; height: 24px; }
.btn svg.ic-svg { width: 15px; height: 15px; }
.quote-card > svg { width: 30px; height: 30px; flex-shrink: 0; }

/* --- Fotoğrafları/illüstrasyonları kapsayıcıya tam oturt --- */
.hero-visual-wrap svg, .hero-visual-wrap img,
.featured-post .fp-bg svg, .featured-post .fp-bg img,
.inspire-card .ic-bg svg, .inspire-card .ic-bg img,
.post-card .thumb svg, .post-card .thumb img,
.popular-list .thumb svg, .popular-list .thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.featured-post .fp-bg, .inspire-card .ic-bg { position: absolute; inset: 0; z-index: 0; }
.popular-list .thumb { background: var(--bg-alt); }
.post-card .thumb img, .popular-list .thumb img { transition: transform .5s ease; }
.post-card .thumb:hover img { transform: scale(1.06); }

/* --- Utility --- */
.chip { display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.chip.active, .chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.search-box input { border: none; background: transparent; font-family: var(--font-body); font-size: .9rem; width: 220px; color: var(--text); }
.search-box input:focus { outline: none; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 40px 24px 32px; }
  .hero-visual-wrap { min-height: 360px; }
  .home-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .inspire-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 68px 0 0 0; background: var(--header-bg); flex-direction: column; padding: 30px 24px; gap: 22px; transform: translateX(100%); transition: transform .3s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .post-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-box input { width: 140px; }
  .brand { font-size: 1.02rem; }
  .brand-tagline { display: none; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; }
  .hero-visual-wrap { min-height: 280px; }
  .scroll-label { display: none; }
}
/* ======================================================================
   Kendine Dönüş Yolu — Blog / kategori / yazı detay sayfaları YENİ TASARIM
   Bu dosya sitenin PHP tarafında (blog.php, blog-detay.php, kategori.php,
   admin panelinin de paylaştığı /assets/css/theme.css) canlıda kullanılan
   theme.css dosyasının YERİNE yazılır. Amaç: yeni anasayfa (index.html)
   ile aynı görsel dil — kalın #1F1410 çerçeveler, sert gölgeler, hap
   biçimli butonlar, Fraunces başlıklar, mercan/zümrüt/hardal renk bloğu.

   GÜVENLİK NOTU: admin paneli de bu dosyayı yükler (login.php vb.), bu
   yüzden admin sayfalarında görünen .container / .btn / .brand gibi genel
   sınıflar burada ASLA çıplak seçici olarak stillendirilmez — yalnızca
   .site-header, .site-footer, .page-hero, .post-card gibi sadece blog
   sayfalarında var olan üst bağlamlarla birlikte (torun seçici) kullanılır.
   :root'a yeni CSS değişkenleri eklenir, var olanlar asla değiştirilmez.
   Sayfa genel (body) arka planı da yalnızca body:has(.site-header) ile
   kapsanır, böylece admin panelinin body'si hiç etkilenmez. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:ital,wght@0,400;0,600;0,700;0,800;1,600;1,700;1,800&display=swap');

:root{
  --kdyb-ink:#1F1410;
  --kdyb-cream:#FFF3DF;
  --kdyb-creamPaper:#FFFAF0;
  --kdyb-emerald:#12634B;
  --kdyb-emeraldDeep:#0A3D2E;
  --kdyb-mustard:#F6B72C;
  --kdyb-coral:#E8542B;
  --kdyb-berry:#B4305C;
  --kdyb-line:2px solid var(--kdyb-ink);
  --kdyb-radius:22px;
  --kdyb-shadow:6px 6px 0 var(--kdyb-ink);
}

/* ---------- Genel sayfa zemini (yalnızca site-header'lı sayfalarda) ---------- */
body:has(.site-header){
  background:var(--kdyb-cream);
  color:var(--kdyb-ink);
  font-family:'DM Sans','Helvetica Neue',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body:has(.site-header) h1,
body:has(.site-header) h2,
body:has(.site-header) h3,
body:has(.site-header) h4{
  font-family:'Fraunces',Georgia,serif;
  font-weight:800;
  letter-spacing:-0.02em;
}
body:has(.site-header) a{ color:inherit; text-decoration:none }
body:has(.site-header) .container{ max-width:1240px; margin:0 auto; padding:0 24px; box-sizing:border-box }

/* ---------- Üst menü ---------- */
.site-header{
  background:var(--kdyb-cream);
  border-bottom:3px solid var(--kdyb-ink);
  position:sticky;
  top:0;
  z-index:50;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  height:88px;
}
.site-header .brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Fraunces',Georgia,serif;
  font-weight:800;
  font-size:22px;
  color:var(--kdyb-ink);
  flex-shrink:0;
}
.site-header .brand svg{ stroke:var(--kdyb-coral) }
.site-header .brand-tagline,
.footer-brand .brand-tagline{
  display:block;
  font-size:10px;
  letter-spacing:.1em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--kdyb-coral);
  margin-top:2px;
}
.site-header .main-nav{
  display:flex;
  align-items:center;
  gap:26px;
  flex-wrap:wrap;
}
.site-header .main-nav a{
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--kdyb-ink);
  padding:6px 2px;
  border-bottom:3px solid transparent;
}
.site-header .main-nav a:hover{ color:var(--kdyb-coral) }
.site-header .main-nav a.active{ color:var(--kdyb-coral); border-bottom-color:var(--kdyb-coral) }
.site-header .header-actions{ display:flex; align-items:center; gap:10px; flex-shrink:0 }
.site-header .icon-btn{
  width:44px;
  height:44px;
  border-radius:50%;
  border:2px solid var(--kdyb-ink);
  background:transparent;
  color:var(--kdyb-ink);
  display:flex;
  align-items:center;
  justify-content:center;
}
.site-header .icon-btn:hover{ background:var(--kdyb-mustard) }
.site-header .nav-toggle{ display:none }

@media (max-width:900px){
  .site-header .main-nav{
    display:none;
    position:absolute;
    left:0; right:0; top:100%;
    background:var(--kdyb-cream);
    border-bottom:3px solid var(--kdyb-ink);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 16px;
  }
  .site-header .main-nav a{ width:100%; padding:12px 0; border-bottom:2px solid rgba(31,20,16,.12) }
  .site-header .main-nav.open{ display:flex }
  .site-header .nav-toggle{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; border-radius:50%; border:2px solid var(--kdyb-ink); background:transparent;
  }
}

/* ---------- Sayfa başlığı (page-hero) ---------- */
.page-hero{ padding:56px 0 40px }
.page-hero .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 18px;
  border-radius:999px;
  border:var(--kdyb-line);
  font-size:13px;
  font-weight:700;
  margin-bottom:16px;
  background:var(--kdyb-cream);
}
.page-hero .eyebrow.script{ font-family:'Fraunces',Georgia,serif; font-style:italic; font-weight:700; color:var(--kdyb-coral); border-color:var(--kdyb-coral) }
.page-hero h1{ font-size:44px; line-height:1.04 }
.page-hero .meta{ display:flex; align-items:center; gap:10px; margin-top:16px; font-size:14px; font-weight:600; color:var(--kdyb-ink); opacity:.8 }
.page-hero .cat-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:999px;
  border:var(--kdyb-line);
  background:var(--kdyb-mustard);
  color:var(--kdyb-ink);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:14px;
}

.section-tight{ padding:8px 0 56px }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:28px }
.section-head h2{ font-size:32px }

/* ---------- Filtre çipleri + arama ---------- */
.chips{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:24px }
.chip{
  display:inline-flex;
  align-items:center;
  height:42px;
  padding:0 18px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  border:var(--kdyb-line);
  background:transparent;
  color:var(--kdyb-ink);
}
.chip.active, .chip:hover{ background:var(--kdyb-ink); color:var(--kdyb-cream) }
.search-box{
  display:flex;
  align-items:center;
  gap:10px;
  height:52px;
  padding:0 18px;
  border-radius:999px;
  border:var(--kdyb-line);
  background:var(--kdyb-creamPaper);
  max-width:360px;
  margin-bottom:28px;
}
.search-box svg{ flex-shrink:0; stroke:var(--kdyb-ink) }
.search-box input{
  border:none;
  outline:none;
  background:transparent;
  font-family:'DM Sans',sans-serif;
  font-size:15px;
  width:100%;
  color:var(--kdyb-ink);
}

/* ---------- Yazı kartları ---------- */
.post-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}
.post-card{
  display:flex;
  flex-direction:column;
  border:var(--kdyb-line);
  border-radius:var(--kdyb-radius);
  box-shadow:var(--kdyb-shadow);
  overflow:hidden;
  background:var(--kdyb-cream);
  transition:transform .2s ease;
}
.post-card:hover{ transform:translateY(-4px) }
.post-card .thumb{
  display:block;
  height:190px;
  background:var(--kdyb-emerald);
  background-size:cover;
  background-position:center;
  position:relative;
  border-bottom:var(--kdyb-line);
}
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; display:block }
.post-card .cat-badge{
  display:inline-flex;
  align-self:flex-start;
  margin:16px 20px 0;
  padding:5px 12px;
  border-radius:999px;
  border:2px solid var(--kdyb-ink);
  background:var(--kdyb-mustard);
  color:var(--kdyb-ink);
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.post-card h3{ font-size:19px; line-height:1.25; margin:12px 20px 0 }
.post-card p{ font-size:14px; line-height:1.5; margin:10px 20px 0; opacity:.85; flex:1 }
.post-card .meta{ font-size:12px; font-weight:600; margin:14px 20px 20px; opacity:.7 }

/* ---------- Tek yazı sayfası ---------- */
.hero-visual{
  border:var(--kdyb-line);
  border-radius:var(--kdyb-radius);
  box-shadow:var(--kdyb-shadow);
  overflow:hidden;
  margin-bottom:36px;
}
.hero-visual img{ width:100%; display:block; max-height:460px; object-fit:cover }
.post-content{
  max-width:760px;
  font-size:18px;
  line-height:1.75;
}
.post-content h2{ font-size:28px; margin-top:38px; margin-bottom:14px }
.post-content h3{ font-size:22px; margin-top:30px; margin-bottom:10px }
.post-content p{ margin-bottom:18px }
.post-content ul, .post-content ol{ margin:0 0 18px; padding-left:22px }
.post-content li{ margin-bottom:8px }
.post-content blockquote{
  margin:28px 0;
  padding:20px 24px;
  border-left:4px solid var(--kdyb-coral);
  background:var(--kdyb-creamPaper);
  border-radius:0 16px 16px 0;
  font-style:italic;
  font-size:19px;
}
.post-content img{ border-radius:16px; border:var(--kdyb-line); margin:24px 0 }
.post-content a{ color:var(--kdyb-coral); text-decoration:underline }

/* ---------- Butonlar (yalnız blog'a özgü bileşik sınıflar) ---------- */
.btn-outline.btn-sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  padding:0 22px;
  border-radius:999px;
  border:var(--kdyb-line);
  background:transparent;
  color:var(--kdyb-ink);
  font-size:14px;
  font-weight:800;
}
.btn-outline.btn-sm:hover{ background:var(--kdyb-ink); color:var(--kdyb-cream) }

/* ---------- Alt bilgi (footer) ---------- */
.site-footer{
  background:var(--kdyb-ink);
  color:var(--kdyb-cream);
  padding:64px 0 28px;
  margin-top:40px;
}
.site-footer .footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1.2fr;
  gap:40px;
}
.site-footer .footer-brand .brand{
  display:flex; align-items:center; gap:10px;
  font-family:'Fraunces',Georgia,serif; font-weight:800; font-size:22px; color:var(--kdyb-cream);
}
.site-footer .footer-brand .brand svg{ stroke:var(--kdyb-mustard) }
.site-footer .footer-brand p{ margin-top:14px; font-size:14px; line-height:1.6; opacity:.85; max-width:300px }
.site-footer h4{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; font-weight:800; color:var(--kdyb-mustard); margin-bottom:12px }
.site-footer ul{ list-style:none; margin:0; padding:0 }
.site-footer .footer-grid a{ display:block; padding:5px 0; opacity:.9; font-size:14px }
.site-footer .footer-grid a:hover{ opacity:1; color:var(--kdyb-mustard) }
.site-footer .social-row{ display:flex; gap:10px; margin-top:16px }
.site-footer .social-row a{
  width:38px; height:38px; border-radius:50%; border:2px solid rgba(255,243,223,.4);
  display:flex; align-items:center; justify-content:center; padding:0;
}
.site-footer .social-row a:hover{ background:var(--kdyb-mustard); border-color:var(--kdyb-mustard) }
.site-footer .footer-insta-card{
  border:2px solid rgba(255,243,223,.3);
  border-radius:16px;
  padding:16px;
  margin-top:14px;
}
.site-footer .footer-bottom{
  border-top:2px solid rgba(255,243,223,.25);
  margin-top:36px;
  padding-top:22px;
  display:flex;
  justify-content:space-between;
  font-size:13px;
  opacity:.8;
  flex-wrap:wrap;
  gap:10px;
}
.site-footer .footer-bottom a{ opacity:1 }

/* ---------- Koyu tema (data-theme="dark") ---------- */
[data-theme="dark"] body:has(.site-header){ background:var(--kdyb-emeraldDeep); color:var(--kdyb-cream) }
[data-theme="dark"] .site-header{ background:var(--kdyb-emeraldDeep); border-bottom-color:var(--kdyb-cream) }
[data-theme="dark"] .site-header .brand,
[data-theme="dark"] .site-header .main-nav a,
[data-theme="dark"] .site-header .icon-btn{ color:var(--kdyb-cream); border-color:var(--kdyb-cream) }
[data-theme="dark"] .site-header .main-nav a:hover,
[data-theme="dark"] .site-header .main-nav a.active{ color:var(--kdyb-mustard); border-bottom-color:var(--kdyb-mustard) }
[data-theme="dark"] .post-card{ background:var(--kdyb-emeraldDeep); color:var(--kdyb-cream); box-shadow:6px 6px 0 var(--kdyb-cream); border-color:var(--kdyb-cream) }
[data-theme="dark"] .chip{ border-color:var(--kdyb-cream); color:var(--kdyb-cream) }
[data-theme="dark"] .chip.active, [data-theme="dark"] .chip:hover{ background:var(--kdyb-mustard); color:var(--kdyb-ink) }
[data-theme="dark"] .search-box{ background:rgba(255,243,223,.08); border-color:var(--kdyb-cream) }
[data-theme="dark"] .search-box input{ color:var(--kdyb-cream) }
[data-theme="dark"] .search-box svg{ stroke:var(--kdyb-cream) }
[data-theme="dark"] .post-content blockquote{ background:rgba(255,243,223,.06) }

/* ---------- Duyarlı (responsive) ---------- */
@media (max-width:1000px){
  .post-grid{ grid-template-columns:repeat(2,1fr) }
  .site-footer .footer-grid{ grid-template-columns:1fr 1fr }
}
@media (max-width:640px){
  .post-grid{ grid-template-columns:1fr }
  .site-footer .footer-grid{ grid-template-columns:1fr }
  .page-hero h1{ font-size:32px }
  .section-head h2{ font-size:26px }
}
/* ---------- Düzeltme: PHP şablonu bazı linklerde satır içi
   style="color:var(--heading)" kullanıyor; bu eski (krem) footer'da
   sorun değildi ama yeni koyu footer'da metni okunmaz yapıyor.
   Sadece bu bilinen noktaya !important ile hedefli düzeltme. ---------- */
.site-footer .footer-brand .brand,
.site-footer .footer-brand .brand *{
  color:var(--kdyb-cream) !important;
}
