/* ═══════════════════════════════════════
   MedNot – Klinik Bilgi Bankası
   assets/css/main.css
═══════════════════════════════════════ */

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

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

:root {
  --sb-bg: #1a1f2e;
  --sb-hover: #252b3d;
  --sb-active: #2d3450;
  --sb-border: rgba(255,255,255,0.07);
  --sb-text: #a8b4c8;
  --sb-text-bright: #e0e8f4;
  --sb-width: 265px;
  --topbar-bg: #ffffff;
  --topbar-border: #e8ecf2;
  --body-bg: #f4f6fb;
  --card-bg: #ffffff;
  --card-border: #e8ecf2;
  --accent: #0e6efd;
  --accent-light: #e8f1ff;
  --accent-hover: #0b5cd4;
  --text-primary: #1a2035;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --green: #10b981;
  --green-light: #ecfdf5;
  --orange: #f59e0b;
  --orange-light: #fffbeb;
  --red: #ef4444;
  --red-light: #fef2f2;
  --purple: #8b5cf6;
  --purple-light: #f5f3ff;
  --teal: #0891b2;
  --teal-light: #ecfeff;
  --tag-bg: #f1f5f9;
  --tag-text: #475569;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html, body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════ LAYOUT ═══════════════ */
.mn-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* ═══════════════ SIDEBAR ═══════════════ */
.mn-sidebar {
  width: var(--sb-width);
  min-width: var(--sb-width);
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
  transition: transform 0.3s ease;
}
.mn-sidebar::-webkit-scrollbar { width: 4px; }
.mn-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Logo */
.mn-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--sb-border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mn-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #0e6efd, #6610f2);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: white;
  font-style: italic; letter-spacing: -1px; flex-shrink: 0;
}
.mn-logo-name { font-size: 16px; font-weight: 700; color: var(--sb-text-bright); letter-spacing: -0.3px; }
.mn-logo-name span { color: #60a5fa; }
.mn-logo-sub { font-size: 10px; color: rgba(168,180,200,0.45); margin-top: 1px; }

/* Nav section label */
.mn-nav-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(168,180,200,0.4);
  padding: 16px 20px 5px;
}

/* Nav items */
.mn-nav-item { position: relative; }

.mn-nav-header {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; cursor: pointer;
  color: var(--sb-text); font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
  user-select: none; list-style: none;
  border: none; background: none; width: 100%; text-align: left;
}
.mn-nav-header:hover { background: var(--sb-hover); color: var(--sb-text-bright); }
.mn-nav-header.is-open { background: var(--sb-active); color: var(--sb-text-bright); }

.mn-nav-icon { width: 17px; height: 17px; opacity: 0.7; flex-shrink: 0; }
.mn-nav-chevron { margin-left: auto; width: 13px; height: 13px; opacity: 0.45; transition: transform 0.2s; flex-shrink: 0; }
.mn-nav-header.is-open .mn-nav-chevron { transform: rotate(90deg); }
.mn-nav-count {
  margin-left: auto; background: rgba(255,255,255,0.07);
  color: rgba(168,180,200,0.7); font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 10px; min-width: 20px; text-align: center;
}

