/* =====================================================================
   uzmanpdr — ORTAK STİL DOSYASI (tüm sayfalar bunu yükler)
   Menü, footer ve temel stiller BURADA. Sayfaya özel stiller ilgili
   src/pages/*.html dosyasının en üstündeki <style> içindedir.
   ===================================================================== */

/* ---- Renk / ölçü değişkenleri ---- */
:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #eff6ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-primary: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-light: #dbeafe;
  --accent-emerald: #059669;
  --accent-emerald-bg: #d1fae5;
  --badge-new-bg: #dcfce7;
  --badge-new-text: #15803d;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --header-height: 70px;
  --container-max: 1320px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --accent-amber: #d97706;
  --accent-amber-bg: #fef3c7;
  --accent-danger: #dc2626;
  --accent-danger-bg: #fee2e2;
  --accent-indigo: #4f46e5;
  --accent-indigo-bg: #e0e7ff;
}

/* ---- Temel ---- */
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background-color: var(--bg-page); color: var(--text-primary); line-height: 1.55; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---- Üst menü, mega menü, mobil menü, arama ---- */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg-surface); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.nav-container { max-width: var(--container-max); margin: 0 auto; padding: 0 18px; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #ffffff; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25); }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text-primary); line-height: 1.1; }
.brand-title span { color: var(--brand-primary); }
.brand-sub { font-size: 0.7rem; font-weight: 500; color: var(--text-muted); }
.desktop-nav { flex: 1; display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 2px; height: 100%; }
.nav-item { height: 100%; display: flex; align-items: center; position: relative; }
.nav-item.has-mega { position: static; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); border-radius: var(--radius-md); transition: color var(--transition), background-color var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link.active { color: var(--brand-primary); background-color: var(--bg-hover); }
.chevron { width: 14px; height: 14px; transition: transform var(--transition); opacity: 0.75; }
.nav-item.is-open > .nav-link .chevron { transform: rotate(180deg); color: var(--brand-primary); }
.mega-panel, .dropdown-panel { position: absolute; top: calc(100% + 1px); background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); z-index: 990; }
.mega-panel { left: 20px; right: 20px; padding: 24px 28px; }
.dropdown-panel { left: 0; min-width: 300px; max-width: calc(100vw - 32px); padding: 14px; border-radius: var(--radius-lg); }
.dropdown-panel.align-right { left: auto; right: 0; }
.nav-item.is-open > .mega-panel, .nav-item.is-open > .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.mega-grid-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mega-col { display: flex; flex-direction: column; }
.mega-col-header { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-primary); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.mega-links { display: flex; flex-direction: column; gap: 3px; }
.mega-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); transition: all var(--transition); }
.mega-link:hover, .mega-link.current { background-color: var(--bg-hover); color: var(--brand-primary); transform: translateX(3px); }
.module-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--bg-page); transition: all var(--transition); }
.module-card:hover, .module-card.current { background: var(--bg-hover); border-color: #bfdbfe; transform: translateY(-2px); }
.module-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--brand-light); color: var(--brand-primary); display: grid; place-items: center; flex-shrink: 0; }
.module-title { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.module-desc { font-size: 0.79rem; color: var(--text-muted); line-height: 1.4; }
.badge-new { display: inline-flex; align-items: center; padding: 2px 7px; font-size: 0.68rem; font-weight: 700; border-radius: 999px; background: var(--badge-new-bg); color: var(--badge-new-text); white-space: nowrap; flex-shrink: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.search-trigger { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--bg-subtle); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-muted); font-size: 0.84rem; transition: all var(--transition); }
.search-trigger:hover { border-color: #cbd5e1; background: #e2e8f0; color: var(--text-primary); }
.search-kbd { font-size: 0.72rem; font-weight: 600; padding: 1px 6px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-secondary); }
.mobile-toggle { display: none; width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid var(--border-color); align-items: center; justify-content: center; color: var(--text-primary); }
.mobile-drawer { display: none; position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0; background: var(--bg-surface); z-index: 980; overflow-y: auto; padding: 16px 20px 40px; border-top: 1px solid var(--border-color); }
.mobile-drawer.is-open { display: block; }
.mobile-item { border-bottom: 1px solid var(--border-color); }
.mobile-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 0.96rem; font-weight: 700; color: var(--text-primary); text-align: left; }
.mobile-trigger[aria-expanded="true"] { color: var(--brand-primary); }
.mobile-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.mobile-submenu { display: none; padding: 0 4px 14px 12px; }
.mobile-submenu.is-open { display: block; }
.mobile-group-title { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--brand-primary); margin: 12px 0 6px; }
.mobile-sublink { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; font-size: 0.88rem; color: var(--text-secondary); border-radius: 6px; }
.mobile-sublink:hover { background: var(--bg-hover); color: var(--brand-primary); }
.search-modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px); z-index: 2000; display: none; align-items: flex-start; justify-content: center; padding: 70px 16px 16px; }
.search-modal-backdrop.is-open { display: flex; }
.search-modal { width: 100%; max-width: 620px; background: var(--bg-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-color); }
.search-input { width: 100%; border: none; outline: none; font-size: 1rem; color: var(--text-primary); background: transparent; }
.search-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.search-result-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); transition: background var(--transition); }
.search-result-item:hover { background: var(--bg-hover); }
.search-result-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.search-result-cat { font-size: 0.76rem; color: var(--text-muted); }
.search-empty { padding: 28px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---- Alt bilgi (footer) ---- */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-color); padding: 44px 0 24px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border-color); }
.footer-about p { font-size: 0.86rem; color: var(--text-muted); margin-top: 12px; max-width: 340px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-primary); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.86rem; color: var(--text-secondary); transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-primary); }
.footer-bottom { padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-muted); }

