:root {
  --bg-page: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-navy: #0b192c;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --medical-blue: #0284c7;
  --medical-blue-dark: #0369a1;
  --medical-blue-soft: #e0f2fe;
  --alert-orange: #ff6900;
  --alert-orange-soft: #fff7ed;
  --alert-orange-border: rgba(255, 105, 0, 0.4);
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.16);
  --shell-max: 1440px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.68;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 66px; /* Mobil alt bar boşluğu */
}

.wiki-shell {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* 1. Üst Klinik Bilgi Bandı */
.clinical-topbar {
  background: var(--bg-navy);
  color: #cbd5e1;
  font-size: 0.74rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--alert-orange);
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.25);
  flex-shrink: 0;
}

.topbar-links {
  display: none;
  align-items: center;
  gap: 1.15rem;
}

.topbar-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.topbar-links a:hover {
  color: var(--alert-orange);
}

/* 2. Ana Yapışkan Wiki Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.drawer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.drawer-toggle-btn:hover {
  border-color: var(--medical-blue);
  color: var(--medical-blue);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-badge,
.brand-mascot-wrap {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  border: 2px solid var(--medical-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.16);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.brand:hover .brand-mascot-wrap {
  transform: scale(1.06) rotate(-4deg);
  border-color: var(--alert-orange);
}

.brand-mascot-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-mascot {
  border-color: var(--alert-orange);
  background: #ffffff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-text strong {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.brand-text strong span {
  color: var(--medical-blue);
}

.wiki-tag {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--alert-orange-soft);
  color: var(--alert-orange);
  border: 1px solid var(--alert-orange-border);
  padding: 0.12rem 0.42rem;
  border-radius: 4px;
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Global Anlık Arama Çubuğu */
.global-search-wrapper {
  position: relative;
  flex: 1 1 100%;
  order: 3;
}

.global-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0 0.75rem;
  transition: all 0.15s ease;
}

.global-search-box:focus-within {
  background: #ffffff;
  border-color: var(--medical-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.14);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.global-search-box input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.58rem 0.65rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
}

.search-shortcut {
  display: none;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.1rem 0.38rem;
  white-space: nowrap;
}

.global-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 420px;
  overflow-y: auto;
  z-index: 100;
  padding: 0.5rem;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--bg-subtle);
}

.search-result-item:hover {
  background: var(--bg-subtle);
}

.search-result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.search-result-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--medical-blue-dark);
}

.search-result-cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--alert-orange);
  background: var(--alert-orange-soft);
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  white-space: nowrap;
}

.search-result-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-quick-nav {
  display: none;
  align-items: center;
  gap: 0.9rem;
}

.header-quick-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.header-quick-nav a:hover {
  color: var(--medical-blue);
}

.nav-cms-link {
  color: var(--alert-orange) !important;
  background: var(--alert-orange-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--alert-orange-border);
}

/* 3. 3 Sütunlu Medikal Wiki İskeleti */
.wiki-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  align-items: start;
}

