/*
Theme Name: wp.tc-blog
Theme URI: https://wp.tc
Author: wp.tc
Author URI: https://wp.tc
Description: Minimal, SEO-optimized, mobile-responsive blog theme with pure CSS navigation and light/dark mode
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wptc-blog
*/
/* ==== Local Jost Variable Font (woff2) ==== */
@font-face{
  font-family: 'Jost';
  src:
    url('assets/fonts/jost/Jost[wght].woff2') format('woff2-variations'),
    url('assets/fonts/jost/Jost[wght].woff2') format('woff2');
  font-weight: 300 700;           /* 300–700 arası tek dosya */
  font-style: normal;
  font-display: swap;             /* FOIT yok, CLS iyi */
}

/* İsteğe bağlı: italic kullanacaksan ayrıca ekle
@font-face{
  font-family: 'Jost';
  src: url('assets/fonts/jost/Jost-Italic[wght].woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
*/

/* CSS Variables for Light/Dark Mode */
:root {
  --primary: #8c85ff;
  --secondary: #d0c8fb;
  --tertiary: #e2e1ff;
  --link: #20ba9e;
  --link-border: #def4f0;
  --bg: #ffffff;
  --text: #1a1a1a;
  --header-bg: #ffffff;
  --menu-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --text: #e0e0e0;
    --header-bg: #2a2a2a;
    --menu-bg: #2a2a2a;
    --border: #3a3a3a;
    --shadow: rgba(255, 255, 255, 0.1);
  }
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #1a1a1a;
  --header-bg: #ffffff;
  --menu-bg: #ffffff;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --bg: #1a1a1a;
  --text: #e0e0e0;
  --header-bg: #2a2a2a;
  --menu-bg: #2a2a2a;
  --border: #3a3a3a;
  --shadow: rgba(255, 255, 255, 0.1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

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

/* Header - Sticky */
.site-header {
  position: sticky;
  top: 0;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

.site-logo .site-title {
  font-size: 0.875rem;
  color: var(--text);
  margin-top: 0.25rem;
}

.site-logo .site-description {
  font-size: 0.25rem;
  color: var(--text);
  opacity: 0.7;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex: 1;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
}

/* More Menu (Overflow) */
.more-menu-item {
  position: relative;
}

.more-toggle {
  display: none;
}

.more-label {
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  padding: 0.5rem 0;
}

.more-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--menu-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  z-index: 2000;
}

.more-toggle:checked ~ .more-menu {
  display: flex;
}

.more-menu a {
  font-size: 1.5rem;
  color: var(--text);
}

.close-more {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
}

.theme-toggle {
  display: none;
}

.theme-label {
  cursor: pointer;
  width: 50px;
  height: 26px;
  background-color: var(--border);
  border-radius: 13px;
  position: relative;
  transition: background-color 0.3s;
}

.theme-label::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s;
}

.theme-toggle:checked + .theme-label::after {
  transform: translateX(24px);
}

/* Search Button & Form */
.search-toggle-wrap {
  position: relative;
}

.search-toggle-checkbox {
  display: none;
}

.search-toggle-label {
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  font-size: 1.2rem;
}

.search-form-wrap {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 1rem;
  background-color: var(--menu-bg);
  padding: 1rem;
  border-radius: 5px;
  box-shadow: 0 4px 20px var(--shadow);
  display: none;
  min-width: 300px;
}

.search-toggle-checkbox:checked ~ .search-form-wrap {
  display: block;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.search-form button {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
}

.mobile-toggle {
  display: none;
}

.hamburger-label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--menu-bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 5rem;
  gap: 2rem;
  list-style: none;
  z-index: 2000;
  overflow-y: auto;
}

.mobile-toggle:checked ~ .mobile-menu {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text);
}

.close-mobile {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text);
}

/* Main Content */
.site-main {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

/* Single Post */
.single-post .entry-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.2;
}

