/*
Theme Name: Cloudbeds Blog Teması
Theme URI: https://cloudbeds.protel.com.tr
Description: Cloudbeds Tema Bootstrap
Author: Alperen Alpa
Author URI: https://protel.com.tr
Version: 1.0
*/

:root {
  /* Renkler */
  --blue-100: #eaf3ff;
  --blue-200: #cfe4ff;
  --blue-300: #99caff;   /* site vurgu rengi (theme-color) */
  --blue-500: #2f7bff;
  --blue-600: #1a5fe0;
  --ink-900:  #0b1a33;   /* koyu lacivert - başlıklar */
  --ink-700:  #253247;
  --ink-500:  #55617a;   /* gövde metni */
  --ink-400:  #8a93a6;
  --line:     #e6ebf2;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fd;
  --footer:   #0b1a33;

  /* Tipografi */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* Yapı */
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(11, 26, 51, 0.08);
  --shadow-sm: 0 4px 18px rgba(11, 26, 51, 0.06);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------ Butonlar ------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink-900);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(11,26,51,.25); }

.btn-outline {
  background: #fff;
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--blue-300); }

.btn .arrow { font-size: 1.05em; line-height: 1; }

/* ------------------ Navbar ------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  color: var(--ink-900);
  font-size: 1.15rem;
  letter-spacing: -.02em;
}
.brand .dot {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-500));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .95rem; font-weight: 800;
}
.brand small { color: var(--ink-400); font-weight: 600; }

/* Seçiciler .nav altına alındı: WordPress sayfalama/yorum navigasyonu da .nav-links sınıfı üretiyor. */
.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav .nav-links a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-700);
  transition: color .2s;
}
.nav .nav-links a:hover,
.nav .nav-links a.active,
.nav .nav-links .current-menu-item > a,
.nav .nav-links .current_page_item > a,
.nav .nav-links .current-menu-parent > a { color: var(--blue-600); }

.nav-cta { display: flex; align-items: center; gap: .8rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--ink-900);
}

/* ------------------ Etiket / rozet ------------------ */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: .35rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ------------------ Blog Hero ------------------ */
.blog-hero {
  background:
    radial-gradient(60% 120% at 85% -10%, var(--blue-100) 0%, transparent 60%),
    radial-gradient(50% 120% at 0% 0%, #f0f6ff 0%, transparent 55%);
  padding: 72px 0 40px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 780px;
  margin-left: auto; margin-right: auto;
}
.blog-hero p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--ink-500);
  font-size: 1.1rem;
}

/* ------------------ Kategori filtre ------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  padding: 32px 0 8px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .18s ease;
}
.filter-chip:hover { border-color: var(--blue-300); }
.filter-chip.active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

/* ------------------ Öne çıkan yazı ------------------ */
.featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  /* Kapak, içerik ne kadar uzarsa uzasın kolonun tamamını doldurur. */
  align-items: stretch;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.featured .cover {
  aspect-ratio: 3 / 3;
  background: linear-gradient(135deg, var(--blue-200), var(--blue-500));
  position: relative;
  min-height: 320px;
  /* Stretch edilen yükseklik, aspect-ratio üzerinden minimum genişliğe
     dönüşüp kapağın içerik kolonuna taşmasına yol açmasın. */
  min-width: 0;
}
.featured .cover span.badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,.9);
  color: var(--ink-900);
  font-weight: 700; font-size: .78rem;
  padding: .35rem .8rem; border-radius: 999px;
}
.featured .content {
  padding: 40px 44px 40px 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-top: .8rem;
}
.featured p { color: var(--ink-500); font-size: 1.02rem; }

.post-meta {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: var(--ink-400);
  font-size: .85rem;
  margin-top: 1.2rem;
}
.post-meta .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  color: #fff; font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.post-meta b { color: var(--ink-700); font-weight: 600; }

