/* FreeMcHosting Documentation Stylesheet
   Modern, Dark Mode, Minimalist, No Emojis, Authentic freemchosting.com Style */

:root {
  --bg: #081411;
  --bg-secondary: #0b1a15;
  --surface: #0e1e18;
  --surface-card: #12241d;
  --surface-card-hover: #162c24;
  --surface-glass: rgba(14, 30, 24, 0.75);
  
  --line: #ffffff14;
  --line-strong: #ffffff22;
  --line-accent: rgba(155, 246, 178, 0.25);
  
  --text: #f3f7ef;
  --text-secondary: #c2d1c7;
  --muted: #a3b3aa;
  --muted-dim: #71887a;
  
  --green: #9bf6b2;
  --green-hover: #b6ffc8;
  --green-dim: rgba(155, 246, 178, 0.12);
  --green-subtle: rgba(155, 246, 178, 0.05);
  --green-glow: 0 0 25px rgba(155, 246, 178, 0.18);
  
  --tag-manual: #fbbf24;
  --tag-manual-bg: rgba(251, 191, 36, 0.12);
  --tag-auto: #38bdf8;
  --tag-auto-bg: rgba(56, 189, 248, 0.12);
  --tag-paid: #c084fc;
  --tag-paid-bg: rgba(192, 132, 252, 0.12);
  --tag-error: #f87171;
  
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-title: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(ellipse at 85% 0%, rgba(35, 69, 43, 0.18), transparent 50%),
    radial-gradient(ellipse at 15% 25%, rgba(20, 45, 30, 0.15), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #1c382b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2b5542;
}

::selection {
  background: var(--green);
  color: #0b2418;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1340px, calc(100% - 64px));
  margin-inline: auto;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--green), #b6ffc8);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ============================================================
   TOP NODE ANNOUNCEMENT BAR
   ============================================================ */
.node-bar {
  background: #06110e;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  padding: 8px 0;
  position: relative;
  z-index: 50;
}

.node-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.node-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.node-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--green);
  animation: pulse-ring 2.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 15px var(--green); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.node-bar-title {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  font-size: 11px;
}

.node-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}

.node-pill:hover {
  border-color: var(--line-accent);
  background: var(--surface-card);
}

.node-pill code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
}

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.free-badge {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(155, 246, 178, 0.2);
}

.paid-badge {
  background: var(--tag-paid-bg);
  color: var(--tag-paid);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.copy-tiny {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 3px;
  transition: all 0.2s;
}

.copy-tiny:hover {
  background: var(--green-dim);
  color: var(--green);
  border-color: var(--green);
}

.rewards-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.rewards-link:hover {
  color: var(--green);
}

.rewards-link strong {
  color: var(--green);
}

.external-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ============================================================
   GLOBAL NAVIGATION HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  background: rgba(8, 20, 17, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--font-title);
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  white-space: nowrap;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.08);
}

.brand-dot {
  color: var(--green);
}

.docs-tag {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(155, 246, 178, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tool-shortcut-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.tool-shortcut-btn:hover {
  background: var(--surface-card);
  color: var(--green);
  border-color: var(--line-accent);
}

.nav-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s;
}

.rewards-btn {
  background: rgba(250, 204, 21, 0.08);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.rewards-btn:hover {
  background: rgba(250, 204, 21, 0.18);
  border-color: #fde047;
}

.dashboard-btn {
  background: var(--green);
  color: #0b2418;
}

.dashboard-btn:hover {
  background: var(--green-hover);
  box-shadow: 0 2px 20px rgba(155, 246, 178, 0.25);
}

.dashboard-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: var(--text);
}

.mobile-toggle span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

/* ============================================================
   MAIN TWO-COLUMN PORTAL LAYOUT
   ============================================================ */
.docs-main-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 75px;
  align-items: start;
}

/* ============================================================
   SIDEBAR: SEARCH & CATEGORIES
   ============================================================ */
.docs-sidebar {
  position: relative;
}

.sidebar-sticky {
  position: sticky;
  top: 95px;
  max-height: calc(100vh - 115px);
  overflow-y: auto;
  padding-right: 10px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Search input inside sidebar */
.sidebar-search-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}

.sidebar-search-input {
  width: 100%;
  background: #091712;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  padding: 9px 34px 9px 34px;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s;
}

.sidebar-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(155, 246, 178, 0.15);
  background: #0d1e18;
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}

.search-shortcut-hint {
  font-size: 11px;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
}

.search-shortcut-hint kbd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
}