.single-post .entry-content > p:first-of-type {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.single-post .featured-image {
  margin: 2rem 0;
  border-radius: 5px;
  overflow: hidden;
}

.single-post .featured-image img {
  width: 100%;
  height: auto;
}

.single-post .entry-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.single-post .entry-content p {
  margin-bottom: 1.5rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.single-post .entry-content a {
  color: var(--link);
  border: 1px solid var(--link-border);
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
}

/* Post Meta */
.post-meta {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-categories,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.post-categories a,
.post-tags a {
  color: var(--link);
  border: 1px solid var(--link-border);
  padding: 0.25rem 0.75rem;
  border-radius: 5px;
  font-size: 0.875rem;
	background-color: #def4f0;
}

/* Archive Pages */
.archive-header {
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 2.5rem;
  color: var(--text);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background-color: var(--menu-bg);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 1.5rem;
}

.post-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.post-card-title a {
  color: var(--text);
}

.post-card-excerpt {
  color: var(--text);
  opacity: 0.8;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
}

.pagination .current {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background-color: var(--header-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  color: var(--text);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-main {
    padding: 0 1rem;
    margin: 2rem auto;
  }

  .single-post .entry-title {
    font-size: 2rem;
  }

  .single-post .entry-content {
    font-size: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .archive-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  header .desktop-nav { display: none !important; }
  header .mobile-nav { display: flex !important; align-items: center; gap: 1rem; }
}

/* ------------------------------
   LISTELER (ul / ol / li)
--------------------------------*/
.entry-content ul,
.entry-content ol {
  margin: 1.25rem 0 1.25rem 1.25rem;
  padding: 0;
  color: var(--text);
}

.entry-content li {
  margin: 0.4rem 0;
  line-height: 1.7;
}

/* UL: özel nokta */
.entry-content ul {
  list-style: none;
}
.entry-content ul li {
  position: relative;
  padding-left: 1.25rem;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--link);
  box-shadow: 0 0 0 2px var(--link-border) inset;
}

/* UL iç içe seviyeler */
.entry-content ul ul li::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--secondary) inset;
}
.entry-content ul ul ul li::before {
  background: var(--text);
  box-shadow: 0 0 0 2px var(--tertiary) inset;
}

/* OL: numaralı liste, sayaç ile */
.entry-content ol {
  counter-reset: wptc-ol;
  list-style: none;
}
.entry-content ol li {
  position: relative;
  padding-left: 2rem;
  counter-increment: wptc-ol;
}
.entry-content ol li::before {
  content: counter(wptc-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--primary);
  min-width: 1.5rem;
  text-align: right;
}

/* OL iç içe: a, i, 1 şeklinde farklı stiller */
.entry-content ol ol { counter-reset: wptc-ol-2; }
.entry-content ol ol li { counter-increment: wptc-ol-2; }
.entry-content ol ol li::before { content: counter(wptc-ol-2, lower-alpha) "."; color: var(--link); }

.entry-content ol ol ol { counter-reset: wptc-ol-3; }
.entry-content ol ol ol li { counter-increment: wptc-ol-3; }
.entry-content ol ol ol li::before { content: counter(wptc-ol-3, lower-roman) "."; color: var(--text); opacity: .7; }

/* Liste içindeki linkler */
.entry-content li a {
  color: var(--link);
  border: 1px solid var(--link-border);
  padding: 0.05rem 0.3rem;
  border-radius: 5px;
}

/* ------------------------------
   TABLOLAR (table) — DÜZELTME
--------------------------------*/
.entry-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tabloyu doğal display’de bırak; hizalama bozulmasın */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: var(--menu-bg);
  border-radius: 5px;
  overflow: hidden; /* radius */
  table-layout: auto;            /* otomatik sütun genişliği */
}

/* BU DÖRTLÜYÜ SİL/ KULLANMA:
   .entry-content table { display:block; }
   .entry-content thead, tbody, tfoot { display:table; width:100%; table-layout:fixed; }
*/

/* Hücreler: taşmaları önle, üst üste binmeyi engelle */
.entry-content th,
.entry-content td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: normal;           /* <<< nowrap kaldırıldı */
  word-break: break-word;        /* uzun kelimeler/kodlar kırılır */
}

/* Başlık satırı */
.entry-content thead th {
  background: var(--secondary);
  color: var(--text);
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

/* Zebra */
.entry-content tbody tr:nth-child(odd) {
  background: var(--tertiary);
}
.entry-content tbody tr:hover {
  background: color-mix(in srgb, var(--primary) 12%, var(--menu-bg));
}

/* Caption */
.entry-content table caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 0 0 0.5rem 0;
}

/* Küçük ekranlarda typografi */
@media (max-width: 768px) {
  .entry-content th,
  .entry-content td {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }
}

/* Koyu tema iyileştirmeleri olduğu gibi kalabilir */


/* ------------------------------
   Tanım listeleri (DL) – bonus
--------------------------------*/
.entry-content dl { margin: 1.25rem 0; }
.entry-content dt {
  font-weight: 700;
  color: var(--text);
  margin-top: 1rem;
}
.entry-content dd {
  margin: 0.25rem 0 0.75rem 1rem;
  color: var(--text);
  opacity: .9;
}
/* Tema ipucu: tarayıcıya her iki temayı da desteklediğimizi söyle */
body { color-scheme: light dark; }

