/* Pocololo docs — Cursor-inspired dark theme (MkDocs Material slate) */

:root {
  --poco-bg: #0a0a0a;
  --poco-surface: #141414;
  --poco-surface-2: #1a1a1a;
  --poco-border: #2a2a2a;
  --poco-text: #e5e5e5;
  --poco-muted: #a3a3a3;
  --poco-accent: #3dd68c;
  --poco-accent-dim: #2a9d63;
  --poco-radius: 10px;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: var(--poco-bg);
  --md-default-fg-color: var(--poco-text);
  --md-default-fg-color--light: var(--poco-muted);
  --md-default-fg-color--lighter: #737373;
  --md-code-bg-color: #0f0f0f;
  --md-code-fg-color: #d4d4d4;
  --md-primary-fg-color: var(--poco-accent);
  --md-accent-fg-color: var(--poco-accent);
  --md-typeset-a-color: var(--poco-accent);
  --md-footer-bg-color: var(--poco-surface);
  --md-header-bg-color: rgba(10, 10, 10, 0.92);
  --md-header-fg-color: var(--poco-text);
}

body {
  letter-spacing: -0.01em;
}

.md-header {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--poco-border);
}

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

.poco-logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.md-header__button.md-logo {
  padding: 0;
  margin-right: 0.65rem;
}

.poco-header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1.15;
  min-width: 0;
}

.poco-brand-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.poco-brand-tagline {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--poco-muted);
  letter-spacing: 0;
}

@media screen and (max-width: 76.1875em) {
  .poco-brand-tagline {
    display: none;
  }
}

.md-sidebar--primary {
  border-right: 1px solid var(--poco-border);
  background: var(--poco-bg);
}

.md-sidebar__scrollwrap {
  background: var(--poco-bg);
}

.md-nav__link--active {
  color: var(--poco-accent) !important;
  font-weight: 600;
}

.md-nav__link:hover {
  color: var(--poco-accent-dim);
}

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

.md-content__inner {
  padding-top: 1.2rem;
}

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}

.md-typeset h2 {
  border-bottom: 1px solid var(--poco-border);
  padding-bottom: 0.35em;
  font-weight: 600;
}

.md-typeset a:hover {
  color: var(--poco-accent);
}

.md-typeset code {
  border-radius: 6px;
  padding: 0.1em 0.35em;
  border: 1px solid var(--poco-border);
}

.md-typeset pre > code {
  border: 1px solid var(--poco-border);
  border-radius: var(--poco-radius);
}

.md-typeset table:not([class]) {
  border: 1px solid var(--poco-border);
  border-radius: var(--poco-radius);
  overflow: hidden;
  background: var(--poco-surface);
}

.md-typeset table:not([class]) th {
  background: var(--poco-surface-2);
  font-weight: 600;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: var(--poco-radius);
  border: 1px solid var(--poco-border);
  background: var(--poco-surface);
  box-shadow: none;
}

.md-typeset .admonition.warning {
  border-color: #854d0e;
}

.md-search__form {
  border-radius: 8px;
  border: 1px solid var(--poco-border);
  background: var(--poco-surface);
}

.md-search-result__meta {
  color: var(--poco-muted);
}

.poco-locale-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--poco-radius);
  border: 1px solid var(--poco-border);
  background: var(--poco-surface);
  color: var(--poco-muted);
  font-size: 0.875rem;
}

.poco-locale-banner strong {
  color: var(--poco-accent);
}

.poco-locale-banner a {
  color: var(--poco-accent);
  font-weight: 600;
}

.md-footer {
  border-top: 1px solid var(--poco-border);
}

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

.md-header__option .md-select__inner {
  background: var(--poco-surface);
  border: 1px solid var(--poco-border);
  border-radius: 8px;
}