/* Sol Sütun: Konu Ağacı (56 Madde) */
.wiki-sidebar-left {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  /* Mobilde çekmece (drawer) olarak çalışır */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 86vw;
  z-index: 90;
  transform: translateX(-105%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.wiki-sidebar-left.drawer-open {
  transform: translateX(0);
}

.sidebar-head {
  padding: 0.9rem 1rem;
  background: var(--bg-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-head-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tree-filter-box {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.tree-filter-box input {
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
}

.tree-filter-box input:focus {
  border-color: var(--medical-blue);
}

.wiki-tree-scroll {
  padding: 0.5rem;
  overflow-y: auto;
  flex: 1;
}

.wiki-tree-group {
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.wiki-tree-group[open] {
  background: var(--bg-subtle);
  border-color: var(--border-color);
}

.wiki-tree-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem 0.6rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  user-select: none;
}

.wiki-tree-summary::-webkit-details-marker {
  display: none;
}

.wiki-tree-summary:hover {
  background: #e2e8f0;
}

.tree-cat-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tree-cat-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: #e2e8f0;
  color: var(--text-secondary);
  padding: 0.08rem 0.42rem;
  border-radius: 99px;
}

.wiki-tree-group[open] .tree-cat-count {
  background: var(--alert-orange);
  color: #ffffff;
}

.wiki-tree-links {
  list-style: none;
  padding: 0.25rem 0.4rem 0.5rem 0.85rem;
  margin-left: 0.55rem;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wiki-tree-links a {
  display: block;
  padding: 0.32rem 0.55rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 5px;
  line-height: 1.35;
  transition: all 0.12s;
}

.wiki-tree-links a:hover {
  background: #ffffff;
  color: var(--medical-blue);
}

.wiki-tree-links a.active {
  background: var(--alert-orange-soft);
  color: #9a3412;
  font-weight: 700;
  border-left: 3px solid var(--alert-orange);
}

/* Orta Sütun: Ana Wiki İçeriği */
.wiki-main {
  min-width: 0;
}

/* Wiki Portal Hero (Ana Sayfa) */
.wiki-portal-hero {
  background: linear-gradient(135deg, #0b192c 0%, #0c4a6e 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-top-flex {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-mascot-showcase {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  max-width: 310px;
  flex-shrink: 0;
}

.hero-mascot-orb {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 55%, #e0f2fe 100%);
  border: 2px solid var(--alert-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  animation: mascotFloat 3.4s ease-in-out infinite;
}

.hero-mascot-orb img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hero-mascot-speech strong {
  display: block;
  font-size: 0.84rem;
  color: #ff9a52;
  margin-bottom: 0.2rem;
}

.hero-mascot-speech span {
  display: block;
  font-size: 0.76rem;
  color: #e2e8f0;
  line-height: 1.35;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.portal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 105, 0, 0.2);
  color: #ff9a52;
  border: 1px solid rgba(255, 105, 0, 0.45);
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  margin-bottom: 0.85rem;
}

.wiki-portal-hero h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.wiki-portal-hero p {
  color: #cbd5e1;
  font-size: 0.94rem;
  max-width: 680px;
  margin-bottom: 1.15rem;
}

.portal-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.portal-quick-tags span {
  font-size: 0.76rem;
  color: #94a3b8;
  margin-right: 0.25rem;
}

.portal-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.28rem 0.65rem;
  border-radius: 99px;
  text-decoration: none;
  transition: all 0.15s;
}

.portal-tag:hover {
  background: var(--alert-orange);
  border-color: var(--alert-orange);
}

.portal-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-stat {
  display: flex;
  flex-direction: column;
}

.portal-stat strong {
  font-size: 1.2rem;
  color: #ffffff;
}

.portal-stat small {
  font-size: 0.74rem;
  color: #94a3b8;
}

/* 4 Adımlı Klinik Yol Haritası */
.wiki-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.section-head-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  color: var(--bg-navy);
}

.step-badge {
  background: var(--medical-blue-soft);
  color: var(--medical-blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}

.section-head-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.pathway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.pathway-card {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--medical-blue);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pathway-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #94a3b8;
}

.pathway-card.orange-top {
  border-top-color: var(--alert-orange);
  background: linear-gradient(180deg, #fffaf5 0%, #fff7ed 100%);
  border-color: #fed7aa;
}

.pathway-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pathway-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b192c 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.22);
}

.pathway-step-circle.orange-circle {
  background: linear-gradient(135deg, #ea580c 0%, #ff6900 100%);
  box-shadow: 0 4px 10px rgba(255, 105, 0, 0.25);
}

.pathway-head-text {
  min-width: 0;
}

.pathway-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--alert-orange);
  letter-spacing: 0.05em;
  margin-bottom: 0.1rem;
}

.pathway-card h3 {
  font-size: 1.08rem;
  color: var(--bg-navy);
  line-height: 1.25;
  margin: 0;
}

.pathway-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.pathway-links {
  list-style: none;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  flex: 1;
}

.pathway-links a {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--bg-navy);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.48rem 0.75rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.15s ease;
}

.pathway-links a:hover {
  border-color: var(--medical-blue);
  color: var(--medical-blue-dark);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
  transform: translateX(2px);
}

.pathway-card.orange-top .pathway-links a:hover {
  border-color: var(--alert-orange);
  color: #9a3412;
  box-shadow: 0 2px 6px rgba(255, 105, 0, 0.12);
}

.plink-arrow {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--alert-orange);
  line-height: 1;
}

.pathway-footer-cta {
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-strong);
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--medical-blue-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
}

.pathway-footer-cta.orange-cta {
  color: #c2410c;
  border-top-color: #fdba74;
}

.pathway-footer-cta:hover {
  color: var(--alert-orange);
  text-decoration: underline;
}