/* ---- Duyarlı (responsive) ---- */
@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: flex; }
  .search-kbd { display: none; }
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---- Henüz yayınlanmamış sayfalar ("Yakında") ----
   build.py, hedef dosyası olmayan her bağlantıya .is-soon sınıfı ekler.
   Dosyayı src/pages/ içine koyup yeniden derleyince otomatik kalkar. */
a.is-soon { opacity: .55; cursor: not-allowed; }
a.is-soon:hover { transform: none; }
.mega-link.is-soon::after, .mobile-sublink.is-soon::after, .footer-links a.is-soon::after {
  content: "Yakında"; display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; line-height: 1.5; background: var(--bg-subtle); color: var(--text-muted);
  border: 1px solid var(--border-color); vertical-align: middle; white-space: nowrap;
}
.module-card.is-soon .module-title::after {
  content: "Yakında"; display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; background: var(--bg-subtle); color: var(--text-muted);
  border: 1px solid var(--border-color); vertical-align: middle;
}

/* ---- Erişilebilirlik (:focus-visible) & Yukarı Çık Butonu ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2.5px solid var(--brand-primary);
  outline-offset: 2px;
}
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 950;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background-color var(--transition);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--brand-hover);
}
@media print {
  .back-to-top { display: none !important; }
}

/* ---- Çerez ve Yerel Veri Bilgilendirme Bandı ---- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}
.cookie-banner-text a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 8px;
  transition: background var(--transition);
}
.cookie-btn-accept:hover {
  background: var(--brand-hover);
}
.cookie-btn-info {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
}
.cookie-btn-info:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
}
@media print {
  .cookie-banner { display: none !important; }
}

/* ---- Blog & Rehber Yazıları Stilleri ---- */
.blog-main { flex: 1; padding: 28px 0 60px; }
.blog-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.blog-breadcrumb a:hover { color: var(--brand-primary); text-decoration: underline; }
.blog-hero { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.blog-hero h1 { font-size: 1.68rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text-primary); }
.blog-hero p { font-size: 0.95rem; color: var(--text-secondary); max-width: 820px; }

.blog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.blog-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.blog-cat-btn { padding: 8px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--bg-subtle); color: var(--text-secondary); transition: all var(--transition); }
.blog-cat-btn:hover { background: var(--bg-hover); color: var(--brand-primary); }
.blog-cat-btn.active { background: var(--brand-primary); color: #ffffff; }
.blog-search-input { min-width: 240px; flex: 0 1 300px; padding: 8px 13px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.88rem; color: var(--text-primary); background: var(--bg-page); }
.blog-search-input:focus { border-color: var(--brand-primary); background: #ffffff; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.blog-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.blog-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #93c5fd; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-cat-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; background: var(--brand-light); color: var(--brand-primary); }
.blog-cat-pill.cat-sinav { background: #fef3c7; color: #b45309; }
.blog-cat-pill.cat-calisma { background: #d1fae5; color: #047857; }
.blog-cat-pill.cat-veli { background: #ede9fe; color: #6d28d9; }
.blog-read-time { font-size: 0.76rem; font-weight: 600; color: var(--text-muted); }
.blog-card h2 { font-size: 1.08rem; font-weight: 800; line-height: 1.38; color: var(--text-primary); margin-bottom: 8px; }
.blog-card h2 a:hover { color: var(--brand-primary); }
.blog-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.56; }
.blog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--border-color); padding-top: 12px; font-size: 0.82rem; font-weight: 700; }
.blog-read-link { color: var(--brand-primary); display: inline-flex; align-items: center; gap: 4px; }
.blog-read-link:hover { text-decoration: underline; }
.blog-starter-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; background: #dcfce7; color: #15803d; }

/* Makale Detay Sayfası */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; align-items: start; }
.article-wrap { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px 36px; box-shadow: var(--shadow-sm); }
.article-header { border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 24px; }
.article-header h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.28; letter-spacing: -0.02em; color: var(--text-primary); margin: 12px 0 10px; }
.article-lead { font-size: 1.02rem; color: var(--text-secondary); line-height: 1.65; }
.article-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; }

