/* =========================================================================
   DevsFTP Site — Main Stylesheet
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --bg:            #0B0E13;
  --bg-surface:    #111318;
  --bg-raised:     #1A1D24;
  --border:        #252930;
  --accent:        #68a063;
  --accent-hover:  #578952;
  --text-primary:  #F0F2F5;
  --text-secondary:#8B909A;
  --text-muted:    #4B5060;
  --radius:        8px;
  --header-h:      60px;
  --side-pad:      32px;
  --scrollbar-thumb:       rgba(217, 217, 227, 0.2);
  --scrollbar-thumb-hover: rgba(217, 217, 227, 0.35);
}

[data-theme="light"] {
  --bg:            #F5F6F8;
  --bg-surface:    #FFFFFF;
  --bg-raised:     #ECEEF1;
  --border:        #D8DBE0;
  --text-primary:  #111318;
  --text-secondary:#4B5060;
  --text-muted:    #8B909A;
  --scrollbar-thumb:       rgba(0, 0, 0, 0.2);
  --scrollbar-thumb-hover: rgba(0, 0, 0, 0.35);
}

/* ── Custom Scrollbars (ChatGPT/Antigravity Style) ── */

/* Standard Support (Firefox & Modern Standards) */
html, body, main, aside, pre, .docs-content {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* WebKit Support (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover) !important;
}
::-webkit-scrollbar-button {
  display: none !important;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* =========================================================================
   HEADER
   ========================================================================= */
#site-header {
  height: var(--header-h);
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-inner {
  width: 100%;
  height: 100%;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
}

/* ── Logo / Wordmark ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  margin-right: 32px;
}
.site-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.site-logo .wordmark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.site-logo .wordmark span { color: var(--accent); }


/* ── Primary Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover {
  color: var(--accent);
}
.site-nav a.active {
  color: var(--accent);
}

/* ── Header Right Controls ── */
.header-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Icon buttons */
.btn-theme,
.btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
.btn-theme:hover,
.btn-github:hover {
  color: var(--accent);
}
.btn-theme svg, .btn-github svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.15s, transform 0.2s ease;
}
.btn-nav-toggle:hover {
  color: var(--accent);
}
.btn-nav-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}
.btn-nav-toggle.active {
  transform: rotate(90deg);
  color: var(--accent);
}

/* =========================================================================
   MAIN
   ========================================================================= */
#site-main {
  flex: 1;
  background-color: var(--bg);
  transition: background-color 0.2s ease;
}

/* =========================================================================
   HERO / MAIN CONTENT
   ========================================================================= */
.hero-section {
  padding: 60px var(--side-pad);
  min-height: calc(100vh - var(--header-h));
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 64px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 28px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.25;
  letter-spacing: -0.019em;
  margin-bottom: 40px;
}

.hero-tagline span {
  color: var(--accent);
  font-weight: 700;
}

.hero-download-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s, transform 0.1s;
}

.download-link.primary {
  background-color: var(--accent);
  border: 1px solid var(--accent);
  color: #FFFFFF;
}

.download-link.primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.download-link.secondary {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.download-link.secondary:hover {
  background-color: var(--bg-raised);
  border-color: var(--border);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.download-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Screenshot styling */
.screenshot-container {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  overflow: hidden;
  cursor: pointer;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* Theme-based screenshot toggling */
.screenshot-light { display: none; }
.screenshot-dark { display: block; }

[data-theme="light"] .screenshot-dark { display: none; }
[data-theme="light"] .screenshot-light { display: block; }

/* =========================================================================
   FEATURES SECTION
   ========================================================================= */
.features-section {
  padding: 100px var(--side-pad);
  min-height: calc(100vh - var(--header-h));
  border-top: 1px solid var(--border);
  background-color: var(--bg-surface);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.features-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  text-align: left;
}

/* Comparison Table styles */
.compare-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-surface);
  margin-top: 30px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--bg-raised);
}

.compare-table td {
  color: var(--text-secondary);
  line-height: 1.5;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* DevsFTP Column Highlight */
.compare-table td.highlight-col {
  font-weight: 600;
  color: var(--text-primary);
  background-color: rgba(104, 160, 99, 0.04); /* Very subtle tint of brand green */
  border-left: 1px solid rgba(104, 160, 99, 0.15);
  border-right: 1px solid rgba(104, 160, 99, 0.15);
}

.compare-table th.highlight-col {
  color: var(--accent);
  background-color: rgba(104, 160, 99, 0.08);
  border-left: 1px solid rgba(104, 160, 99, 0.2);
  border-right: 1px solid rgba(104, 160, 99, 0.2);
}

/* Centered cells for checklists */
.compare-table td.center-val,
.compare-table th.center-val {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 13.5px;
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
#site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 24px var(--side-pad);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }

/* ── Theme Dropdown ── */
.theme-dropdown {
  position: relative;
  display: inline-block;
}

.theme-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  min-width: 120px;
  padding: 6px;
  z-index: 1000;
}

.theme-dropdown.active .theme-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  text-align: left;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.theme-opt-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-raised);
}

.theme-opt-btn.active {
  color: var(--accent);
  background-color: rgba(104, 160, 99, 0.08);
}

.theme-opt-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2px;
  flex-shrink: 0;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 768px) {
  :root { --side-pad: 16px; }
  .btn-nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--side-pad);
    gap: 4px;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  }
  .site-nav.active {
    display: flex;
  }
  .site-nav a {
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius);
    display: block;
  }
  .site-nav a:hover,
  .site-nav a.active {
    background-color: var(--bg-raised);
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-info {
    align-items: center;
    text-align: center;
  }
  .hero-brand {
    font-size: 40px;
  }
  .hero-tagline {
    font-size: 20px;
  }
  .tracker-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* =========================================================================
   SCREENSHOT PREVIEW MODAL
   ========================================================================= */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 8, 12, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.preview-modal.active {
  display: flex;
}

.preview-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.preview-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.preview-close-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background-color: var(--bg-raised);
}