/* Spermiogram Terimler Matrisi (Hızlı Sözlük) */
.terms-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.term-chip-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: all 0.14s ease;
}

.term-chip-card:hover {
  border-color: var(--alert-orange);
  background: var(--alert-orange-soft);
  transform: translateY(-1px);
}

.term-chip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.term-chip-top strong {
  font-size: 0.86rem;
  color: var(--bg-navy);
}

.term-chip-arrow {
  font-size: 0.75rem;
  color: var(--alert-orange);
  font-weight: 700;
}

.term-chip-card span {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* #ff6900 Uyarı ve Bilgi Kutucukları */
.medical-alert-box,
.article-body blockquote {
  background-color: var(--alert-orange-soft);
  border: 1px solid var(--alert-orange-border);
  border-left: 5px solid var(--alert-orange);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.alert-icon,
.alert-mascot-wrap {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid var(--alert-orange);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.16);
}

.alert-mascot-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.alert-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.alert-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--alert-orange);
  letter-spacing: 0.05em;
}

.alert-code {
  font-size: 0.66rem;
  font-family: monospace;
  color: #9a3412;
  background: rgba(255, 105, 0, 0.14);
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
}

.alert-content h3 {
  font-size: 1rem;
  color: #7c2d12;
  margin-bottom: 0.3rem;
}

.alert-content p,
.article-body blockquote p {
  font-size: 0.88rem;
  color: #431407;
  margin: 0;
}

/* Kategori Wiki Modülleri (Fihrist Görünümü) */
.wiki-category-module {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.wiki-cat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--bg-page);
}

.wiki-cat-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wiki-cat-title-group h2 {
  font-size: 1.22rem;
  color: var(--bg-navy);
}

.wiki-cat-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--alert-orange-soft);
  color: var(--alert-orange);
  border: 1px solid var(--alert-orange-border);
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
}

.wiki-cat-all-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--medical-blue);
  text-decoration: none;
}

.wiki-cat-all-link:hover {
  color: var(--alert-orange);
}

.wiki-cat-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Wiki Makale Dizin Listesi */
.wiki-entries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.wiki-entry-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.14s ease;
}

.wiki-entry-row:hover {
  background: #ffffff;
  border-color: var(--medical-blue);
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

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

.entry-row-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--bg-navy);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wiki-entry-row:hover .entry-row-title {
  color: var(--medical-blue);
}

.entry-row-summary {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-row-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.18rem 0.48rem;
  border-radius: 4px;
}

/* Tekil Wiki Makale Sayfası */
.wiki-article-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumb-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--medical-blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.wiki-ref-id {
  font-family: monospace;
  font-size: 0.72rem;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.article-header h1 {
  font-size: 1.65rem;
  line-height: 1.28;
  color: var(--bg-navy);
  margin: 0.4rem 0 0.85rem;
  letter-spacing: -0.02em;
}

.clinical-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1.35rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.73rem;
}

/* Mobil Makale İçi İçindekiler Akordeonu */
.inline-toc-details {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.35rem;
}

.inline-toc-details summary {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--bg-navy);
  cursor: pointer;
}

.inline-toc-list {
  margin-top: 0.65rem;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.84rem;
}

.inline-toc-list a {
  color: var(--medical-blue-dark);
  text-decoration: none;
}

/* Makale Gövde Tipografisi (Masaüstü & Mobil Okunabilirlik Optimizasyonu) */
.article-body {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.82;
  letter-spacing: -0.005em;
  overflow-wrap: break-word;
}

.article-body > p:first-of-type {
  font-size: 1.06rem;
  line-height: 1.85;
  color: #0f172a;
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
  border-left: 3px solid var(--medical-blue);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}

.article-body h1,
.article-body h2 {
  font-size: 1.32rem;
  line-height: 1.35;
  color: var(--bg-navy);
  margin: 2.1rem 0 0.85rem;
  padding: 0.35rem 0 0.45rem 0.75rem;
  border-left: 4px solid var(--alert-orange);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(90deg, rgba(255, 105, 0, 0.05) 0%, transparent 85%);
  border-radius: 3px 0 0 0;
  scroll-margin-top: 92px;
}

.article-body h3,
.article-body h4,
.article-body h5 {
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--medical-blue-dark);
  margin: 1.5rem 0 0.6rem;
  padding-left: 0.55rem;
  border-left: 3px solid var(--medical-blue);
  scroll-margin-top: 92px;
}