.mn-nav-sub { display: none; padding: 2px 0 4px; }
.mn-nav-sub.is-open { display: block; }
.mn-nav-sub a {
  display: block; padding: 7px 20px 7px 48px;
  font-size: 12.5px; color: rgba(168,180,200,0.72);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.mn-nav-sub a::before {
  content: ''; position: absolute; left: 34px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(168,180,200,0.22); transition: background 0.15s;
}
.mn-nav-sub a:hover { background: var(--sb-hover); color: var(--sb-text-bright); }
.mn-nav-sub a:hover::before,
.mn-nav-sub a.current-menu-item::before { background: #0e6efd; }
.mn-nav-sub a.current-menu-item { color: #93c5fd; }

.mn-sb-divider { height: 1px; background: var(--sb-border); margin: 6px 0; }

.mn-sb-footer {
  margin-top: auto;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--sb-border);
}
.mn-sb-disclaimer {
  font-size: 10.5px; color: rgba(168,180,200,0.4);
  line-height: 1.6;
}

/* ═══════════════ MAIN AREA ═══════════════ */
.mn-main {
  margin-left: var(--sb-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ═══════════════ TOPBAR ═══════════════ */
.mn-topbar {
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-border);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}

.mn-hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer; color: var(--text-secondary);
  padding: 6px; border-radius: 6px;
  flex-shrink: 0;
  align-items: center; justify-content: center;
}
.mn-hamburger:hover { background: var(--body-bg); }

.mn-search-wrap { flex: 1; position: relative; }
.mn-search-wrap svg {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  width: 15px; height: 15px;
}
.mn-search-input {
  width: 100%; height: 38px;
  padding: 0 60px 0 40px;
  border: 1.5px solid var(--card-border);
  border-radius: 22px;
  background: var(--body-bg);
  font-family: var(--font); font-size: 13.5px;
  color: var(--text-primary); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mn-search-input::placeholder { color: var(--text-muted); }
.mn-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14,110,253,0.1);
  background: white;
}
.mn-search-kbd {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: var(--card-border); color: var(--text-muted);
  font-size: 10px; padding: 2px 5px; border-radius: 4px;
  font-family: monospace; pointer-events: none;
}

/* ═══════════════ PAGE CONTENT ═══════════════ */
.mn-content { padding: 24px 28px; flex: 1; }

/* ═══════════════ HERO ═══════════════ */
.mn-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e2d4a 55%, #1a3560 100%);
  border-radius: 14px; padding: 44px 40px;
  text-align: center; margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.mn-hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.13; pointer-events: none;
}
.mn-hero-glow-1 { width: 320px; height: 320px; background: #0e6efd; top: -110px; left: -60px; }
.mn-hero-glow-2 { width: 260px; height: 260px; background: #6610f2; bottom: -80px; right: -30px; }

.mn-hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(14,110,253,0.18); border: 1px solid rgba(14,110,253,0.3);
  color: #93c5fd; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 4px 13px; border-radius: 20px; margin-bottom: 16px;
  position: relative;
}
.mn-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3b82f6; animation: mn-pulse 2s infinite;
}
@keyframes mn-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.6; transform:scale(1.3); }
}

.mn-hero-title {
  font-size: 30px; font-weight: 800;
  color: white; margin-bottom: 10px;
  letter-spacing: -0.5px; line-height: 1.25; position: relative;
}
.mn-hero-title span { color: #93c5fd; }
.mn-hero-subtitle {
  font-size: 14.5px; color: rgba(168,180,200,0.85);
  max-width: 520px; margin: 0 auto 22px;
  line-height: 1.65; position: relative;
}

.mn-hero-search-wrap { max-width: 560px; margin: 0 auto; position: relative; }
.mn-hero-search {
  width: 100%; height: 50px;
  padding: 0 52px 0 50px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(10px);
  font-family: var(--font); font-size: 14px;
  color: white; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.mn-hero-search::placeholder { color: rgba(168,180,200,0.6); }
.mn-hero-search:focus {
  border-color: rgba(14,110,253,0.6);
  background: rgba(255,255,255,0.11);
}
.mn-hero-search-icon {
  position: absolute; left: 17px; top: 50%;
  transform: translateY(-50%); color: rgba(168,180,200,0.6); pointer-events: none;
}
.mn-hero-search-btn {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: none; border-radius: 9px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; transition: background 0.15s;
}
.mn-hero-search-btn:hover { background: var(--accent-hover); }

.mn-hero-stats {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 22px; position: relative; flex-wrap: wrap;
}
.mn-hero-stat { text-align: center; }
.mn-hero-stat-num { font-size: 22px; font-weight: 800; color: white; }
.mn-hero-stat-label { font-size: 11.5px; color: rgba(168,180,200,0.6); margin-top: 2px; }
.mn-hero-stat-div { width: 1px; background: rgba(255,255,255,0.1); align-self: stretch; }

/* ═══════════════ SECTION HEADER ═══════════════ */
.mn-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.mn-section-title { font-size: 15.5px; font-weight: 700; color: var(--text-primary); }
.mn-section-link {
  font-size: 13px; color: var(--accent); text-decoration: none;
  font-weight: 500; display: flex; align-items: center; gap: 3px;
}
.mn-section-link:hover { text-decoration: underline; }

/* ═══════════════ CATEGORY GRID ═══════════════ */
.mn-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px; margin-bottom: 26px;
}

.mn-cat-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px; padding: 18px;
  text-decoration: none; display: block;
  transition: all 0.2s; position: relative; overflow: hidden;
}
.mn-cat-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-radius: 12px 12px 0 0; opacity: 0; transition: opacity 0.2s;
}
.mn-cat-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mn-cat-card:hover::before { opacity: 1; }