/* ------------------ Yazı grid ------------------ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 72px 0 28px;
  gap: 20px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--ink-500); margin: .3rem 0 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card .thumb {
  aspect-ratio: 16 / 10;
  position: relative;
}
.card .thumb .tag { position: absolute; top: 14px; left: 14px; }
.c1 { background: linear-gradient(135deg, #cfe4ff, #2f7bff); }
.c2 { background: linear-gradient(135deg, #d7f5e8, #17b58a); }
.c3 { background: linear-gradient(135deg, #ffe6d0, #ff8a4c); }
.c4 { background: linear-gradient(135deg, #e7ddff, #7c5cff); }
.c5 { background: linear-gradient(135deg, #ffe0ec, #ff5c93); }
.c6 { background: linear-gradient(135deg, #d9f0ff, #1aa5e0); }

.card .body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  font-size: 1.18rem;
  margin: .8rem 0 .5rem;
}
.card h3 a:hover { color: var(--blue-600); }
.card p {
  color: var(--ink-500);
  font-size: .95rem;
  margin: 0 0 1.2rem;
  flex: 1;
}

/* ------------------ Bülten CTA ------------------ */
.newsletter {
  margin: 90px 0 0;
  background:
    radial-gradient(80% 140% at 100% 0%, var(--blue-200) 0%, transparent 60%),
    var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: 26px;
  padding: 60px;
  color: var(--ink-700);
  text-align: center;
}
.newsletter h2 { color: var(--ink-900); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.newsletter p { color: var(--ink-500); max-width: 520px; margin: .6rem auto 1.8rem; }
.newsletter form {
  display: flex;
  gap: .7rem;
  max-width: 470px;
  margin: 0 auto;
}
.newsletter input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  border-radius: 999px;
  padding: .85rem 1.3rem;
  font-size: .95rem;
  outline: none;
}
.newsletter input:focus { border-color: var(--blue-300); }
.newsletter input::placeholder { color: var(--ink-400); }
.newsletter .btn-accent {
  background: rgb(38, 28, 10);
  color: #fff;
}
.newsletter .btn-accent:hover { background: #000; }
.newsletter small { display:block; color: var(--ink-400); margin-top:1rem; font-size:.8rem; }

/* ------------------ Footer (kurumsal) ------------------ */
.footer {
  background: rgb(242, 242, 233);
  color: var(--ink-900);
  margin-top: 90px;
}

/* Üst şerit: logo + sosyal + CTA */
.footer-top { border-bottom: 1px solid rgba(38, 28, 10, .12); }
.footer-top .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo { display: inline-flex; }
.footer-logo img { width: 250px; max-width: 100%; height: auto; }

.socials { display: flex; align-items: center; gap: .9rem; }
.socials a { display: inline-flex; transition: opacity .2s; }
.socials a:hover { opacity: .6; }
.socials img { width: 24px; height: 24px; display: block; }

.footer-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-contact {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-900);
  transition: color .2s;
}
.footer-contact:hover { color: var(--blue-600); }

/* Sütunlar */
.footer-widgets { border-bottom: 1px solid rgba(38, 28, 10, .12); }
.footer-widgets .container { padding-top: 40px; padding-bottom: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.footer h4 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink-900);
  text-transform: none;
  letter-spacing: -.01em;
  margin: 0 0 .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer ul a {
  color: rgba(38, 28, 10, .6);
  font-size: .92rem;
  transition: color .2s;
}
.footer ul a:hover { color: var(--ink-900); }
.footer .lead-links li { margin-bottom: .8rem; }
.footer .lead-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  color: var(--ink-900);
}

/* Telif */
.footer-bottom .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
  color: rgba(38, 28, 10, .6);
  font-size: .85rem;
}

/* =========================================================
   YAZI DETAY SAYFASI
   ========================================================= */
.article-hero { padding: 21px 0 0; }
.breadcrumb {
  font-size: .85rem;
  color: var(--ink-400);
  margin-bottom: 1.4rem;
}
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb span { margin: 0 .4rem; }

.article-head { max-width: none; margin: 0; text-align: left; }
.article-head h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 1rem 0;
}
.article-head .lead {
  font-size: 1.2rem;
  color: var(--ink-500);
}
.article-byline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin: 1.8rem 0 0;
  color: var(--ink-400);
  font-size: .9rem;
}
.article-byline .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.article-byline b { color: var(--ink-900); display:block; }