.article-body p {
  margin-bottom: 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0.85rem 0 1.35rem;
  padding-left: 1.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding-top: 0.85rem;
  padding-bottom: 0.45rem;
  padding-right: 1rem;
  padding-left: 2.15rem;
}

.article-body li {
  margin-bottom: 0.55rem;
  line-height: 1.72;
}

.article-body li::marker {
  color: var(--alert-orange);
  font-weight: 800;
}

.article-body li strong {
  color: var(--bg-navy);
}

.article-body a,
.wiki-autolink {
  color: var(--medical-blue-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(2, 132, 199, 0.38);
  text-underline-offset: 3px;
  transition: all 0.15s ease;
}

.article-body a:hover,
.wiki-autolink:hover {
  color: var(--alert-orange);
  background: var(--alert-orange-soft);
  text-decoration-color: var(--alert-orange);
  border-radius: 4px;
}

.article-body img,
.article-featured-img {
  max-width: 100%;
  max-height: 440px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  padding: 0.45rem;
  margin: 1.35rem auto;
  display: block;
  box-shadow: var(--shadow-sm);
}

.wiki-video-box {
  margin: 1.35rem auto;
  background: #0f172a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.45rem;
  box-shadow: var(--shadow-md);
  max-width: 680px;
}

.wiki-video-box video {
  width: 100%;
  max-height: 420px;
  display: block;
  border-radius: 8px;
  background: #000000;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.35rem 0;
  font-size: 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
  overflow-x: auto;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.article-body th {
  background: var(--bg-subtle);
  color: var(--bg-navy);
  font-weight: 700;
}

.article-body details {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.article-body summary {
  font-weight: 700;
  color: var(--bg-navy);
  cursor: pointer;
}

/* Google AdSense & Reklam Yerleşim Alanları (CLS & Flexbox Sıkışma Korumalı) */
.ad-slot-container {
  margin: 1.35rem 0;
  padding: 0.65rem;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

.wiki-sidebar-right .ad-slot-container {
  margin: 0;
}

.ad-slot-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

/* Sağ Alt Köşe İnteraktif Maskot Rehber Asistanı */
.mascot-assistant {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 75;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.mascot-fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 2px solid var(--alert-orange);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mascot-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 105, 0, 0.25);
}

.mascot-fab-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.mascot-fab-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--bg-navy);
}

.mascot-popover {
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--alert-orange);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mascot-popover-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.mascot-popover-head div {
  flex: 1;
  line-height: 1.2;
}

.mascot-popover-head strong {
  display: block;
  font-size: 0.85rem;
  color: var(--bg-navy);
}

.mascot-popover-head small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mascot-popover-head button {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
}

.mascot-popover-links {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mascot-popover-links a {
  padding: 0.48rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 6px;
}

.mascot-popover-links a:hover {
  background: var(--alert-orange-soft);
  color: var(--alert-orange);
}

/* Wiki Otomatik İç Bağlantı Stili */
.article-body a,
a.wiki-autolink {
  color: var(--medical-blue-dark);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  font-weight: 600;
}

.article-body a:hover,
a.wiki-autolink:hover {
  color: var(--alert-orange);
  text-decoration-style: solid;
}

/* Önceki / Sonraki Madde Gezinmesi */
.wiki-prev-next {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.prev-next-card {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 1rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color 0.15s;
}

.prev-next-card:hover {
  border-color: var(--alert-orange);
}

.prev-next-card small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--alert-orange);
  text-transform: uppercase;
}

.prev-next-card strong {
  font-size: 0.9rem;
  color: var(--bg-navy);
  margin-top: 2px;
}

/* Sağ Sütun: İçindekiler (TOC) & Klinik Bilgi Kartı (Infobox) */
.wiki-sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  /* Mobilde alt çekmece (sheet) olarak açılır */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80vh;
  background: var(--bg-surface);
  border-top: 2px solid var(--alert-orange);
  border-radius: 16px 16px 0 0;
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  z-index: 90;
  overflow-y: auto;
  transform: translateY(105%);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.wiki-sidebar-right.drawer-open {
  transform: translateY(0);
}

.right-widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.widget-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bg-navy);
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.toc-nav-list a {
  display: block;
  font-size: 0.81rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-left: 2px solid var(--border-color);
  line-height: 1.35;
  transition: all 0.15s;
}