.mn-cat-kardio::before   { background: linear-gradient(90deg,#ef4444,#f87171); }
.mn-cat-noroloji::before { background: linear-gradient(90deg,#8b5cf6,#a78bfa); }
.mn-cat-dahiliye::before { background: linear-gradient(90deg,#0e6efd,#60a5fa); }
.mn-cat-acil::before     { background: linear-gradient(90deg,#f59e0b,#fbbf24); }
.mn-cat-ilac::before     { background: linear-gradient(90deg,#10b981,#34d399); }
.mn-cat-protokol::before { background: linear-gradient(90deg,#0891b2,#22d3ee); }

.mn-cat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 11px; font-size: 18px;
}
.mn-cat-kardio   .mn-cat-icon { background: var(--red-light); }
.mn-cat-noroloji .mn-cat-icon { background: var(--purple-light); }
.mn-cat-dahiliye .mn-cat-icon { background: var(--accent-light); }
.mn-cat-acil     .mn-cat-icon { background: var(--orange-light); }
.mn-cat-ilac     .mn-cat-icon { background: var(--green-light); }
.mn-cat-protokol .mn-cat-icon { background: var(--teal-light); }

.mn-cat-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.mn-cat-desc { font-size: 12px; color: var(--text-secondary); margin-bottom: 11px; line-height: 1.5; }
.mn-cat-count { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.mn-cat-count::before { content:''; width:4px; height:4px; border-radius:50%; background:var(--text-muted); display:inline-block; }

/* ═══════════════ TWO COL ═══════════════ */
.mn-two-col {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 18px; margin-bottom: 22px;
}

/* ═══════════════ ARTICLE LIST ═══════════════ */
.mn-article-list {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px; overflow: hidden;
}
.mn-list-header {
  padding: 13px 18px; border-bottom: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: space-between;
}
.mn-list-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-primary); display: flex; align-items: center; gap: 8px;
}
.mn-count-badge {
  background: var(--body-bg); border: 1px solid var(--card-border);
  color: var(--text-secondary); font-size: 11px; font-weight: 600;
  padding: 1px 8px; border-radius: 20px;
}

.mn-article-row {
  display: flex; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid #f1f5f9;
  text-decoration: none; transition: background 0.15s;
  gap: 10px;
  animation: mn-fadeRow 0.3s ease both;
}
.mn-article-row:last-child { border-bottom: none; }
.mn-article-row:hover { background: #f8faff; }

@keyframes mn-fadeRow {
  from { opacity:0; transform:translateY(6px); }
  to   { opacity:1; transform:translateY(0); }
}
.mn-article-row:nth-child(1){animation-delay:.03s}
.mn-article-row:nth-child(2){animation-delay:.07s}
.mn-article-row:nth-child(3){animation-delay:.11s}
.mn-article-row:nth-child(4){animation-delay:.15s}
.mn-article-row:nth-child(5){animation-delay:.19s}
.mn-article-row:nth-child(6){animation-delay:.23s}
.mn-article-row:nth-child(7){animation-delay:.27s}

.mn-badge {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0; letter-spacing: 0.02em;
}
.mn-badge-red    { background:var(--red-light);    color:#dc2626; }
.mn-badge-purple { background:var(--purple-light); color:#7c3aed; }
.mn-badge-blue   { background:var(--accent-light); color:#1d4ed8; }
.mn-badge-orange { background:var(--orange-light); color:#d97706; }
.mn-badge-green  { background:var(--green-light);  color:#059669; }
.mn-badge-teal   { background:var(--teal-light);   color:#0e7490; }

.mn-row-title {
  font-size: 13px; font-weight: 500;
  color: var(--text-primary); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mn-article-row:hover .mn-row-title { color: var(--accent); }

.mn-row-meta {
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.mn-row-date { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.mn-row-views {
  font-size: 11.5px; color: var(--text-muted);
  display: flex; align-items: center; gap: 3px; white-space: nowrap;
}
.mn-row-arrow { color: var(--text-muted); transition: transform 0.15s, color 0.15s; flex-shrink: 0; }
.mn-article-row:hover .mn-row-arrow { transform: translateX(3px); color: var(--accent); }

/* ═══════════════ CARD ═══════════════ */
.mn-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px; overflow: hidden;
}
.mn-card-header {
  padding: 12px 16px; border-bottom: 1px solid var(--card-border);
  display: flex; align-items: center; gap: 8px;
}
.mn-card-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.mn-card-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }

.mn-popular-item {
  display: flex; align-items: center;
  padding: 10px 16px; gap: 10px;
  cursor: pointer; transition: background 0.15s;
  text-decoration: none;
}
.mn-popular-item:hover { background: var(--body-bg); }
.mn-popular-num { font-size: 12px; font-weight: 800; color: var(--text-muted); width: 18px; flex-shrink: 0; text-align: center; }
.mn-popular-title { font-size: 12.5px; color: var(--text-primary); flex: 1; line-height: 1.4; }
.mn-popular-item:hover .mn-popular-title { color: var(--accent); }
.mn-popular-views { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; flex-shrink: 0; }

.mn-tags-wrap { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.mn-tag {
  background: var(--tag-bg); color: var(--tag-text);
  font-size: 11.5px; font-weight: 500;
  padding: 4px 10px; border-radius: 20px;
  text-decoration: none; border: 1px solid transparent;
  transition: all 0.15s; cursor: pointer; display: inline-block;
}
.mn-tag:hover { background: var(--accent-light); color: var(--accent); border-color: rgba(14,110,253,0.2); }

/* ═══════════════ DISCLAIMER ═══════════════ */
.mn-disclaimer {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 10px; padding: 14px 18px;
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 4px;
}
.mn-disclaimer-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.mn-disclaimer-title { font-size: 12.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.mn-disclaimer-text { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════ SINGLE POST / ARTICLE PAGE ═══════════════ */
.mn-single-wrap { max-width: 100%; }

.mn-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 18px; font-size: 12.5px;
  color: var(--text-muted); flex-wrap: wrap;
}
.mn-breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }
.mn-breadcrumb a:hover { text-decoration: underline; }
.mn-breadcrumb-sep { color: var(--text-muted); }

.mn-article-layout {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 20px; align-items: start;
}

.mn-article-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 12px; overflow: hidden;
}
.mn-article-card-header { padding: 22px 26px 18px; border-bottom: 1px solid var(--card-border); }
.mn-article-cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mn-article-updated { font-size: 11.5px; color: var(--text-muted); }
.mn-article-h1 {
  font-size: 22px; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.4px;
  margin-bottom: 10px; line-height: 1.3;
}
.mn-article-byline {
  display: flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap;
}
.mn-byline-item { display: flex; align-items: center; gap: 5px; }

/* Article body */
.mn-article-body { padding: 24px 26px; font-size: 14px; line-height: 1.8; color: #334155; }
.mn-article-body h2 {
  font-size: 17px; font-weight: 700; color: var(--text-primary);
  margin: 26px 0 10px; padding-bottom: 7px; border-bottom: 1px solid var(--card-border);
}
.mn-article-body h3 { font-size: 14.5px; font-weight: 700; color: var(--text-primary); margin: 18px 0 7px; }
.mn-article-body p { margin-bottom: 13px; }
.mn-article-body ul, .mn-article-body ol { padding-left: 20px; margin-bottom: 13px; }
.mn-article-body li { margin-bottom: 5px; }
.mn-article-body strong { color: var(--text-primary); }
.mn-article-body a { color: var(--accent); }

.mn-callout {
  border-radius: 0 8px 8px 0; padding: 11px 15px; margin: 14px 0;
  font-size: 13px; border-left: 3px solid;
}
.mn-callout-blue   { background: var(--accent-light); border-color: var(--accent); color: #1e3a8a; }
.mn-callout-orange { background: var(--orange-light); border-color: var(--orange); color: #78350f; }
.mn-callout-red    { background: var(--red-light);    border-color: var(--red);    color: #7f1d1d; }
.mn-callout-green  { background: var(--green-light);  border-color: var(--green);  color: #064e3b; }

.mn-article-body code {
  background: var(--body-bg); border: 1px solid var(--card-border);
  border-radius: 4px; padding: 1px 6px; font-size: 12.5px;
  font-family: 'SF Mono','Fira Code',monospace; color: #e11d48;
}
.mn-article-body pre {
  background: #0f172a; border-radius: 8px;
  padding: 14px 18px; margin: 14px 0; overflow-x: auto;
}
.mn-article-body pre code { background:transparent; border:none; color:#93c5fd; font-size:12.5px; padding:0; }
.mn-article-body table { width:100%; border-collapse:collapse; margin:14px 0; font-size:13px; }
.mn-article-body th {
  background:var(--body-bg); padding:8px 12px; text-align:left;
  font-weight:700; border:1px solid var(--card-border);
  color:var(--text-secondary); font-size:11.5px;
  text-transform:uppercase; letter-spacing:.04em;
}
.mn-article-body td { padding:8px 12px; border:1px solid var(--card-border); }
.mn-article-body tr:nth-child(even) td { background:#fafbff; }

.mn-article-footer {
  padding: 15px 26px; border-top: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.mn-helpful-row { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--text-secondary); flex-wrap:wrap; }
.mn-helpful-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:5px 12px; border:1.5px solid var(--card-border);
  border-radius:20px; font-size:12px; font-weight:500;
  cursor:pointer; background:transparent; font-family:var(--font);
  transition:all .15s; color:var(--text-secondary);
}
.mn-helpful-btn:hover        { border-color:var(--accent); color:var(--accent); background:var(--accent-light); }
.mn-helpful-btn.mn-yes:hover { border-color:var(--green); color:var(--green); background:var(--green-light); }
.mn-helpful-btn.mn-no:hover  { border-color:var(--red);   color:var(--red);   background:var(--red-light); }
.mn-article-ref { font-size:11.5px; color:var(--text-muted); }

/* Article sidebar */
.mn-article-sidebar { display:flex; flex-direction:column; gap:12px; }
.mn-toc-list a {
  display:block; padding:7px 16px; font-size:12px;
  color:var(--text-secondary); text-decoration:none;
  border-left:2px solid transparent; transition:all .15s;
}
.mn-toc-list a:hover,
.mn-toc-list a.mn-toc-active {
  color:var(--accent); border-left-color:var(--accent); background:var(--accent-light);
}
.mn-toc-list a.mn-toc-active { font-weight:600; }

.mn-related-item {
  display:flex; align-items:flex-start; gap:9px; padding:9px 16px;
  transition:background .15s; text-decoration:none;
}
.mn-related-item:hover { background:var(--body-bg); }
.mn-related-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); flex-shrink:0; margin-top:5px; }
.mn-related-title { font-size:12px; color:var(--text-secondary); line-height:1.5; transition:color .15s; }
.mn-related-item:hover .mn-related-title { color:var(--accent); }

.mn-guide-card {
  padding:14px 16px;
}
.mn-guide-emoji { font-size:18px; margin-bottom:7px; }
.mn-guide-title { font-size:13px; font-weight:700; color:var(--text-primary); margin-bottom:4px; }
.mn-guide-text  { font-size:12px; color:var(--text-secondary); margin-bottom:11px; line-height:1.5; }
.mn-guide-btn {
  display:block; text-align:center;
  background:var(--accent); color:white;
  border-radius:7px; padding:7px 12px;
  font-size:12.5px; font-weight:600;
  text-decoration:none; transition:background .15s;
}
.mn-guide-btn:hover { background:var(--accent-hover); color:white; }

/* ═══════════════ OVERLAY ═══════════════ */
.mn-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 190;
}
.mn-overlay.is-active { display: block; }

/* ═══════════════ WORDPRESS OVERRIDES ═══════════════ */
.wp-site-blocks,
.entry-content,
body.page .wp-block-post-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.admin-bar .mn-topbar { top: 32px; }
body.admin-bar .mn-sidebar { top: 32px; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1100px) {
  .mn-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .mn-article-layout { grid-template-columns: 1fr; }
  .mn-article-sidebar { display: none; }
}

@media (max-width: 768px) {
  /* Sidebar off-canvas */
  .mn-sidebar {
    transform: translateX(-100%);
    top: 0; /* full height on mobile */
  }
  .mn-sidebar.is-open { transform: translateX(0); }

  /* Main no offset */
  .mn-main { margin-left: 0; }

  /* Show hamburger */
  .mn-hamburger { display: flex; }

  /* Hide kbd shortcut on mobile */
  .mn-search-kbd { display: none; }

  /* Content padding */
  .mn-content { padding: 14px 16px; }

  /* Hero */
  .mn-hero { padding: 28px 18px; }
  .mn-hero-title { font-size: 22px; }
  .mn-hero-subtitle { font-size: 13.5px; }
  .mn-hero-stats { gap: 16px; }
  .mn-hero-stat-num { font-size: 18px; }

  /* Categories 2 col */
  .mn-cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Topbar */
  .mn-topbar { padding: 0 14px; gap: 10px; }

  /* Admin bar */
  body.admin-bar .mn-topbar { top: 46px; }
  body.admin-bar .mn-sidebar { top: 46px; }
}

@media (max-width: 540px) {
  /* Single column categories */
  .mn-cat-grid { grid-template-columns: 1fr; }

  /* Hide meta on article rows */
  .mn-row-meta { display: none; }

  /* Topbar search full width */
  .mn-topbar { padding: 0 12px; }
  .mn-search-input { font-size: 13px; }

  /* Hero */
  .mn-hero { padding: 22px 14px; }
  .mn-hero-title { font-size: 20px; }
  .mn-hero-stats { gap: 12px; }
  .mn-hero-stat-num { font-size: 16px; }
  .mn-hero-stat-div { display: none; }

  /* Article */
  .mn-article-card-header { padding: 16px 16px 14px; }
  .mn-article-h1 { font-size: 18px; }
  .mn-article-body { padding: 16px; }
  .mn-article-footer { padding: 12px 16px; }
  .mn-article-body table { font-size: 12px; }
  .mn-article-body th, .mn-article-body td { padding: 6px 8px; }
}

@media (max-width: 380px) {
  .mn-hero-badge { font-size: 10.5px; }
  .mn-hero-title { font-size: 18px; }
}

/* ═══════════════ CATEGORY / ARCHIVE HEADER ═══════════════ */
.mn-archive-header {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: 12px; padding: 20px 22px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.mn-archive-icon { font-size: 28px; flex-shrink: 0; }
.mn-archive-title { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.mn-archive-desc  { font-size: 13px; color: var(--text-secondary); margin-top: 3px; }

/* ═══════════════ SEARCH RESULTS ═══════════════ */
.mn-search-header {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 16px;
}
.mn-search-header span { color: var(--accent); }
.mn-no-results {
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: 12px; padding: 40px 24px; text-align: center;
}
.mn-no-results-icon { font-size: 36px; margin-bottom: 12px; }
.mn-no-results-text { font-size: 14px; color: var(--text-secondary); }

/* ═══════════════ UTILITY ═══════════════ */
.mn-mb-0  { margin-bottom: 0 !important; }
.mn-mb-14 { margin-bottom: 14px !important; }
.mn-mt-14 { margin-top: 14px !important; }