.article-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-200), var(--blue-600));
  margin: 40px 0 12px;
  max-width: 960px;
  margin-left: auto; margin-right: auto;
}

.article-body {
  max-width: 720px;
  margin: 40px auto 0;
  font-size: 1.1rem;
  color: var(--ink-700);
}
.article-body h2 { font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
.article-body h3 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.article-body p { margin: 0 0 1.3rem; }
.article-body ul { margin: 0 0 1.3rem; padding-left: 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.article-body a { color: var(--blue-600); text-decoration: underline; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1.4rem 1.8rem;
  border-left: 4px solid var(--blue-300);
  background: var(--bg-soft);
  border-radius: 0 12px 12px 0;
  font-size: 1.25rem;
  color: var(--ink-900);
  font-weight: 500;
}
.article-body .callout {
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  color: var(--ink-700);
  font-size: 1rem;
}
.article-body .callout strong { color: var(--blue-600); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 2.4rem 0;
}
.stat-box {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  text-align: center;
}
.stat-box .num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: -.02em;
}
.stat-box .lbl { font-size: .85rem; color: var(--ink-500); }

.share {
  max-width: 720px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.share span { font-weight: 600; color: var(--ink-700); }
.share .chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.share .chips a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Dokunma hedefi için 44px; beş ikon + boşluk = 262px, en dar ekranda bile
     tek satıra sığıyor. */
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-700);
  transition: all .18s;
}
.share .chips a svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.share .chips a:hover { border-color: var(--blue-300); color: var(--blue-600); background: var(--blue-100); }

/* Bağlantı kopyalandı geri bildirimi — JS yalnızca sınıfı ve aria-label'ı
   değiştirir, ikonlar CSS ile yer değiştirir. */
.share .chips a .icon-check { display: none; }
.share .chips a.is-copied { color: var(--blue-600); border-color: var(--blue-300); background: var(--blue-100); }
.share .chips a.is-copied .icon-link { display: none; }
.share .chips a.is-copied .icon-check { display: block; }

/* ------------------ İlgili yazılar ------------------ */
.related { margin-top: 80px; }

/* ------------------ Responsive ------------------ */
@media (max-width: 900px) {
  .nav .nav-links { display: none; }
  .nav-toggle { display: block; }
  /* Kolonlar alt alta gelince kolon boşluğu dikey boşluğa dönüşür;
     içeriğin kendi dolgusu zaten ayırıyor. */
  .featured { grid-template-columns: 1fr; gap: 0; }
  .featured .content { padding: 28px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { padding: 44px 24px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ==================================================================
   WordPress entegrasyonu
   ================================================================== */

/* ------------------ Erişilebilirlik ------------------ */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}
.screen-reader-text:focus {
  clip-path: none;
  background: #fff;
  color: var(--ink-900);
  height: auto; width: auto;
  padding: .8rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  top: 12px; left: 12px;
  z-index: 100;
}

/* ------------------ Admin bar ------------------ */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
}

/* ------------------ Logo / marka ------------------ */
.brand img,
.brand .custom-logo { max-height: 38px; width: auto; }
.brand .custom-logo-link { display: inline-flex; align-items: center; }

/* ==================================================================
   Kurumsal header (cloudbeds.protel.com.tr uyarlaması)
   ================================================================== */

.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img,
.brand-logo .custom-logo { width: 190px; height: auto; max-width: 100%; }

/* Demo CTA — kurumsal kahve */
.btn-demo {
  background: rgb(38, 28, 10);
  color: #fff;
  border-color: rgb(38, 28, 10);
  border-radius: 10px;
  padding: .6rem 1.1rem;
  font-size: .9rem;
}
.btn-demo:hover { background: #000; box-shadow: 0 8px 20px rgba(38, 28, 10, .25); }
.arrow-icon { width: 13px; height: 13px; display: inline-block; }

/* Menü öğeleri navbar yüksekliğini doldurur — böylece bağlantı ile mega panel
   arasında farenin "düştüğü" bir boşluk kalmaz. */
.nav-inner > nav { align-self: stretch; display: flex; }
.nav .nav-links { height: 100%; }
.nav .nav-links > li { display: flex; align-items: center; }

/* Platform açılır menü tetikleyicisi */
.mega-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-700);
  transition: color .2s;
}
.mega-toggle:hover,
.mega-toggle[aria-expanded="true"] { color: var(--blue-600); }
.mega-toggle svg { transition: transform .2s ease; }
.mega-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Mega panel — header'ın tam genişliğinde açılır */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 60;
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  padding: 28px 0;
}
.mega-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink-900);
  margin-bottom: .8rem;
}
.dot-c {
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
}
.dot-blue   { background: rgb(153, 202, 255); }
.dot-yellow { background: rgb(255, 248, 120); }
.dot-orange { background: rgb(255, 150, 112); }
.dot-purple { background: rgb(214, 196, 244); }
.dot-green  { background: rgb(144, 207, 145); }

