/* Aethr Docs - Clean Professional Theme */

:root {
  --md-primary-fg-color: #0a0a0a;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #2563eb;
  --md-text-font: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --md-code-font: "JetBrains Mono", "Fira Code", monospace;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #09090b;
  --md-primary-bg-color: #09090b;
  --md-default-bg-color: #09090b;
  --md-default-fg-color: #fafafa;
  --md-default-fg-color--light: #a1a1aa;
  --md-default-fg-color--lighter: #71717a;
  --md-accent-fg-color: #3b82f6;
  --md-code-bg-color: #18181b;
  --md-code-fg-color: #f4f4f5;
  --md-typeset-a-color: #60a5fa;
}

/* Typography */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.md-typeset h1 {
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.md-typeset h2 {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.md-typeset h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.5rem;
}

.md-typeset p {
  margin-bottom: 1rem;
}

/* Header */
.md-header {
  background: var(--md-primary-fg-color);
  box-shadow: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.md-header__button.md-logo {
  padding: 0;
}

.md-header__button.md-logo img {
  height: 1.5rem;
  width: auto;
}

.md-header__title {
  font-weight: 600;
  font-size: 1rem;
}

/* Hide secondary title */
.md-header__title .md-header__topic + .md-header__topic {
  display: none;
}

/* Search */
.md-search__form {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.md-search__form:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--md-accent-fg-color);
}

.md-search__input {
  font-size: 0.85rem;
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Navigation */
.md-nav {
  font-size: 0.85rem;
}

.md-nav__title {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--md-default-fg-color--lighter);
  padding: 0.6rem 0.6rem 0.4rem;
}

.md-nav__link {
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.md-nav__link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.md-nav__link--active {
  color: var(--md-accent-fg-color);
  font-weight: 500;
}

/* Sidebar */
.md-sidebar {
  padding: 1.5rem 0;
}

.md-sidebar--primary {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

/* Content */
.md-content {
  max-width: 52rem;
}

.md-content__inner {
  padding: 2rem;
  margin: 0;
}

/* Code blocks */
.md-typeset pre {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1rem 0;
}

.md-typeset pre > code {
  font-size: 0.8rem;
  line-height: 1.6;
}

.md-typeset code {
  font-size: 0.85em;
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: var(--md-code-bg-color);
}

/* Copy button */
.md-clipboard {
  color: var(--md-default-fg-color--lighter);
}

.md-clipboard:hover {
  color: var(--md-default-fg-color);
}

/* Tables */
.md-typeset table:not([class]) {
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.md-typeset table:not([class]) td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

/* Admonitions */
.md-typeset .admonition {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  font-size: 0.85rem;
}

.md-typeset .admonition-title {
  font-weight: 600;
  font-size: 0.8rem;
}

/* Tabs */
.md-typeset .tabbed-labels {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.md-typeset .tabbed-labels > label {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
}

/* Footer */
.md-footer {
  background: var(--md-primary-fg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.md-footer-meta {
  background: transparent;
  padding: 1rem 0;
}

/* Hide copyright */
.md-footer-copyright,
.md-copyright {
  display: none;
}

.md-social {
  justify-content: center;
}

.md-social__link {
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.md-social__link:hover {
  opacity: 1;
}

/* TOC */
.md-sidebar--secondary {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* Horizontal rule */
.md-typeset hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

/* Links */
.md-typeset a {
  color: var(--md-accent-fg-color);
  text-decoration: none;
}

.md-typeset a:hover {
  text-decoration: underline;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Mobile */
@media screen and (max-width: 76.25em) {
  .md-content__inner {
    padding: 1.5rem 1rem;
  }
}

/* Light mode adjustments */
[data-md-color-scheme="default"] {
  --md-default-fg-color: #18181b;
  --md-default-fg-color--light: #52525b;
  --md-default-fg-color--lighter: #a1a1aa;
  --md-code-bg-color: #f4f4f5;
}

[data-md-color-scheme="default"] .md-typeset h2 {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="default"] .md-sidebar--primary {
  border-right-color: rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="default"] .md-header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