/* Category Navigation List */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-heading {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.category-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.category-nav-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.category-nav-btn.active {
  color: var(--green);
  background: var(--green-subtle);
  border-left-color: var(--green);
  font-weight: 600;
}

.count-pill {
  font-size: 11px;
  color: var(--muted-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 10px;
}

.category-nav-btn.active .count-pill {
  color: var(--green);
  background: var(--green-dim);
}

/* Sidebar Tag Cloud */
.sidebar-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: 14px;
  transition: all 0.2s;
}

.sidebar-tag-chip:hover {
  background: var(--surface-card);
  color: var(--text);
  border-color: var(--line-strong);
}

.sidebar-tag-chip.active {
  background: var(--green);
  color: #0b2418;
  border-color: var(--green);
  font-weight: 700;
}

.manual-chip:not(.active):hover {
  border-color: var(--tag-manual);
  color: var(--tag-manual);
}

.auto-chip:not(.active):hover {
  border-color: var(--tag-auto);
  color: var(--tag-auto);
}

/* Sidebar Help Card */
.sidebar-help-card {
  background: #091712;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--radius-md);
}

.sidebar-help-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 5px;
}

.sidebar-help-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.discord-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  background: #5865F2;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}

.discord-button:hover {
  opacity: 0.9;
}

/* ============================================================
   MAIN CONTENT CONTAINER
   ============================================================ */
.docs-content-container {
  min-width: 0;
}

/* Category View Header */
.category-view-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.category-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.category-view-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -1px;
  margin: 0 0 10px;
}

.category-view-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0;
}

.filter-status-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.filter-status-row strong {
  color: var(--green);
}

.reset-filter-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.reset-filter-btn:hover {
  background: var(--line-strong);
}

/* ============================================================
   VIEW 1: ARTICLES GRID (DIRECTORY LIST)
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
  position: relative;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(155, 246, 178, 0.06);
}

.article-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(155, 246, 178, 0.2);
  padding: 2.5px 7px;
  border-radius: 4px;
}

.read-time-pill {
  font-size: 11.5px;
  color: var(--muted-dim);
}

.article-card-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.35;
}

.article-card-summary {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}

.article-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  gap: 10px;
}

.article-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.card-tag.manual {
  background: var(--tag-manual-bg);
  color: var(--tag-manual);
}

.card-tag.auto {
  background: var(--tag-auto-bg);
  color: var(--tag-auto);
}

.read-arrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s;
}

.article-card:hover .read-arrow {
  transform: translateX(3px);
}

.no-results-box {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 45px 25px;
  text-align: center;
  margin-top: 20px;
}

.no-results-box h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.no-results-box p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

/* ============================================================
   VIEW 2: DEDICATED ARTICLE READER VIEW
   ============================================================ */
.article-reader-view {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 45px;
  box-shadow: var(--shadow-card);
}

.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 24px;
}

.back-to-list-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(155, 246, 178, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.back-to-list-btn:hover {
  background: var(--green);
  color: #0b2418;
}

.back-to-list-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.reader-breadcrumbs {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-breadcrumbs .sep {
  color: var(--muted-dim);
}

.reader-breadcrumbs .current {
  color: var(--text-secondary);
}

.reader-header {
  margin-bottom: 20px;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.reader-tags {
  display: flex;
  gap: 6px;
}

.reader-title {
  font-family: var(--font-title);
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.reader-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 22px 0 28px;
}

/* ============================================================
   MARKDOWN BODY RENDERED STYLES
   ============================================================ */
.markdown-body {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-secondary);
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-family: var(--font-title);
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.markdown-body h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.markdown-body h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
}

.markdown-body h3 {
  font-size: 17.5px;
}

.markdown-body p {
  margin: 0 0 18px;
}

.markdown-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body a:hover {
  color: var(--green-hover);
}

.markdown-body strong {
  color: var(--text);
}

.markdown-body ul, 
.markdown-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: #0b1a14;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.markdown-body blockquote p:last-child {
  margin-bottom: 0;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

/* Tables inside Markdown */
.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.markdown-body th {
  background: #06110e;
  color: var(--muted);
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: uppercase;
}

.markdown-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.markdown-body tr:last-child td {
  border-bottom: none;
}

.markdown-body tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Code Blocks & Inline Code */
.markdown-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: #06110e;
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
}

.code-block-container {
  position: relative;
  margin: 16px 0;
  background: #050d0b;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.code-block-container pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
}

.code-block-container pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  display: block;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  transition: all 0.2s;
}

.code-copy-btn:hover {
  background: var(--green);
  color: #0b2418;
  border-color: var(--green);
}

/* Article Navigation Footer */
.reader-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.nav-direction {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-dim);
  display: block;
  margin-bottom: 4px;
}

.nav-title-link {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}

.nav-title-link:hover {
  text-decoration: underline;
}

.nav-next {
  text-align: right;
}

/* ============================================================
   VIEW 3: INTERACTIVE TOOLS VIEW
   ============================================================ */
.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.tool-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 7px;
  border-radius: 3px;
}

.tool-card-head h3 {
  font-family: var(--font-title);
  font-size: 20px;
  margin: 8px 0 6px;
}

.tool-card-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.tool-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.widget-input {
  background: #081411;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.widget-input:focus {
  border-color: var(--green);
}

.file-input {
  padding: 8px;
}

.tool-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-box {
  background: #06110e;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.result-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.result-row code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--green);
  color: #0b2418;
  border-color: var(--green);
}

/* Tool 2: Previewer Split */
.previewer-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 25px;
  align-items: start;
}