.preview-body {
  padding: 8px;
  background-color: var(--bg);
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================================================
   ISSUE TRACKER PAGE (Site Theme Integrated)
   ========================================================================= */
.tracker-section {
  padding: 60px var(--side-pad);
  min-height: calc(100vh - var(--header-h) - 80px);
  width: 100%;
  display: flex;
  justify-content: center;
}

.tracker-container {
  max-width: 900px;
  width: 100%;
}

.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 32px;
  gap: 20px;
}

.tracker-main-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tracker-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.tracker-stats {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Controls Bar */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.os-tabs {
  display: flex;
  gap: 10px;
}

.os-tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s ease;
}

.os-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.os-tab.active {
  background: rgba(104, 160, 99, 0.15); /* Sage green accent matching site branding */
  color: var(--accent);
  border-color: var(--accent);
}

.limit-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.limit-select {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s;
}

.limit-select:focus {
  border-color: var(--accent);
}

/* Cards Stack */
.tracker-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card.completed {
  opacity: 0.75;
}

.card-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.report-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-text {
  font-weight: 600;
}

.report-desc {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.6;
}

.meta-row {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.meta-row strong {
  color: var(--text-muted);
}

/* Pagination */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.page-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.page-btn.active {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

.empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 48px;
}

/* Expandable Diagnostic Log Details */
details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 14px;
  transition: border-color 0.15s ease;
}

details[open] {
  border-color: var(--accent);
}

summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  outline: none;
  user-select: none;
}

summary:hover {
  color: var(--text-primary);
}

pre {
  font-family: 'Consolas', 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #A7F3D0; /* Soft green trace text */
  background-color: #0B0E13; /* Always dark console background */
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 6px;
  overflow-x: auto;
  margin-top: 10px;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

/* =========================================================================
   DOCUMENTATION PAGE (docs.php)
   ========================================================================= */
.docs-section {
  padding: 60px var(--side-pad);
  min-height: calc(100vh - var(--header-h) - 80px);
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--bg);
}

.docs-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  gap: 40px;
  position: relative;
}

/* Sidebar Menu */
.docs-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-h) + 30px);
  height: fit-content;
  max-height: calc(100vh - var(--header-h) - 80px);
  overflow-y: auto;
  padding-right: 15px;
}

.docs-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.docs-nav-link:hover {
  color: var(--text-primary);
  padding-left: 14px;
  border-left-color: var(--accent);
}

.docs-nav-link.active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
  padding-left: 14px;
}

/* Content Area */
.docs-content {
  flex-grow: 1;
  min-width: 0; /* Prevents overflow issues */
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.docs-article {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.docs-h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.docs-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.docs-h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.docs-p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.docs-ul {
  margin-left: 20px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.docs-li strong {
  color: var(--text-primary);
}

.docs-code-inline {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.docs-code-block {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-primary);
  overflow-x: auto;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Callout Box */
.docs-callout {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 20px;
}

.docs-callout-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.docs-callout-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Shortcuts Table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}

.docs-table th, .docs-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.docs-table th {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
}

.docs-table td {
  color: var(--text-secondary);
}

.docs-kbd {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  color: var(--text-primary);
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Documentation Hub Styles */
.docs-hub-header {
  margin-bottom: 48px;
}

.docs-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 32px;
  width: 100%;
}

.docs-hub-card {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.docs-hub-card:hover {
  border-color: var(--accent);
}

.docs-hub-card-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.docs-hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-hub-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Documentation Screenshots */
.docs-screenshot-wrapper {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-surface);
  line-height: 0;
}

.docs-screenshot-wrapper img {
  width: 100%;
  height: auto;
}

.docs-screenshot-wrapper .screenshot-light {
  display: none;
}
.docs-screenshot-wrapper .screenshot-dark {
  display: block;
}

[data-theme="light"] .docs-screenshot-wrapper .screenshot-dark {
  display: none;
}
[data-theme="light"] .docs-screenshot-wrapper .screenshot-light {
  display: block;
}

/* ── Feature Cards Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
  margin-top: 32px;
}
.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.feature-card:hover {
  background-color: var(--bg-raised);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 28px;
}
.feature-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.feature-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Forum Markdown Rendering ── */
.forum-markdown-content p {
  margin-bottom: 16px;
  line-height: 1.6;
}
.forum-markdown-content p:last-child {
  margin-bottom: 0;
}
.forum-markdown-content a {
  color: var(--accent);
  text-decoration: none;
}
.forum-markdown-content a:hover {
  text-decoration: underline;
}
.forum-markdown-content code {
  font-family: monospace;
  background-color: var(--bg-raised);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-primary);
}
.forum-markdown-content pre {
  background-color: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.forum-markdown-content pre code {
  padding: 0;
  background: none;
}
.forum-markdown-content ul, .forum-markdown-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
.forum-markdown-content li {
  margin-bottom: 6px;
}
.forum-markdown-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-left: 0;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

/* Responsive folding */
@media (max-width: 820px) {
  .docs-container {
    flex-direction: column;
    gap: 30px;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
}

/* ── Clickable Cards Utility System ── */
.clickable-card {
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.clickable-card:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.card-overlay-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Cover card area */
}
/* Ensure other interactive links inside clickable-cards sit above the overlay link */
.clickable-card a:not(.card-overlay-link), 
.clickable-card button, 
.clickable-card details,
.clickable-card summary {
  position: relative;
  z-index: 2;
}

