/* Overview.css - Using global theme variables */
.overview-container {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Ubuntu, sans-serif;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.overview-content {
  overflow-y: auto;
  padding-top: 60px; /* Account for fixed navbar */
}

/* Custom scrollbar styles to match theme */
.overview-content::-webkit-scrollbar {
  width: 8px;
}

.overview-content::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.overview-content::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 4px;
}

.overview-content::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Firefox scrollbar */
.overview-content {
  scrollbar-width: thin;
  scrollbar-color: var(--border-primary) var(--bg-secondary);
}

.overview-container * {
  box-sizing: border-box;
}

/* Top Navigation - using Navbar component */
.top-nav {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(15, 15, 15, 0.78);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 26px;
  z-index: 50;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-left a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-left a:hover {
  background: #1e1e1e;
  color: #fff;
}

.brand {
  font-weight: 600;
  color: #fff !important;
  letter-spacing: .5px;
}

.nav-right .btn-small {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: #fff;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-right .btn-small:hover {
  filter: brightness(1.08);
}

/* Hero Section */
.hero-section {
  padding: 48px 28px 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  border: 1px solid var(--border-primary);
  border-radius: 999px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-hover);
  transition: all 0.2s ease;
}

.hero-section h1 {
  font-size: 48px;
  line-height: 1.2;
  margin: 18px 0 20px;
  color: var(--text-primary);
  font-weight: 700;
}

.lead {
  font-size: 18px;
  max-width: 720px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.button-row {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  background: var(--btn-secondary-bg);
  border: 1px solid var(--btn-secondary-border);
  color: var(--btn-secondary-text);
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
}

.btn:hover {
  background: var(--btn-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn.primary:hover {
  background: var(--btn-primary-hover);
}

/* Main Content */
.main-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 28px 120px;
}

.main-content section {
  margin-top: 70px;
}

.main-content h2 {
  font-size: 30px;
  margin: 0 0 24px;
  letter-spacing: .5px;
  color: var(--text-primary);
}

/* Two Column Layout */
.two-col {
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}

/* Cards */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  padding: 22px 22px 24px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--text-primary);
}

.card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Border Block */
.border-block {
  border: 1px solid var(--border-primary);
  padding: 26px 28px 30px;
  border-radius: 18px;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
}

.border-block p {
  margin-top: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.border-block h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  color: var(--text-primary);
}

/* Feature List */
.feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.feat-list li {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.feat-list li:hover {
  background: var(--bg-hover);
  border-color: var(--border-primary);
}

/* Code Styles */
pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  padding: 16px 18px;
  border-radius: 12px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.inline-code {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-primary);
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 10px 70px;
  color: var(--text-secondary);
  font-size: 12px;
}

.inline-link {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.inline-link:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Quick Start specific styles */
.quick-start-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 2fr 1fr;
  align-items: start;
  margin-bottom: 6px;
}

.primary-card {
  padding: 26px 28px;
  border-radius: 16px;
  /* use flat background to keep consistent with other cards */
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
}

/* primary-card should match the same font stack as auxiliary cards (inherit global UI font)
   command blocks (pre.cmd) remain monospace for readability */
.primary-card,
.primary-card h3,
.primary-card .lead,
.primary-card .muted,
.primary-card .flag-list {
  font-family: inherit;
}

/* Keep headings bold while using monospace */
.primary-card h3 {
  font-weight: 700;
  font-size: 18px;
}

/* Spacing between paragraph and code block in primary card */
.primary-card p {
  margin-bottom: 12px;
}
.primary-card pre {
  margin-top: 10px;
}

.aux-cards {
  display: grid;
  gap: 18px;
  grid-auto-rows: min-content;
}

/* Command block emphasised for copy and readability */
pre.cmd {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  padding: 14px 16px;
  border-radius: 10px;
  overflow: auto;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  /* Linux-style monospace font stack */
  font-family: 'Ubuntu Mono', 'DejaVu Sans Mono', 'Liberation Mono', 'Menlo', 'monospace';
}

/* Flag list styling */
.flag-list {
  margin-top: 14px;
  /* use same monospace stack as command block for consistent appearance */
  font-family: 'Ubuntu Mono', 'DejaVu Sans Mono', 'Liberation Mono', 'Menlo', 'monospace';
  font-size: 13.5px;
}

.flag-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.flag-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.flag-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.012);
  border: 1px solid rgba(255,255,255,0.02);
  font-size: 13px;
  color: var(--text-secondary);
  /* ensure flag descriptions are legible in monospace too */
  font-family: inherit;
}

.flag-list code {
  background: transparent;
  border: none;
  padding: 0 6px;
  color: var(--text-primary);
  font-family: inherit;
}

/* Slightly larger monospace for small inline code references */
pre.cmd code, .cmd .inline-code {
  font-size: 13.5px;
}

/* Improve spacing for auxiliary cards inside quick start */
.quick-start-grid .card h4 {
  margin-top: 0;
}

/* Increase spacing between auxiliary card headings (h4) and their code blocks */
.aux-cards .card h4 {
  margin-bottom: 12px;
}
.aux-cards .card pre {
  margin-top: 8px;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .quick-start-grid {
    grid-template-columns: 1fr;
  }
  .primary-card {
    order: 0;
  }
}

@media (max-width: 760px) {
  .hero-section h1 {
    font-size: 40px;
  }

  .hero-section {
    padding-top: 36px;
  }

  .two-col {
    gap: 28px;
    grid-template-columns: 1fr;
  }
}