/* Backend.AI GO - Documentation Styles */

/* ==========================================================================
   Brand Design Tokens (matching Next.js landing page)
   ========================================================================== */
:root {
  --brand-cyan: #06b6d4;   /* Cyan 500 */
  --brand-purple: #8b5cf6; /* Violet 500 */
  --brand-neon: #00f0ff;
  --bg-void: #020204;
  --bg-panel: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Color Schemes
   ========================================================================== */

/* Light Theme (Default) */
[data-md-color-scheme="default"],
[data-md-color-scheme="lablup"] {
  --md-primary-fg-color: #06b6d4;        /* Brand Cyan */
  --md-primary-fg-color--light: #67e8f9; /* Cyan 300 */
  --md-primary-fg-color--dark: #0891b2;  /* Cyan 700 */
  --md-accent-fg-color: #8b5cf6;         /* Brand Purple */
}

/* Dark Theme (Slate) - "Void" Theme Integration */
[data-md-color-scheme="slate"] {
  /* Backgrounds */
  --md-default-bg-color: #020204;        /* bg-void */
  --md-default-bg-color--light: #121217; /* slightly lighter for contrast */
  
  /* Text */
  --md-default-fg-color: #ffffff;
  --md-default-fg-color--light: #9ca3af; /* muted */
  --md-default-fg-color--lighter: #6b7280;
  
  /* Primary Colors */
  --md-primary-fg-color: #06b6d4;        /* Brand Cyan */
  --md-primary-fg-color--light: #00f0ff; /* Neon Accent */
  --md-primary-fg-color--dark: #0891b2;
  
  /* Accent */
  --md-accent-fg-color: #8b5cf6;         /* Brand Purple */
  
  /* Code blocks - Glass effect */
  --md-code-bg-color: rgba(255, 255, 255, 0.05);
  
  /* Admonitions */
  --md-admonition-bg-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   Component Styling
   ========================================================================== */

/* Header - Glassmorphism */
.md-header {
  background-color: rgba(2, 2, 4, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer - "Void" style */
.md-footer {
  background-color: var(--bg-void);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.md-footer-meta {
  background-color: var(--bg-void);
}

/* Code block styling */
.md-typeset code {
  border-radius: 4px;
  font-family: var(--md-code-font-family);
}

.md-typeset pre code {
  font-size: 0.85em;
}

/* Table improvements */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.md-typeset table:not([class]) th {
  background-color: rgba(6, 182, 212, 0.1); /* Cyan tint */
  color: var(--md-default-fg-color);
  font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:hover td {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Admonition styling - Modern & Glassy */
.md-typeset .admonition {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.md-typeset .admonition-title {
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navigation improvements */
.md-nav__link {
  transition: color 0.2s ease;
}

[data-md-color-scheme="slate"] .md-nav__item .md-nav__link--active {
  color: var(--brand-cyan);
  font-weight: 600;
}

/* Search Highlight */
[data-md-color-scheme="slate"] .md-search-result__article mark {
  background-color: rgba(6, 182, 212, 0.3); /* Cyan highlight */
  color: white;
}

/* Mermaid diagram improvements */
.mermaid {
  text-align: center;
  margin: 1rem 0;
  background: white; /* Mermaid usually needs light bg or specific theme config */
  padding: 1rem;
  border-radius: 8px;
}

[data-md-color-scheme="slate"] .mermaid {
  background: rgba(255, 255, 255, 0.05);
  /* Note: Mermaid dark theme requires JS config, CSS alone might not be enough for content */
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
  .md-nav__link {
    padding: 0.6rem 0.8rem;
  }
}