.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin-bottom: .45rem; }
.mega-col a {
  font-size: .92rem;
  color: var(--ink-500);
  transition: color .2s;
}
.mega-col a:hover { color: var(--blue-600); }

.mega-bottom {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.mega-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: .9rem;
  font-weight: 600;
}
.mega-bottom .label { color: var(--ink-900); font-weight: 700; }
.mega-bottom a { color: var(--ink-500); transition: color .2s; }
.mega-bottom a:hover { color: var(--blue-600); }

/* Demo butonu masaüstünde nav-cta'da, mobilde menü panelinde durur */
.nav .nav-links > li.nav-cta-mobile { display: none; }

@media (max-width: 900px) {
  .brand-logo img,
  .brand-logo .custom-logo { width: 150px; }
  .nav-cta .btn-demo { display: none; }
  .nav .nav-links > li.nav-cta-mobile { display: block; margin-top: .8rem; }
  .nav-cta-mobile .btn-demo { width: 100%; justify-content: center; }

  /* Masaüstündeki tam yükseklik kuralları açılır panelde geçersiz olmalı */
  .nav-inner > nav { align-self: center; display: block; }
  .nav .nav-links { height: auto; }
  .nav .nav-links > li { display: block; }

  .mega {
    position: static;
    box-shadow: none;
    border: 0;
    background: transparent;
  }
  .mega .container { padding: 0; }
  .mega-grid { grid-template-columns: 1fr; gap: 16px; padding: 12px 0 4px; }
  .mega-head { margin-bottom: .5rem; }
  .mega-bottom { background: transparent; border-top: 1px dashed var(--line); }
  .mega-bottom .container {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: 10px 0 4px;
  }
  .nav .nav-links.is-open .mega-toggle { padding: .75rem 0; width: 100%; justify-content: space-between; }
  .nav .nav-links.is-open .has-mega { border-bottom: 1px solid var(--line); }
}

/* ------------------ Mobil menü ------------------ */
@media (max-width: 900px) {
  .nav .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    padding: 12px 24px 20px;
    /* Platform akordeonu açılınca panel ekranı taşarsa kendi içinde kaysın */
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav .nav-links.is-open > li { width: 100%; }

  /* Yalnızca üst seviye bağlantılar; mega menü linkleri ve Demo butonu hariç */
  .nav .nav-links.is-open > li > a:not(.btn) {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-links.is-open > li:last-child > a { border-bottom: 0; }
  .nav-inner { position: relative; }
}

/* ------------------ Öne çıkan görseller ------------------ */
.card .thumb,
.featured .cover {
  display: block;
  overflow: hidden;
}
.card .thumb img,
.featured .cover img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.card .thumb { background-color: var(--blue-100); }
.featured .cover img { transition: transform .4s ease; }
.featured:hover .cover img { transform: scale(1.03); }

/* Kart etiketi kategori bağlantısı olduğunda da aynı görünsün */
a.tag:hover { background: var(--blue-200); }
.featured .content > .tag { text-decoration: none; }
.featured-cta { margin-top: 1.6rem; }

/* Çipler artık kategori bağlantısı (<a>) */
a.filter-chip {
  display: inline-block;
  text-decoration: none;
  line-height: 1.4;
}

/* ------------------ Sayfalama ------------------ */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 56px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-700);
  background: #fff;
  transition: all .18s ease;
}
.pagination .page-numbers:hover { border-color: var(--blue-300); }
.pagination .page-numbers.current {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}