/* ===========================
   DARK THEME OVERRIDES
   =========================== */
[data-theme="dark"] .entry-content table {
  background: var(--menu-bg);           /* #2a2a2a */
  border-color: var(--border);          /* #3a3a3a */
}

[data-theme="dark"] .entry-content thead th {
  /* Açık lila (--secondary) yerine koyu başlık şeridi */
  background: color-mix(in srgb, var(--menu-bg) 90%, var(--primary) 10%);
  color: var(--text);                   /* #e0e0e0 */
  border-bottom-color: var(--border);
}

[data-theme="dark"] .entry-content tbody tr:nth-child(odd) {
  /* Zebra satırları: menü arkaplanından bir ton açık */
  background: color-mix(in srgb, var(--menu-bg) 85%, white 15%);
}

[data-theme="dark"] .entry-content tbody tr:hover {
  /* Hover: primar’den çok hafif dokunuş */
  background: color-mix(in srgb, var(--menu-bg) 80%, var(--primary) 20%);
}

/* Hücre sınırları ve tipografi */
[data-theme="dark"] .entry-content th,
[data-theme="dark"] .entry-content td {
  border-bottom-color: var(--border);
  color: var(--text);
}

/* Tablo caption görünürlüğü */
[data-theme="dark"] .entry-content table caption {
  color: var(--text);
  opacity: .9;
}

/* Listeler: nokta/halka kontrastını koyu temaya uyumla */
[data-theme="dark"] .entry-content ul li::before {
  background: var(--link); /* #20ba9e */
  /* Halka rengi: menü bg ile karışık, fazla parlak olmasın */
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--menu-bg) 70%, var(--link-border) 30%) inset;
}

/* Daha derin iç içe ul seviyeleri */
[data-theme="dark"] .entry-content ul ul li::before {
  background: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--menu-bg) 70%, var(--secondary) 30%) inset;
}
[data-theme="dark"] .entry-content ul ul ul li::before {
  background: var(--text);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--menu-bg) 70%, var(--tertiary) 30%) inset;
}

/* Numaralı listelerde numara rengi çok soluk kalmasın */
[data-theme="dark"] .entry-content ol li::before {
  color: var(--primary);
}

/* Koyu temada link butonlarının kenarlığı biraz daha belirgin olsun */
[data-theme="dark"] .entry-content li a,
[data-theme="dark"] .post-categories a,
[data-theme="dark"] .post-tags a {
  border-color: color-mix(in srgb, var(--menu-bg) 60%, var(--link-border) 40%);
}

/* Desktop dropdown: alt menü konumu */
.main-menu > li { position: relative; }            /* ebeveyn referans noktası */
.main-menu .sub-menu {
  position: absolute;
  top: 100%;                                       /* ÜST MENÜNÜN ALTINDAN */
  left: 0;
  display: none;
  min-width: 220px;
  background: var(--menu-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 10px 30px var(--shadow);
  padding: 0.4rem 0;
  z-index: 3000;
}
.main-menu .sub-menu li { position: relative; }
.main-menu .sub-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
  color: var(--text);
  white-space: nowrap;
}

/* Hover ile aç/kapat (saf CSS) */
.main-menu > li:hover > .sub-menu { display: block; }

/* 3. seviye (torun) menü: sağa açılabilir */
.main-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 4px;
}

/* İsteğe bağlı: üst menü linklerine biraz alt padding ver (hover kaçmasın) */
.main-menu > li > a {
  display: inline-block;
  padding: 0.5rem 0.25rem;
}

/* Overlay "Daha Fazla" içindeki alt menüleri düşey listede normal göster */
.more-menu .sub-menu {
  position: static;
  display: block;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0.25rem 0 0.5rem;
}
.more-menu .sub-menu a {
  padding-left: 1.2rem; /* hiyerarşi için küçük girinti */
}

/* Karanlık temada alt menü paneli kontrast */
[data-theme="dark"] .main-menu .sub-menu {
  background: color-mix(in srgb, var(--menu-bg) 96%, white 4%);
  border-color: var(--border);
}
/* Menü listelerini sıfırla – bullets/numaralar kapansın */
.desktop-nav .main-menu,
.desktop-nav .main-menu ul,
.desktop-nav .more-menu,
.mobile-nav .mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Alt menü öğelerinde marker'ı kesin kapat */
.desktop-nav .main-menu .sub-menu li,
.desktop-nav .more-menu li,
.mobile-nav .mobile-menu li {
  list-style: none;
}