.previewer-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-icon-msg {
  font-size: 12px;
  min-height: 18px;
  margin-top: 4px;
}

.tool-icon-msg.success { color: var(--green); }
.tool-icon-msg.error { color: var(--tag-error); }

.preview-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

/* Minecraft Multiplayer Row Simulator */
.mc-server-card {
  background: #111111;
  border: 2px solid #282828;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  font-family: 'Minecraft', 'Courier New', monospace;
}

.mc-icon-slot {
  width: 64px;
  height: 64px;
  background: #000000;
  border: 1px solid #333333;
  flex-shrink: 0;
  image-rendering: pixelated;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-icon-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

.mc-server-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mc-server-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-server-title {
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-server-ping {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mc-player-count {
  font-size: 12px;
  color: #aaaaaa;
}

.ping-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.ping-bars .bar {
  width: 2.5px;
  background: #55ff55;
  border-radius: 1px;
}

.bar-1 { height: 4px; }
.bar-2 { height: 6px; }
.bar-3 { height: 9px; }
.bar-4 { height: 11px; }
.bar-5 { height: 14px; }

.mc-server-motd {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: #aaaaaa;
}

.motd-line {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Form Row Duo */
.form-row-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Toggle Control */
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.toggle-control input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.props-generator-grid, .lp-tool-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 25px;
  align-items: start;
}

.props-form-controls, .lp-tool-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.props-toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #081411;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.props-output-box, .lp-tool-output {
  background: #050d0b;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.props-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.props-code {
  margin: 0;
  max-height: 380px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--green);
  white-space: pre-wrap;
  word-break: break-all;
}

.lp-perm-heading {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 8px;
}

.lp-perm-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #081411;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  max-height: 200px;
  overflow-y: auto;
}

/* Tool 5 & 6 Additional Styling */
.tool-note-box {
  background: rgba(155, 246, 178, 0.05);
  border: 1px solid var(--line-accent);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-note-box code {
  color: var(--green);
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 3px;
}

.diag-status-card {
  background: #091712;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 4px;
}

.diag-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.diag-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.diag-status-dot.warning {
  background: #facc15;
  box-shadow: 0 0 10px #facc15;
}

.diag-status-dot.danger {
  background: #f87171;
  box-shadow: 0 0 10px #f87171;
}

.diag-status-header strong {
  font-size: 13px;
  color: var(--text);
}

.diag-status-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.diag-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.diag-metric-item {
  background: #081411;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.diag-metric-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.diag-metric-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  font-weight: 600;
}

.diag-recommendation-box {
  background: #091712;
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.diag-recommendation-box strong {
  display: block;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 6px;
}

.diag-recommendation-box ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
}

/* Search Modal */
.search-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 8, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  width: min(620px, calc(100% - 32px));
  background: #0c1a14;
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(155, 246, 178, 0.1);
  overflow: hidden;
}

.search-modal-input-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.search-modal-input-row .search-icon {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.modal-search-input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  outline: none;
}

.esc-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
}

.search-result-item:hover {
  background: rgba(155, 246, 178, 0.05);
  border-color: rgba(155, 246, 178, 0.2);
  color: var(--text);
}

.search-result-item.selected {
  background: rgba(155, 246, 178, 0.12) !important;
  border-color: var(--green) !important;
  color: var(--text) !important;
  box-shadow: 0 0 16px rgba(155, 246, 178, 0.18);
  transform: translateX(4px);
}

.search-result-item.selected strong {
  color: var(--green) !important;
}

.search-result-item strong {
  font-size: 14px;
  color: var(--text);
}

.search-result-item span {
  font-size: 12px;
  color: var(--muted);
}

.search-modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #081411;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-dim);
}

.search-modal-footer kbd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 3px;
}

/* Toast */
.copy-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--green);
  color: #0b2418;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  z-index: 3000;
  pointer-events: none;
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   GLOBAL FOOTER
   ============================================================ */
.footer {
  background: #050d0b;
  border-top: 1px solid var(--line);
  padding: 50px 0 30px;
  font-size: 13px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  padding-bottom: 30px;
}

.footer-brand-col p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted-dim);
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--green);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 12px;
  color: var(--muted-dim);
}

.footer-sublinks {
  display: flex;
  gap: 18px;
}

.footer-sublinks a:hover {
  color: var(--text);
}

.disclaimer {
  color: #496353;
  font-size: 11px;
}

/* ============================================================
   RESPONSIVE QUERIES
   ============================================================ */
@media (max-width: 950px) {
  .docs-main-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #081411;
    border-right: 1px solid var(--line);
    z-index: 150;
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
  }

  .docs-sidebar.open {
    transform: translateX(0);
  }

  .sidebar-sticky {
    position: static;
    max-height: 100%;
  }

  .mobile-toggle {
    display: flex;
  }

  .previewer-split, .tool-form-grid, .tool-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .article-reader-view {
    padding: 24px 20px;
  }

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

  .rewards-btn {
    display: none;
  }
}