/* ------------------ Bülten form alanı ------------------ */
.newsletter .newsletter-form { max-width: 470px; margin: 0 auto; }
.newsletter .newsletter-form .wpcf7-form-control-wrap { flex: 1; }
.newsletter .newsletter-form input[type="email"],
.newsletter .newsletter-form input[type="text"] {
  flex: 1;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  border-radius: 999px;
  padding: .85rem 1.3rem;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
}
.newsletter .newsletter-form input[type="email"]:focus,
.newsletter .newsletter-form input[type="text"]:focus { border-color: var(--blue-300); }
.newsletter .newsletter-form button,
.newsletter .newsletter-form input[type="submit"] {
  font-family: inherit;
  white-space: nowrap;
}
/* Bal küpü alanı: ekranda görünmez ama ekran okuyucudan da gizli değil ki
   botlar display:none kontrolüyle atlamasın. */
.cb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.newsletter-form button[disabled] { opacity: .6; cursor: progress; }

.newsletter-status {
  color: var(--blue-600);
  font-size: .9rem;
  margin: 1rem 0 0;
  min-height: 1.2em;
}

/* ------------------ Hero arama ------------------ */
.hero-search { margin-top: 2rem; }
.hero-search .search-form {
  display: flex;
  gap: .6rem;
  max-width: 520px;
  margin: 0 auto;
}
.hero-search .search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: .9rem 1.4rem;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.hero-search .search-form input[type="search"]:focus { border-color: var(--blue-300); }
.hero-search .search-form input[type="search"]::placeholder { color: var(--ink-400); }
.hero-search .btn { flex-shrink: 0; }

@media (max-width: 600px) {
  .hero-search .search-form { flex-direction: column; }
  .hero-search .btn { justify-content: center; }
}

/* ==================================================================
   Anasayfa varyantları (home-v1 / home-v2 / home-v3)
   Yalnızca ilgili şablon home.php'ye kopyalandığında devreye girer.
   ================================================================== */

/* ---- v1: kompakt hero ---- */
.hero-v1 { padding: 30px 0 22px; }
.hero-v1 .eyebrow { margin-bottom: .5rem; }
.hero-v1 h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); max-width: 860px; }
.hero-v1 p { font-size: 1rem; max-width: 600px; margin-top: .5rem; }
.hero-v1 .hero-search { margin-top: 1.3rem; }

.home-v1 .filters { padding: 20px 0 4px; }
.home-v1 .featured { margin-top: 24px; }
.home-v1 .featured .cover { min-height: 260px; }
.home-v1 .featured .content { padding: 30px 36px 30px 4px; }
.home-v1 .section-head { margin: 52px 0 24px; }

/* ---- v2: bölünmüş hero ---- */
.hero-split { padding: 40px 0 30px; text-align: left; }
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-split h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  max-width: none;
  margin: 0 0 .6rem;
}
.hero-split p {
  margin: 0;
  max-width: 460px;
  font-size: 1rem;
  color: var(--ink-500);
}
.hero-split .hero-search { margin-top: 1.4rem; }
.hero-split .hero-search .search-form { margin: 0; max-width: 440px; }