.article-body h2 { font-size: 1.28rem; font-weight: 800; color: var(--text-primary); margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color); }
.article-body h3 { font-size: 1.04rem; font-weight: 700; color: var(--brand-primary); margin: 20px 0 8px; }
.article-body p { font-size: 0.96rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.68; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body a { color: var(--brand-primary); font-weight: 600; text-decoration: underline; }
.article-callout { background: var(--bg-hover); border: 1px solid #bfdbfe; border-left: 4px solid var(--brand-primary); border-radius: 10px; padding: 15px 18px; margin: 18px 0; font-size: 0.92rem; color: var(--text-primary); line-height: 1.65; }
.article-table { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 0.89rem; }
.article-table th, .article-table td { border: 1px solid var(--border-color); padding: 10px 12px; text-align: left; vertical-align: top; }
.article-table th { background: var(--bg-subtle); font-weight: 800; color: var(--text-primary); }

.cta-tool-box { margin: 26px 0 12px; padding: 20px 22px; border-radius: 12px; background: linear-gradient(135deg, #eff6ff, #f8fafc); border: 1.5px solid #93c5fd; }
.cta-tool-box h3 { font-size: 1.05rem; font-weight: 800; color: var(--brand-primary); margin-bottom: 6px; }
.cta-tool-box p { font-size: 0.89rem; color: var(--text-secondary); margin-bottom: 12px; }
.cta-tool-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 8px; background: var(--brand-primary); color: #ffffff !important; text-decoration: none !important; font-size: 0.85rem; font-weight: 700; transition: background var(--transition); }
.cta-tool-btn:hover { background: var(--brand-hover); }
.cta-tool-btn.secondary { background: #ffffff; color: var(--brand-primary) !important; border: 1px solid #93c5fd; }
.cta-tool-btn.secondary:hover { background: var(--bg-hover); }

.article-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 88px; }
.side-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 0.88rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.side-list { display: flex; flex-direction: column; gap: 9px; }
.side-list a { font-size: 0.86rem; font-weight: 600; color: var(--text-secondary); line-height: 1.42; transition: color var(--transition); }
.side-list a:hover { color: var(--brand-primary); }

@media (max-width: 980px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-wrap { padding: 22px 20px; }
}
@media print {
  .site-header, .mobile-drawer, .search-modal-backdrop, .site-footer, .article-sidebar, .cta-tool-box, .no-print { display: none !important; }
  .article-grid { grid-template-columns: 1fr !important; }
  .article-wrap { border: none !important; box-shadow: none !important; padding: 0 !important; }
}

/* ---- Tema Değiştirici (Dark Mode) ---- */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
  border-color: #93c5fd;
}

[data-theme="dark"] {
  --bg-page: #0b1220;
  --bg-surface: #111b2e;
  --bg-subtle: #1e293b;
  --bg-hover: #172554;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --brand-primary: #60a5fa;
  --brand-hover: #3b82f6;
  --brand-light: #1e3a8a;
  --accent-emerald: #34d399;
  --accent-emerald-bg: #064e3b;
  --badge-new-bg: #064e3b;
  --badge-new-text: #6ee7b7;
  --border-color: #263449;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .oe-hero,
[data-theme="dark"] .cta-tool-box {
  background: linear-gradient(135deg, #172554 0%, #111b2e 100%) !important;
  border-color: #1e40af !important;
}
[data-theme="dark"] .card-front,
[data-theme="dark"] .flip-front,
[data-theme="dark"] .card-back,
[data-theme="dark"] .flip-back {
  background: #111b2e;
  border-color: #334155;
}
[data-theme="dark"] .alert-note,
[data-theme="dark"] .conflict-box,
[data-theme="dark"] .mev-note {
  background: #271f11 !important;
  border-color: #78350f !important;
  color: #fde68a !important;
}
[data-theme="dark"] .goal-box {
  background: #062c1e !important;
  border-color: #065f46 !important;
  color: #a7f3d0 !important;
}
[data-theme="dark"] .theme-toggle .icon-moon { display: none !important; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block !important; }

/* ---- Gelişmiş Arama Modalı (Klavye & Son Ziyaret Edilenler) ---- */
.search-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 12px 4px;
}
.search-result-item.is-active-result {
  background: var(--bg-hover);
  outline: 1.5px solid var(--brand-primary);
}
.search-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 9px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-page);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.search-modal-footer kbd {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.7rem;
}

/* ---- Anlık Bildirim (Toast) Sistemi ---- */
.toast-container {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 340px;
}
.toast-item {
  pointer-events: auto;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast-item.is-shown {
  opacity: 1;
  transform: translateY(0);
}
.toast-item.toast-success { border-left-color: #10b981; }
.toast-item.toast-warn { border-left-color: #f59e0b; }

/* ---- Okuma İlerleme Çubuğu & Otomatik İçindekiler (TOC) ---- */
.reading-progress-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), #10b981);
  z-index: 1050;
  transition: width 0.08s linear;
  pointer-events: none;
}
.auto-toc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.auto-toc-card h3 {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  margin-bottom: 9px;
}
.auto-toc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auto-toc-list a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  transition: color var(--transition);
}
.auto-toc-list a:hover { color: var(--brand-primary); text-decoration: underline; }

@media print {
  [data-theme="dark"] {
    --bg-page: #ffffff !important;
    --bg-surface: #ffffff !important;
    --bg-subtle: #f1f5f9 !important;
    --text-primary: #0f172a !important;
    --text-secondary: #334155 !important;
    --border-color: #cbd5e1 !important;
  }
  .toast-container, .reading-progress-bar, .auto-toc-card, .theme-toggle { display: none !important; }
}

/* ---- Otomatik & Manuel Öne Çıkan Kapak Görselleri ---- */
.featured-card-cover,
.blog-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
}
.featured-card-cover img,
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.feature-card:hover .featured-card-cover img,
.blog-card:hover .blog-card-cover img {
  transform: scale(1.025);
}
.article-featured-cover {
  margin: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 1200 / 630;
  background: var(--bg-subtle);
}
.article-featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- WhatsApp & Bağlantı Kopyalama Paylaşım Çubuğu ---- */
.share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
}
.share-bar-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.share-bar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn-wa {
  background: #16a34a;
  color: #ffffff !important;
  text-decoration: none !important;
}
.share-btn-wa:hover { background: #15803d; }
.share-btn-copy {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.share-btn-copy:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
  border-color: #93c5fd;
}
.footer-util-btn {
  font-size: inherit;
  font-weight: 700;
  color: var(--brand-primary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.footer-util-btn:hover { text-decoration: underline; }
@media print {
  .share-bar { display: none !important; }
}

/* ---- Cusdis Yorum Alanı ---- */
.comments-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}
.comments-section h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.comments-privacy-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.comments-placeholder {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.comments-placeholder a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
}
#cusdis_thread iframe {
  width: 100% !important;
  min-height: 260px;
}

/* ---- Kişisel Favorilerim (Yıldızla) ---- */
.fav-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.fav-toggle:hover {
  background: var(--bg-hover);
  color: #d97706;
  border-color: #fcd34d;
}
.fav-toggle.is-fav {
  background: #fef3c7;
  color: #d97706;
  border-color: #f59e0b;
}
.fav-toggle.is-fav svg {
  fill: #f59e0b;
}
.fav-home-section {
  padding: 16px 0 4px;
}
.fav-home-box {
  background: var(--bg-surface);
  border: 1px solid #fcd34d;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.fav-home-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #b45309;
  white-space: nowrap;
}
[data-theme="dark"] .fav-home-title { color: #fcd34d; }
.fav-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fav-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition);
}
.fav-chip:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  background: var(--bg-hover);
}
@media print {
  .fav-toggle, .fav-home-section { display: none !important; }
}

