/* =========================
   FONTS
========================= */

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* =========================
   BACKGROUND
========================= */

body {
  background:
    radial-gradient(circle at 20% 0%, rgba(96,165,250,0.06), transparent 50%),
    linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  background-attachment: fixed;
}

/* =========================
   LAYOUT (ALIGN EVERYTHING)
========================= */

.md-grid,
.md-header__inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}

.md-main__inner {
  max-width: 100%;
}

/* =========================
   SIDEBAR (LEFT)
========================= */

.md-sidebar--primary {
  width: 360px;
  padding-left: 32px;
}

/* Sidebar Card */
.md-sidebar__inner {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* Scroll */
.md-sidebar__scrollwrap {
  overflow-y: auto;
}

/* Scrollbar */
.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 6px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}

/* Remove duplicate title */
.md-nav--primary > .md-nav__title {
  display: none;
}

/* =========================
   SIDEBAR LINKS
========================= */

.md-nav__link {
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  transition: all 0.15s ease;
}

.md-nav__link:hover {
  background: rgba(96,165,250,0.08);
  color: #fff;
}

.md-nav__link--active {
  background: rgba(96,165,250,0.16);
  color: #60a5fa !important;
  font-weight: 600;
}

/* =========================
   MAIN SECTIONS (Getting Started etc.)
========================= */

.md-sidebar--primary .md-nav__item--section > .md-nav__link {
  color: #eab308;
  font-weight: 600;
}

.md-sidebar--primary .md-nav__item--section > .md-nav__link:hover {
  color: #fcd34d;
}

/* =========================
   SECTION TITLES
========================= */

.md-sidebar--primary .md-nav__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  color: #eab308;
  opacity: 0.9;

  margin: 20px 12px 8px;
}

.md-sidebar--primary .md-nav__title::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
}

/* =========================
   NESTED
========================= */

.md-nav__list .md-nav__list {
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(255,255,255,0.05);
}

/* =========================
   CONTENT
========================= */

.md-content {
  max-width: 100%;
}

.md-content__inner {
  padding: 32px;
  border-radius: 12px;
}

/* =========================
   TYPOGRAPHY
========================= */

.md-typeset {
  font-size: 0.92rem;
  line-height: 1.65;
}

.md-typeset h1 {
  font-size: 1.9rem;
}

.md-typeset h2 {
  font-size: 1.3rem;
  margin-top: 1.8em;
}

/* Links */
.md-typeset a {
  color: #60a5fa;
}

.md-typeset a:hover {
  color: #93c5fd;
}

/* =========================
   TOC (RIGHT)
========================= */

.md-sidebar--secondary {
  width: 260px;
  padding-right: 24px;
}

.md-sidebar--secondary .md-sidebar__inner {
  background: rgba(255,255,255,0.02);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.05);
}

.md-sidebar--secondary .md-nav__title {
  color: #eab308;
  font-size: 0.75rem;
}

.md-nav--secondary .md-nav__link {
  font-size: 0.8rem;
  opacity: 0.7;
}

.md-nav--secondary .md-nav__link:hover {
  opacity: 1;
}

/* =========================
   HEADER
========================= */
.md-header__title {
	margin-left: 0rem !important
}

.md-header {
  background: rgba(96,165,250,0.08);
  box-shadow: none;
}

/* =========================
   SEARCH
========================= */

.md-grid, .md-header__inner {
    max-width: 96% !important;
    margin: 0 auto !important;
    padding: 0 30px !important;
}

.md-search__input {
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}

/* =========================
   CODE
========================= */

.md-typeset pre {
  border-radius: 10px;
}

/* =========================
   DIVIDER
========================= */

.md-typeset hr {
  border-color: rgba(255,255,255,0.08);
}

/* =========================
   FOOTER
========================= */

.md-footer {
  display: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .md-sidebar--primary {
    width: 280px;
    padding-left: 16px;
  }

  .md-sidebar--secondary {
    display: none;
  }
}

@media (max-width: 900px) {
  .md-grid,
  .md-header__inner {
    padding: 0 12px;
  }

  .md-content__inner {
    padding: 20px;
  }

  .md-typeset {
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .md-typeset h1 {
    font-size: 1.5rem;
  }

  .md-typeset h2 {
    font-size: 1.15rem;
  }
}