/* =========================================================
   FUTURISTIC / TECH STYLE for MkDocs Material
   - Glass header
   - Subtle grid + neon glow
   - Better typography
   - Styled buttons + cards
   ========================================================= */

/* ---- Custom Fonts (loaded via extra.js) ---- */
:root {
  --font-sans: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --neon: #00e5ff;
  --violet: #a855f7;
  --lime: #34d399;

  --glass: rgba(10, 14, 20, 0.55);
  --glass-2: rgba(10, 14, 20, 0.35);
  --stroke: rgba(0, 229, 255, 0.18);
  --stroke-2: rgba(168, 85, 247, 0.18);

  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

/* ---- Global typography ---- */
html, body {
  font-family: var(--font-sans) !important;
  letter-spacing: 0.2px;
}

code, pre, kbd, samp {
  font-family: var(--font-mono) !important;
}

/* Make content slightly wider (more modern) */
.md-grid {
  max-width: 1250px;
}

/* ---- Background: subtle grid + neon gradients ---- */
.md-main {
  position: relative;
  background:
    radial-gradient(1200px circle at 12% 8%, rgba(0, 229, 255, 0.10), transparent 40%),
    radial-gradient(900px circle at 88% 18%, rgba(168, 85, 247, 0.10), transparent 45%),
    radial-gradient(800px circle at 30% 92%, rgba(52, 211, 153, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.10));
}

.md-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 70%);
}

/* ---- Glassy header with glow ---- */
.md-header {
  background: var(--glass) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.12);
}

/* Header title style */
.md-header__title {
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

/* Tabs area subtle glow */
.md-tabs {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.md-tabs__link {
  opacity: 0.9;
}
.md-tabs__link--active {
  color: var(--neon) !important;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

/* ---- Sidebar "card" feel ---- */
.md-sidebar__scrollwrap {
  padding-top: 8px;
}

.md-nav--primary .md-nav__title[for="__drawer"] {
  background: var(--glass-2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  margin: 10px 10px 12px 10px;
}

/* Active nav item neon */
.md-nav__link--active,
.md-nav__link:focus,
.md-nav__link:hover {
  color: var(--neon) !important;
}
.md-nav__link--active {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.35);
}

/* ---- Headings: tech feel ---- */
.md-typeset h1 {
  font-size: 2.2rem;
  letter-spacing: -0.3px;
  margin-top: 0.3em;
}
.md-typeset h1,
.md-typeset h2 {
  position: relative;
}

.md-typeset h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 88px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  border-radius: 99px;
  opacity: 0.85;
}

/* ---- Links: underline as neon ---- */
.md-typeset a {
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(0, 229, 255, 0.35);
}
.md-typeset a:hover {
  border-bottom-color: rgba(0, 229, 255, 0.95);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.25);
}

/* ---- Buttons (MkDocs Material uses .md-button) ---- */
.md-typeset .md-button {
  border-radius: 14px !important;
  border: 1px solid rgba(0, 229, 255, 0.28) !important;
  background: rgba(0, 229, 255, 0.06) !important;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.md-typeset .md-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.20);
}

.md-typeset .md-button--primary {
  border-color: rgba(168, 85, 247, 0.35) !important;
  background: linear-gradient(135deg, rgba(0,229,255,0.14), rgba(168,85,247,0.14)) !important;
}

/* ---- Content cards (use markdown with {: .card } ) ---- */
.md-typeset .card {
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.14);
  background: rgba(10, 14, 20, 0.35);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 16px 0;
}

/* ---- Code blocks: terminal vibe ---- */
.md-typeset pre {
  border-radius: 18px !important;
  border: 1px solid rgba(0, 229, 255, 0.18);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.08);
  background: rgba(0, 0, 0, 0.35) !important;
}

/* Copy button nicer */
.md-clipboard {
  border-radius: 12px !important;
  backdrop-filter: blur(8px);
}

/* Inline code */
.md-typeset code {
  border-radius: 10px;
  padding: 0.15em 0.35em;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}

/* ---- Admonitions / details as glass cards ---- */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  background: rgba(10, 14, 20, 0.35) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

/* Accent for NOTE/WARNING */
.md-typeset .admonition.note {
  border-color: rgba(0, 229, 255, 0.22) !important;
}
.md-typeset .admonition.warning {
  border-color: rgba(168, 85, 247, 0.22) !important;
}

/* ---- Tables nicer ---- */
.md-typeset table:not([class]) {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 14, 20, 0.25);
}
.md-typeset table:not([class]) th {
  background: rgba(0, 229, 255, 0.06);
}

/* ---- Images: rounded + subtle frame ---- */
.md-typeset img {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* ---- Smooth scrolling ---- */
html {
  scroll-behavior: smooth;
}

/* ---- Small animated glow on active section marker ---- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(0,229,255,0); }
  50% { box-shadow: 0 0 18px rgba(0,229,255,0.18); }
}
.md-nav__link--active {
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.md-header__title {
  display: none;
}

.md-logo img {
  height: 48px !important;
}