.toc-nav-list a:hover,
.toc-nav-list a.active {
  color: var(--alert-orange);
  border-left-color: var(--alert-orange);
  background: var(--alert-orange-soft);
  font-weight: 700;
}

/* Klinik Künye / WHO Spermiogram Referans Tablosu */
.clinical-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.clinical-kv-table tr {
  border-bottom: 1px solid var(--border-color);
}

.clinical-kv-table tr:last-child {
  border-bottom: none;
}

.clinical-kv-table th {
  text-align: left;
  padding: 0.48rem 0.25rem;
  color: var(--text-muted);
  font-weight: 600;
}

.clinical-kv-table td {
  text-align: right;
  padding: 0.48rem 0.25rem;
  font-weight: 700;
  color: var(--bg-navy);
}

.clinical-kv-table td a {
  color: var(--medical-blue);
  text-decoration: none;
}

/* Mobil Alt Gezinme Çubuğu */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 80;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

.m-nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

.m-nav-item:hover,
.m-nav-item:active {
  color: var(--alert-orange);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  z-index: 85;
}

/* Footer */
.site-footer {
  background: var(--bg-navy);
  color: #cbd5e1;
  padding: 2.75rem 0 1.5rem;
  margin-top: 2rem;
  border-top: 3px solid var(--alert-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand-col p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.85rem;
}

.footer-disclaimer {
  font-size: 0.76rem;
  background: rgba(255, 105, 0, 0.12);
  border-left: 3px solid var(--alert-orange);
  padding: 0.65rem 0.8rem;
  border-radius: 4px;
  color: #fed7aa;
}

.footer-nav-col h4 {
  color: #ffffff;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.84rem;
}

.footer-nav-col a:hover {
  color: var(--alert-orange);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* =========================================================
   TABLET & MASAÜSTÜ GÖRÜNÜMÜ (RESPONSIVE BREAKPOINTS)
   ========================================================= */
@media (min-width: 768px) {
  .topbar-links {
    display: flex;
  }

  .hero-top-flex {
    flex-direction: row;
    align-items: center;
  }

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

  .global-search-wrapper {
    flex: 0 1 420px;
    order: 0;
  }

  .search-shortcut {
    display: inline-block;
  }

  .portal-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .pathway-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .terms-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .wiki-entries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wiki-prev-next {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (min-width: 1080px) {
  body {
    padding-bottom: 0;
  }

  .mascot-assistant {
    bottom: 22px;
    right: 22px;
  }

  .mobile-bottom-nav,
  .drawer-toggle-btn,
  .drawer-close-btn,
  .inline-toc-details {
    display: none !important;
  }

  .header-quick-nav {
    display: flex;
  }

  /* 3 Sütunlu Gerçek Medikal Wiki Düzeni */
  .wiki-workspace {
    grid-template-columns: 280px minmax(0, 1fr) 295px;
    gap: 1.5rem;
  }

  .wiki-sidebar-left {
    position: sticky;
    top: 82px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 100px);
    transform: none !important;
    z-index: 10;
  }

  .wiki-sidebar-right {
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 100px);
    background: transparent;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none !important;
    z-index: 10;
  }

  .pathway-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }

  .terms-matrix-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .wiki-article-card {
    padding: 2.25rem 2.5rem;
  }

  .article-header h1 {
    font-size: 2.05rem;
  }
}

/* =========================================================
   SEO / GEO / YAPAY ZEKA REFERANS & E-E-A-T KUTULARI
   ========================================================= */
.ai-citation-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  border: 1px solid #bae6fd;
  border-left: 5px solid var(--medical-blue);
  border-radius: var(--radius-md);
  padding: 1.05rem 1.25rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.ai-box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ai-box-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--medical-blue-dark);
  background: #e0f2fe;
  padding: 0.16rem 0.55rem;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

.ai-box-ref {
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--alert-orange);
  background: var(--alert-orange-soft);
  padding: 0.12rem 0.5rem;
  border-radius: 5px;
  border: 1px solid var(--alert-orange-border);
}

.ai-citation-summary {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--bg-navy);
  margin: 0 0 0.65rem;
}

.ai-box-keypoints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  padding-top: 0.55rem;
  border-top: 1px dashed #bae6fd;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.ai-box-keypoints a {
  color: var(--medical-blue-dark);
  font-weight: 700;
  text-decoration: none;
}

.ai-box-keypoints a:hover {
  color: var(--alert-orange);
  text-decoration: underline;
}

