/* ============================================================
   ModHub — Ortak CSS Sistemi
   Tüm sayfalar ve widget'lar bu dosyayı kullanır
   ============================================================ */

/* ─── VARIABLES ─────────────────────────────────────────── */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --text: #1e293b;
  --text-2: #64748b;
  --text-3: #94a3b8;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --transition: all .2s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.mh-nav {
  background: var(--secondary);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.mh-nav-logo {
  color: white;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -.3px;
}
.mh-nav-logo .acc { color: var(--accent); }
.mh-nav-links { display: flex; gap: 4px; }
.mh-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
}
.mh-nav-links a:hover,
.mh-nav-links a.active { color: white; background: rgba(255,255,255,.09); text-decoration: none; }
.mh-nav-actions { display: flex; gap: 8px; align-items: center; }
.mh-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.mh-nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #94a3b8; border-radius: 2px; transition: var(--transition);
}

/* Mobile nav drawer */
.mh-nav-drawer {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--secondary);
  border-top: 1px solid #1e293b;
  padding: 16px;
  z-index: 199;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.mh-nav-drawer.open { display: flex; }
.mh-nav-drawer a {
  color: #94a3b8; padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: 14px;
  text-decoration: none; transition: var(--transition);
}
.mh-nav-drawer a:hover { color: white; background: rgba(255,255,255,.08); }
.mh-nav-drawer .drawer-actions {
  display: flex; gap: 8px; padding: 12px 0 4px;
  border-top: 1px solid #1e293b; margin-top: 8px;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: var(--transition);
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.35); }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent; color: #94a3b8;
  border-color: #334155;
}
.btn-ghost:hover { border-color: #475569; color: white; background: rgba(255,255,255,.05); }
.btn-danger { background: var(--danger); color: white; border-color: #dc2626; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: white; border-color: #059669; }
.btn-lg { padding: 13px 28px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-download {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border: none; padding: 13px 24px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  cursor: pointer; width: 100%; display: flex;
  align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
  transition: var(--transition); text-decoration: none;
}
.btn-download:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); }
.btn-download .dl-size { font-size: 12px; opacity: .8; font-weight: 400; }
.btn-follow {
  width: 100%; padding: 9px; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--transition);
  color: var(--text);
}
.btn-follow:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-donate {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; background: var(--warning-light);
  border: 1px solid var(--accent); color: #92400e;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.btn-donate:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ─── CARDS ──────────────────────────────────────────────── */
.mh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mh-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
}
.mh-card-body { padding: 20px; }
.mh-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
  white-space: nowrap;
}
.badge-cms  { background: var(--primary-light); color: var(--primary-dark); }
.badge-cat  { background: var(--success-light); color: #065f46; }
.badge-new  { background: var(--warning-light); color: #92400e; }
.badge-hot  { background: var(--danger-light); color: #991b1b; }
.badge-pro  { background: linear-gradient(135deg, var(--purple), #4f46e5); color: white; }
.badge-free { background: var(--success-light); color: #065f46; }
.badge-default { background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }

/* ─── BREADCRUMB ─────────────────────────────────────────── */
.mh-breadcrumb-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 11px 32px;
}
.mh-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
  max-width: 1200px; margin: 0 auto;
  flex-wrap: wrap;
}
.mh-breadcrumb a { color: var(--primary); }
.mh-breadcrumb .sep { color: var(--text-3); }

/* ─── CONTAINER & LAYOUT ─────────────────────────────────── */
.mh-container { max-width: 1200px; margin: 0 auto; padding: 28px 32px; }
.mh-layout-2col { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.mh-layout-detail { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

/* ─── STARS / RATING ─────────────────────────────────────── */
.mh-stars { display: inline-flex; gap: 2px; }
.mh-star { color: #d1d5db; font-size: 16px; }
.mh-star.on { color: var(--accent); }
.mh-rating-row { display: flex; align-items: center; gap: 8px; }
.mh-rating-val { font-size: 13px; color: var(--text-2); }
.mh-rating-count { font-size: 12px; color: var(--text-3); }

/* ─── META GRID (detail page) ────────────────────────────── */
.mh-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.mh-meta-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.mh-meta-item:nth-child(even) { border-right: none; }
.mh-meta-item:nth-last-child(-n+2) { border-bottom: none; }
.mh-meta-icon { font-size: 15px; width: 20px; text-align: center; }
.mh-meta-label { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.mh-meta-value { font-size: 13px; font-weight: 600; color: var(--text); }
.mh-meta-value a { color: var(--primary); }

/* ─── STATS BAR ──────────────────────────────────────────── */
.mh-stats-bar {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mh-stat-box {
  flex: 1; padding: 15px 12px; text-align: center;
  border-right: 1px solid var(--border);
}
.mh-stat-box:last-child { border-right: none; }
.mh-stat-val { font-size: 20px; font-weight: 800; color: var(--text); }
.mh-stat-lbl { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }

/* ─── TABS ───────────────────────────────────────────────── */
.mh-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  padding: 0 24px; overflow-x: auto; gap: 0;
  scrollbar-width: none;
}
.mh-tabs::-webkit-scrollbar { display: none; }
.mh-tab {
  padding: 13px 18px; font-size: 13px; font-weight: 500;
  color: var(--text-2); border-bottom: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  margin-bottom: -1px; white-space: nowrap;
}
.mh-tab:hover { color: var(--text); }
.mh-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }
.mh-tab-content { padding: 24px; }
.mh-tab-pane { display: none; }
.mh-tab-pane.active { display: block; }

/* ─── FORM ELEMENTS ──────────────────────────────────────── */
.mh-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; transition: var(--transition);
  background: var(--surface); color: var(--text);
}
.mh-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.mh-select {
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px;
  outline: none; background: var(--surface); color: var(--text);
  cursor: pointer; transition: var(--transition);
}
.mh-select:focus { border-color: var(--primary); }
.mh-textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none; resize: vertical;
  min-height: 90px; transition: var(--transition);
  background: var(--surface); color: var(--text); font-family: inherit;
}
.mh-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.mh-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.mh-form-group { margin-bottom: 16px; }
.mh-form-row { display: flex; gap: 12px; }
.mh-form-row > * { flex: 1; }

/* ─── TAGS ───────────────────────────────────────────────── */
.mh-tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mh-tag {
  padding: 5px 12px; background: var(--surface-3);
  border: 1px solid var(--border); border-radius: 20px;
  font-size: 12px; color: var(--text-2);
  cursor: pointer; transition: var(--transition);
}
.mh-tag:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.mh-tag.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ─── FILTER SIDEBAR ─────────────────────────────────────── */
.mh-filter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 14px;
}
.mh-filter-header {
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none;
}
.mh-filter-toggle { color: var(--text-3); font-size: 11px; transition: transform .2s; }
.mh-filter-body { padding: 14px 18px; }
.mh-filter-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; cursor: pointer;
}
.mh-fo-left { display: flex; align-items: center; gap: 8px; }
.mh-fo-check {
  width: 16px; height: 16px; border: 2px solid var(--border);
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; transition: var(--transition);
  font-size: 10px; color: white;
}
.mh-fo-check.checked { background: var(--primary); border-color: var(--primary); }
.mh-fo-label { font-size: 13px; color: var(--text-2); }
.mh-fo-count {
  font-size: 11px; color: var(--text-3);
  background: var(--surface-3); padding: 1px 7px; border-radius: 10px;
}
.mh-filter-option:hover .mh-fo-label { color: var(--primary); }

/* ─── MODULE CARD (list page) ────────────────────────────── */
.mh-module-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.mh-module-grid.list-view { grid-template-columns: 1fr; }

.mh-module-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; transition: var(--transition);
  cursor: pointer; display: flex; flex-direction: column;
}
.mh-module-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 20px rgba(37,99,235,.12);
  transform: translateY(-2px);
}
.mc-thumb {
  height: 140px; background: linear-gradient(135deg,#1e293b,#334155);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; flex-shrink: 0;
}
.mc-badges-tl { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.mc-badges-tr { position: absolute; top: 10px; right: 10px; }
.mc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.mc-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.mc-desc {
  font-size: 13px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mc-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.mc-tag { padding: 2px 8px; background: var(--surface-3); border-radius: 10px; font-size: 11px; color: var(--text-3); }
.mc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mc-downloads { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.mc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border);
}
.mc-author { display: flex; align-items: center; gap: 7px; }
.mc-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white; flex-shrink: 0;
}
.mc-author-name { font-size: 12px; color: var(--text-2); }
.mc-date { font-size: 11px; color: var(--text-3); }

/* List view override */
.list-view .mh-module-card { flex-direction: row; }
.list-view .mc-thumb { width: 180px; height: auto; min-height: 120px; flex-shrink: 0; }
.list-view .mc-body { padding: 16px; }
.list-view .mc-desc { -webkit-line-clamp: 3; }

/* ─── PAGINATION ─────────────────────────────────────────── */
.mh-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.mh-page-btn {
  min-width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface);
  font-size: 14px; cursor: pointer; transition: var(--transition);
  color: var(--text-2); padding: 0 10px;
}
.mh-page-btn:hover { border-color: var(--primary); color: var(--primary); }
.mh-page-btn.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 700; }
.mh-page-btn.dots { border: none; background: none; cursor: default; }