/* Bazı tarayıcılar ::marker gösterir – güvenli kapatma */
.desktop-nav .main-menu li::marker,
.desktop-nav .main-menu .sub-menu li::marker,
.desktop-nav .more-menu li::marker,
.mobile-nav .mobile-menu li::marker {
  content: "";
}

/* Alt menü linklerinin hizası ve tıklanabilir alanı */
.main-menu .sub-menu a {
  display: block;
  padding: 0.55rem 0.9rem;
}
/* Boşsa "Daha Fazla" gizlensin */
.more-menu-item { display: none; }
.more-menu-item:not(:has(> .more-menu > li)) { display: none; }
.more-menu-item:has(> .more-menu > li) { display: inline-block; }


/* ================================
   MOBILE MENU – soldan hizalı + hiyerarşik
   ================================ */
@media (max-width: 768px) {
  /* Konteyner: sola hizala, boşlukları sık */
  .mobile-menu {
    align-items: flex-start !important;      /* soldan hizala */
    justify-content: flex-start;
    padding: 4.5rem 1rem 2rem !important;    /* üst boşluk sabit, yanlar dar */
    gap: 0.4rem !important;                  /* öğeler arası yakın */
  }

  /* Her öğe tam satır kaplasın */
  .mobile-menu > li {
    width: 100%;
  }

  /* Ana linkler: blok, sola hizalı, sade */
  .mobile-menu a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.6rem 0.75rem;                 /* kompakt padding */
    font-size: 1.05rem;                      /* okunaklı ama büyük değil */
    color: var(--text);
    border-radius: 5px;
  }
  .mobile-menu a:active {
    background: color-mix(in srgb, var(--primary) 12%, var(--menu-bg));
  }

  /* Alt menüleri göster + girinti ver + ince sol çizgi */
  .mobile-menu .sub-menu {
    display: block !important;               /* mobilde hepsini listele */
    margin: 0.2rem 0 0.35rem 0;
    padding-left: 0.9rem;                    /* bir tık içeride */
    border-left: 2px solid var(--secondary); /* hiyerarşi çizgisi */
  }
  /* 2. ve 3. seviye için biraz daha girinti ve daha açık çizgi */
  .mobile-menu .sub-menu .sub-menu {
    padding-left: 0.8rem;
    border-left-color: var(--tertiary);
  }

  /* Alt menü linkleri biraz daha küçük ve sıkı */
  .mobile-menu .sub-menu a {
    font-size: 0.98rem;
    padding: 0.5rem 0.65rem;
    opacity: 0.95;
  }

  /* Ebeveyn menü vurgusu (alt menüsü olanlar) */
  .mobile-menu .menu-item-has-children > a {
    font-weight: 600;
  }

  /* Ayırıcı gibi hafif alt çizgi (opsiyonel) */
  .mobile-menu > li > a {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, var(--menu-bg));
  }
  .mobile-menu .sub-menu li > a {
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, var(--menu-bg));
  }

  /* Kapat butonu her zaman sağ üstte sabit kalsın */
  .mobile-menu .close-mobile {
    position: sticky;
    top: 1rem;
    align-self: flex-end;
    margin-right: 0.25rem;
    z-index: 2;
  }
}

/* DARK THEME – mobil alt menü çizgileri biraz daha soft */
[data-theme="dark"] .mobile-menu .sub-menu {
  border-left-color: color-mix(in srgb, var(--menu-bg) 60%, var(--secondary) 40%);
}
[data-theme="dark"] .mobile-menu .sub-menu .sub-menu {
  border-left-color: color-mix(in srgb, var(--menu-bg) 70%, var(--tertiary) 30%);
}
/* Görsel logo switch: varsayılan açık tema */
.site-logo-img--light { display: inline-block; max-height: 50px; height: auto; }
.site-logo-img--dark  { display: none;        max-height: 50px; height: auto; }

/* Koyu tema aktifken */
[data-theme="dark"] .site-logo-img--light { display: none; }
[data-theme="dark"] .site-logo-img--dark  { display: inline-block; }

/* Cihaz koyu tema tercihine saygı (ilk giriş için fallback) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-logo-img--light { display: none; }
  html:not([data-theme="light"]) .site-logo-img--dark  { display: inline-block; }
}

/* Erişilebilirlik için sr-only yardımcı sınıf (gerekirse) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Slogan tipografi – istersen ayarla */
.site-logo .site-description {
  display: block;
  font-size: 0.6rem;
  opacity: .75;
  margin-top: .25rem;
}