.wiki-auto-faq-section {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.auto-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auto-faq-item {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.auto-faq-item summary {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bg-navy);
  cursor: pointer;
}

.auto-faq-item p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin: 0.55rem 0 0;
  line-height: 1.68;
}

.eeat-citation-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--medical-blue);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  margin: 1.35rem 0;
  box-shadow: var(--shadow-sm);
}

.eeat-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.eeat-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--medical-blue-dark);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.eeat-top-row h3 {
  font-size: 1rem;
  color: var(--bg-navy);
  margin: 0;
}

.eeat-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.citation-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}

.citation-copy-row code {
  font-size: 0.76rem;
  color: var(--bg-navy);
  flex: 1;
  min-width: 220px;
  word-break: break-word;
}

.copy-cite-btn {
  background: var(--bg-navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.42rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.copy-cite-btn:hover {
  background: var(--alert-orange);
}

.footer-seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.footer-seo-links a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
}

.footer-seo-links a:hover {
  color: var(--alert-orange);
  text-decoration: underline;
}

/* =========================================================
   HESAPLAMA ARAÇLARI AÇILIR MENÜSÜ & ANA SAYFA VİTRİNİ
   ========================================================= */
.header-quick-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .header-quick-nav > a:not(.nav-cms-link) {
    display: none;
  }
}

.nav-tools-dropdown {
  position: relative;
}

.nav-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 119, 182, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-tools-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 119, 182, 0.28);
}

.nav-caret {
  font-size: 0.78rem;
  transition: transform 0.2s ease;
}

.nav-tools-dropdown:hover .nav-caret,
.nav-tools-dropdown.open .nav-caret {
  transform: rotate(180deg);
}

.nav-tools-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 310px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 999;
}

.nav-tools-dropdown:hover .nav-tools-menu,
.nav-tools-dropdown.open .nav-tools-menu {
  display: flex;
}

.nav-tools-menu a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-tools-menu a:hover {
  background: #f0f9ff;
  transform: translateX(3px);
}

.tool-menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nav-tools-menu a strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
}

.nav-tools-menu a small {
  display: block;
  font-size: 0.73rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}

/* Sol Menüde Hesaplama Araçları Akordeonu */
.tools-tree-group {
  border: 1.5px solid #bae6fd !important;
  background: #f0f9ff !important;
  border-radius: 10px;
  margin-bottom: 0.55rem;
}

.tools-tree-summary {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  color: #0369a1 !important;
  font-weight: 800 !important;
}

/* Ana Sayfa 4'lü Hesaplama Araçları Kartları */
.tools-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .tools-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tool-showcase-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.tool-showcase-card:hover {
  border-color: var(--medical-blue);
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.1);
}

.tool-sc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.tool-sc-body {
  flex: 1;
  min-width: 0;
}

.tool-sc-body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.tool-sc-body span {
  display: block;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
}

.tool-sc-arrow {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--medical-blue);
  transition: transform 0.15s ease;
}

.tool-showcase-card:hover .tool-sc-arrow {
  transform: translateX(4px);
  color: var(--alert-orange);
}

/* =========================================================
   ÇEREZ ONAY & GİZLİLİK BİLDİRİM BANDI (KVKK & GDPR)
   ========================================================= */
.azo-cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 820px;
  margin: 0 auto;
  background: rgba(11, 25, 44, 0.95);
  backdrop-filter: blur(10px);
  color: #f8fafc;
  border: 1px solid rgba(255, 105, 0, 0.35);
  border-left: 5px solid var(--alert-orange);
  border-radius: 14px;
  padding: 0.95rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  animation: azoSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes azoSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.azo-cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.azo-cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 260px;
}

.azo-cookie-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.azo-cookie-text p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.azo-cookie-text strong {
  color: #ffffff;
}

.azo-cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.azo-cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.azo-cookie-btn-accept {
  background: linear-gradient(135deg, #ff6900 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.azo-cookie-btn-accept:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff7a1a 0%, #f97316 100%);
}

@media (max-width: 768px) {
  .azo-cookie-banner {
    bottom: 74px; /* Mobil alt gezinme barının hemen üstünde yer alır */
    left: 10px;
    right: 10px;
    padding: 0.85rem 1rem;
  }
  .azo-cookie-actions {
    width: 100%;
  }
  .azo-cookie-btn-accept {
    width: 100%;
    text-align: center;
  }
}