/* ---- Rol Bazlı Hızlı Başlangıç ("Ben Kimim?") ---- */
.role-filter-section {
  padding: 18px 0 4px;
}
.role-filter-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.role-filter-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.role-filter-label {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-primary);
}
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.role-tab {
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.81rem;
  font-weight: 700;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  transition: all var(--transition);
}
.role-tab:hover {
  background: var(--bg-hover);
  color: var(--brand-primary);
}
.role-tab.active {
  background: var(--brand-primary);
  color: #ffffff;
}
.role-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.role-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 9px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition);
}
.role-pill:hover {
  border-color: var(--brand-primary);
  background: var(--bg-hover);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* ---- Yüzer Aksiyon Butonları (Yukarı Çık & Hızlı Yazdır) ---- */
.floating-utils {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.floating-utils.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.float-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
}
.float-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

/* ---- Mikro Etkileşim & Odak İncelikleri ---- */
.feature-card, .calc-card, .dir-card, .oe-card, .blog-card, .cd-card, .act-card {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.feature-card:hover, .calc-card:hover, .oe-card:hover, .blog-card:hover, .cd-card:hover, .act-card:hover {
  transform: translateY(-3px);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
[data-theme="dark"] .scale-frame-wrap,
[data-theme="dark"] .scale-iframe {
  background: #111b2e !important;
}
@media print {
  .floating-utils, .role-filter-section { display: none !important; }
}