.split-featured .featured {
  grid-template-columns: 1fr;
  margin-top: 0;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.split-featured .featured .cover { aspect-ratio: 16 / 9; min-height: 0; }
.split-featured .featured .content { padding: 22px 26px 26px; }
.split-featured .featured h2 { font-size: 1.3rem; margin-top: .6rem; }
.split-featured .featured p { font-size: .93rem; margin-bottom: 0; }
.split-featured .featured .featured-cta { display: none; }

.home-v2 .filters { padding: 26px 0 4px; }
.home-v2 .section-head { margin: 44px 0 24px; }

/* ---- v3: hero yok, öne çıkan en üstte ---- */
.hero-none-title { padding: 20px 0 0; }
.hero-none-title h1 {
  font-size: 1.25rem;
  color: var(--ink-400);
  letter-spacing: .01em;
  margin: 0;
}

.home-v3 .featured { margin-top: 16px; }
.home-v3 .featured .cover { min-height: 400px; }
.home-v3 .featured h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.home-v3 .featured .content { padding: 40px 44px 40px 8px; }

.home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.home-toolbar .hero-search { margin: 0; flex: 0 0 320px; }
.home-toolbar .hero-search .search-form { margin: 0; max-width: none; }
.home-toolbar .filters { padding: 0; flex: 1; justify-content: flex-end; }
.home-v3 .section-head { margin: 44px 0 24px; }

@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-split { text-align: center; }
  .hero-split h1, .hero-split p { margin-left: auto; margin-right: auto; }
  .hero-split .hero-search .search-form { margin: 0 auto; }
  /* home-vN kurallarını ezmek için burada olmak zorundalar: özgüllükleri eşit
     (0,3,0), dolayısıyla yalnızca dosyada onlardan sonra geldikleri için
     kazanıyorlar. 598'deki mobil bloğa yazılırlarsa çalışmazlar.
     Kapak masaüstünde 3/3; alt alta gelince tam genişlikte kare fazla uzun
     kaldığı için mobilde kırpma boyutunun oranına (1040x780) düşüyor. */
  .home-v1 .featured .cover {
    aspect-ratio: 4 / 3;
    /* Kapağın içinde akışta içerik yok (img ve badge absolute). stretch
       yüksekliği ele geçirip kutuyu çökertmesin diye align-self: start;
       min-height de her koşulda taban yükseklik garantisi. */
    align-self: start;
    min-height: 220px;
  }
  .home-v1 .featured .content { padding: 28px; }
  .home-v3 .featured .cover { min-height: 240px; }
  .home-v3 .featured .content { padding: 28px; }
  .home-toolbar { flex-direction: column; align-items: stretch; }
  .home-toolbar .hero-search { flex: 1 1 auto; }
  .home-toolbar .filters { justify-content: flex-start; }
}

/* ==================================================================
   Yazar profilleri
   ================================================================== */

/* Avatar: fotoğraf varsa görsel, yoksa baş harfler */
.avatar { overflow: hidden; flex-shrink: 0; }
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  color: #fff; font-weight: 700; font-size: 1.15rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.avatar-xl {
  width: 132px; height: 132px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  color: #fff; font-weight: 700; font-size: 2.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Sosyal ikonlar */
.author-socials { display: flex; align-items: center; gap: .5rem; }
.author-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  transition: all .18s ease;
}
.author-socials a:hover {
  color: var(--blue-600);
  border-color: var(--blue-300);
  background: var(--blue-100);
}

/* Kart ve öne çıkan bloktaki yazar bağlantısı */
.post-meta b a { color: var(--ink-700); transition: color .2s; }
.post-meta b a:hover { color: var(--blue-600); }
.meta-author-avatar { display: inline-flex; flex-shrink: 0; }

/* Byline'daki unvan */
.byline-role { color: var(--ink-500); font-weight: 500; }
.article-byline b a { color: var(--ink-900); }
.article-byline b a:hover { color: var(--blue-600); }

/* Yazı sonundaki yazar kartı */
.author-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-top: 44px;
  padding: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.author-box-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.author-box h3 { font-size: 1.25rem; margin: .3rem 0 .2rem; }
.author-box h3 a:hover { color: var(--blue-600); }
.author-box .author-role {
  color: var(--blue-600);
  font-weight: 600;
  font-size: .9rem;
  margin: 0 0 .6rem;
}
.author-box .author-bio {
  color: var(--ink-500);
  font-size: .95rem;
  margin: 0 0 1rem;
}
.author-box-foot {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}
.author-all-posts { color: var(--blue-600); font-weight: 600; font-size: .9rem; }

/* Sidebar yazar bloğu */
.side-author-role {
  display: block;
  color: var(--blue-600);
  font-weight: 600;
  font-size: .82rem;
  margin-top: .1rem;
}
.side-author .author-socials { margin: .7rem 0; }
.side-author .author-socials a { width: 30px; height: 30px; }
.side-author-link { color: var(--blue-600); font-size: .88rem; font-weight: 600; }