/* ─── INFO LIST (sidebar) ────────────────────────────────── */
.mh-info-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mh-info-list li { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.mh-info-list .il-label { color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.mh-info-list .il-value { font-weight: 600; color: var(--text); font-size: 13px; }
.mh-info-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

/* ─── AUTHOR CARD ────────────────────────────────────────── */
.mh-author-profile { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mh-author-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: white; flex-shrink: 0;
}
.mh-author-name { font-weight: 700; font-size: 15px; }
.mh-author-role { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mh-author-stats {
  display: flex; text-align: center; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.mh-as { flex: 1; padding: 12px 8px; border-right: 1px solid var(--border); }
.mh-as:last-child { border-right: none; }
.mh-as-val { font-size: 18px; font-weight: 800; color: var(--text); }
.mh-as-lbl { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: .4px; }

/* ─── CODE BLOCK ─────────────────────────────────────────── */
.mh-code {
  background: #0f172a; color: #e2e8f0;
  padding: 18px 20px; border-radius: 8px;
  font-family: 'JetBrains Mono','Fira Code','Consolas',monospace;
  font-size: 13px; line-height: 1.7;
  overflow-x: auto; position: relative;
}
.mh-code .cm { color: #475569; }
.mh-code .kw { color: #93c5fd; }
.mh-code .st { color: #86efac; }
.mh-code .fn { color: #fbbf24; }
.mh-copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.08); color: #94a3b8;
  border: none; padding: 4px 10px; border-radius: var(--radius-sm);
  font-size: 12px; cursor: pointer; transition: var(--transition);
}
.mh-copy-btn:hover { background: rgba(255,255,255,.15); color: white; }

/* ─── COMPAT TABLE ───────────────────────────────────────── */
.mh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mh-table th {
  text-align: left; padding: 10px 14px;
  background: var(--surface-3);
  font-size: 11px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-2);
}
.mh-table td { padding: 10px 14px; border-top: 1px solid var(--border); }
.mh-table tr:hover td { background: var(--surface-2); }
.mh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.mh-dot-green { background: var(--success); }
.mh-dot-yellow { background: var(--accent); }
.mh-dot-red { background: var(--danger); }

/* ─── HERO BANNER ────────────────────────────────────────── */
.mh-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e293b 100%);
  padding: 52px 32px; text-align: center; position: relative; overflow: hidden;
}
.mh-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.mh-hero-title { font-size: 36px; font-weight: 800; color: white; margin-bottom: 10px; position: relative; }
.mh-hero-title span { color: var(--accent); }
.mh-hero-sub { font-size: 16px; color: #94a3b8; margin-bottom: 28px; position: relative; }
.mh-hero-search { display: flex; max-width: 560px; margin: 0 auto 24px; position: relative; }
.mh-hero-search input {
  flex: 1; padding: 14px 20px; border: none;
  border-radius: 10px 0 0 10px; font-size: 15px; outline: none;
  background: rgba(255,255,255,.95);
}
.mh-hero-search button {
  background: var(--primary); color: white; border: none;
  padding: 14px 24px; border-radius: 0 10px 10px 0;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.mh-hero-search button:hover { background: var(--primary-dark); }
.mh-hero-stats { display: flex; justify-content: center; gap: 32px; position: relative; flex-wrap: wrap; }
.mh-hero-stat .hv { font-size: 22px; font-weight: 800; color: white; }
.mh-hero-stat .hl { font-size: 12px; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }

/* ─── TOOLBAR (list page) ────────────────────────────────── */
.mh-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.mh-result-info { font-size: 14px; color: var(--text-2); }
.mh-result-info strong { color: var(--text); }
.mh-toolbar-right { display: flex; align-items: center; gap: 10px; }
.mh-view-btns {
  display: flex; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.mh-view-btn {
  padding: 8px 12px; background: var(--surface); border: none;
  cursor: pointer; color: var(--text-3); font-size: 14px; transition: var(--transition);
}
.mh-view-btn.active, .mh-view-btn:hover { background: var(--surface-3); color: var(--primary); }

/* ─── ACTIVE FILTER CHIPS ────────────────────────────────── */
.mh-active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mh-af-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.mh-af-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: var(--primary-light);
  border: 1px solid #93c5fd; border-radius: 20px;
  font-size: 12px; color: var(--primary); cursor: pointer;
}
.mh-af-chip:hover { background: #bfdbfe; }
.mh-af-clear { font-size: 12px; color: var(--danger); cursor: pointer; text-decoration: underline; }

/* ─── FEATURED BANNER ────────────────────────────────────── */
.mh-featured {
  background: linear-gradient(135deg, #1e3a5f, #1e293b);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius); padding: 20px 24px;
  margin-bottom: 16px; display: flex; align-items: center; gap: 16px;
}
.mh-featured-icon { font-size: 40px; flex-shrink: 0; }
.mh-featured-title { color: white; font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.mh-featured-sub { color: #94a3b8; font-size: 13px; }
.mh-featured-btn {
  margin-left: auto; padding: 9px 20px; background: var(--primary);
  color: white; border: none; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: var(--transition);
}
.mh-featured-btn:hover { background: var(--primary-dark); }

/* ─── COMMENT ────────────────────────────────────────────── */
.mh-comment {
  display: flex; gap: 12px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px;
}
.mh-comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: white;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}
.mh-comment-header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.mh-comment-author { font-weight: 700; font-size: 14px; }
.mh-comment-time { font-size: 12px; color: var(--text-3); }
.mh-comment-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* ─── RELATED ITEMS ──────────────────────────────────────── */
.mh-related-item {
  display: flex; gap: 12px; align-items: center;
  cursor: pointer; padding: 8px; border-radius: 8px; transition: var(--transition);
}
.mh-related-item:hover { background: var(--surface-2); }
.mh-related-item:hover .mh-related-name { color: var(--primary); }
.mh-related-thumb {
  width: 52px; height: 36px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 1px solid var(--border);
}
.mh-related-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.mh-related-meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ─── VERSION BADGE ──────────────────────────────────────── */
.mh-version-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; padding: 4px 12px; border-radius: 20px;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}

/* ─── FEATURE GRID ───────────────────────────────────────── */
.mh-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.mh-feature-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px;
}

/* ─── CHANGELOG ──────────────────────────────────────────── */
.mh-changelog-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mh-changelog-item:last-child { border-bottom: none; }
.mh-cl-version {
  min-width: 68px; padding: 4px 10px; border-radius: 6px;
  background: var(--surface-3); font-size: 12px; font-weight: 700;
  text-align: center; height: fit-content; color: var(--text);
}
.mh-cl-version.latest { background: var(--primary-light); color: var(--primary); }
.mh-cl-date { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.mh-cl-notes { font-size: 14px; color: var(--text-2); padding-left: 16px; }
.mh-cl-notes li { margin: 4px 0; }

/* ─── SECTION TITLE ──────────────────────────────────────── */
.mh-section-title {
  font-size: 15px; font-weight: 700; margin: 20px 0 14px;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.mh-section-title::before {
  content: ''; display: inline-block; width: 3px; height: 16px;
  background: var(--primary); border-radius: 2px;
}

/* ─── INSTALL STEPS ──────────────────────────────────────── */
.mh-step { display: flex; gap: 14px; align-items: flex-start; }
.mh-step-num {
  min-width: 32px; height: 32px; background: var(--primary);
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.mh-step-title { font-size: 14px; font-weight: 700; }
.mh-step-desc { font-size: 13px; color: var(--text-2); margin-top: 4px; }
code {
  background: var(--surface-3); padding: 2px 6px;
  border-radius: 4px; font-size: 12px;
  font-family: 'JetBrains Mono','Fira Code',monospace;
}

/* ─── PREVIEW GALLERY ────────────────────────────────────── */
.mh-preview-gallery { width: 290px; flex-shrink: 0; }
.mh-preview-main {
  width: 100%; aspect-ratio: 16/10; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px; color: #94a3b8;
}
.mh-preview-main .big-icon { font-size: 52px; }
.mh-preview-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.mh-preview-thumb {
  flex: 1; aspect-ratio: 16/10; border-radius: 6px;
  border: 2px solid transparent; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; transition: border-color .2s;
}
.mh-preview-thumb.active, .mh-preview-thumb:hover { border-color: var(--primary); }

/* ─── FOOTER ─────────────────────────────────────────────── */
.mh-footer {
  background: var(--secondary); color: #94a3b8;
  padding: 44px 32px 24px; margin-top: 8px;
}
.mh-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; max-width: 1200px; margin: 0 auto 32px;
}
.mh-footer-logo { color: white; font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.mh-footer-logo .acc { color: var(--accent); }
.mh-footer-brand p { font-size: 13px; line-height: 1.8; }
.mh-footer-col h4 {
  color: white; font-size: 11px; font-weight: 700;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: .6px;
}
.mh-footer-col a { display: block; color: #64748b; text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.mh-footer-col a:hover { color: #94a3b8; }
.mh-footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; font-size: 12px; flex-wrap: wrap; gap: 8px;
}

/* ─── UTILITY ────────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-muted { color: var(--text-2); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }
.w-100 { width: 100%; }
.flex-1 { flex: 1; }

/* ─── MOBILE RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .mh-layout-detail { grid-template-columns: 1fr 300px; }
}

@media (max-width: 900px) {
  .mh-nav-links { display: none; }
  .mh-nav-hamburger { display: flex; }
  .mh-layout-2col { grid-template-columns: 1fr; }
  .mh-layout-detail { grid-template-columns: 1fr; }
  .mh-container { padding: 20px 16px; }
  .mh-breadcrumb-bar { padding: 10px 16px; }
  .mh-nav { padding: 0 16px; }
  .mh-module-grid { grid-template-columns: 1fr; }
  .mh-feature-grid { grid-template-columns: 1fr; }
  .mh-footer-grid { grid-template-columns: 1fr 1fr; }
  .mh-hero { padding: 36px 16px; }
  .mh-hero-title { font-size: 26px; }
  .mh-hero-stats { gap: 16px; }
  .mh-featured { flex-wrap: wrap; }
  .mh-featured-btn { margin-left: 0; }
  .mh-stats-bar { flex-wrap: wrap; }
  .list-view .mh-module-card { flex-direction: column; }
  .list-view .mc-thumb { width: 100%; }
  .mh-form-row { flex-direction: column; }
}

@media (max-width: 600px) {
  .mh-footer-grid { grid-template-columns: 1fr; }
  .mh-hero-search { flex-direction: column; gap: 8px; }
  .mh-hero-search input { border-radius: 10px; }
  .mh-hero-search button { border-radius: 10px; }
  .mh-meta-grid { grid-template-columns: 1fr; }
  .mh-meta-item { border-right: none !important; }
  .mh-meta-item:last-child { border-bottom: none; }
  .mh-toolbar { flex-direction: column; align-items: flex-start; }
  .mh-preview-gallery { width: 100%; }
  .module-header-inner { flex-direction: column; }
}