/* Profil sayfası */
.author-hero { padding: 21px 0 8px; }
.author-profile {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.author-profile .avatar-xl { flex-shrink: 0; }
.author-profile-text { flex: 1; min-width: 280px; }
.author-profile-text h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin: .4rem 0 .3rem; }
.author-profile-text .author-role {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 .8rem;
}
.author-bio-rich {
  color: var(--ink-500);
  font-size: 1.02rem;
  max-width: 720px;
}
.author-bio-rich p { margin: 0 0 .8rem; }
.author-bio-rich a { color: var(--blue-600); text-decoration: underline; }
.author-profile .author-socials { margin-top: 1rem; }

@media (max-width: 600px) {
  .author-box { flex-direction: column; }
  .author-profile { gap: 20px; }
  .avatar-xl { width: 96px; height: 96px; font-size: 1.7rem; }
}

/* ------------------ Boş durum / arama ------------------ */
.empty-state {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 64px 24px;
  margin-top: 40px;
}
.empty-state p { color: var(--ink-500); }
.empty-state .search-form {
  display: flex;
  gap: .6rem;
  max-width: 420px;
  margin: 1.6rem auto;
}
.search-form input[type="search"] {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .8rem 1.3rem;
  font-family: inherit;
  font-size: .95rem;
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--blue-300); }
.search-form input[type="submit"],
.search-form button {
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.4rem;
  background: var(--ink-900);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ------------------ Yazı içeriği (WP editör çıktısı) ------------------ */
.article-cover img { border-radius: var(--radius); }
.article-body img { border-radius: var(--radius-sm); height: auto; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption {
  color: var(--ink-400);
  font-size: .85rem;
  text-align: center;
  margin-top: .6rem;
}
.article-body .alignleft { float: left; margin: .4rem 1.6rem 1.2rem 0; }
.article-body .alignright { float: right; margin: .4rem 0 1.2rem 1.6rem; }
.article-body .aligncenter { margin-left: auto; margin-right: auto; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; }
.article-body th,
.article-body td { border: 1px solid var(--line); padding: .7rem 1rem; text-align: left; }
.article-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  overflow-x: auto;
}
.page-links { margin: 2rem 0; font-weight: 600; }
.page-links a { color: var(--blue-600); }

/* ------------------ Yazı detayı: gövde + sidebar ------------------ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 320px;
  gap: 56px;
  justify-content: space-between;
  align-items: start;
  margin-top: 40px;
}
.article-layout .article-body { margin-top: 0; max-width: none; }
.article-layout .share { max-width: none; margin-left: 0; margin-right: 0; }

/* Kapak görseli metin kolonunun içinde kalır, tam genişliğe taşmaz. */
.article-layout .article-cover {
  max-width: none;
  margin: 0 0 32px;
  aspect-ratio: 16 / 9;
}

.article-head .tag { text-decoration: none; }
.article-byline .byline-text { text-align: left; }

.article-cover { overflow: hidden; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.admin-bar .article-sidebar { top: 132px; }

.side-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.side-box h4 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-400);
  margin-bottom: .9rem;
}

.side-author { display: flex; gap: .9rem; align-items: flex-start; }
.side-author .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
  color: #fff; font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.side-author b { color: var(--ink-900); display: block; }
.side-author p { color: var(--ink-500); font-size: .88rem; margin: .3rem 0 .6rem; }
.side-author a { color: var(--blue-600); font-size: .88rem; font-weight: 600; }

.side-cta {
  background: var(--bg-soft);
  border-color: var(--blue-200);
}
.side-cta h4 {
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 1.1rem;
  color: var(--ink-900);
  margin-bottom: .5rem;
}
.side-cta p { color: var(--ink-500); font-size: .9rem; margin: 0 0 1.1rem; }
.side-cta .btn { width: 100%; justify-content: center; }

.side-categories ul { list-style: none; margin: 0; padding: 0; }
.side-categories li + li { border-top: 1px solid var(--line); }
.side-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .6rem 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-700);
  transition: color .2s;
}
.side-categories a:hover { color: var(--blue-600); }
.side-categories .is-current > a { color: var(--blue-600); font-weight: 700; }
.side-categories .count {
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .1rem .55rem;
}

@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-sidebar { position: static; }
  .admin-bar .article-sidebar { top: auto; }
}
