/* ============================================================================
   GUBEE THEME - cores extraidas de gubee-web/src/assets/scss/themes/
   ============================================================================ */

:root {
  /* Brand colors (light theme) */
  --gubee-primary: #6f42c1;
  --gubee-primary-hover: #5a32a3;
  --gubee-primary-active: #4a2889;
  --gubee-primary-light: #f3eefb;
  --gubee-primary-dark: #3d2272;

  /* Semantic */
  --gubee-success: #6bd098;
  --gubee-warning: #d99300;
  --gubee-danger: #f45050;
  --gubee-info: #51bcda;

  /* MkDocs Material theming */
  --md-primary-fg-color: var(--gubee-primary);
  --md-primary-fg-color--light: var(--gubee-primary-hover);
  --md-primary-fg-color--dark: var(--gubee-primary-dark);
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffff;
  --md-accent-fg-color: var(--gubee-info);
  --md-accent-fg-color--transparent: rgba(81, 188, 218, 0.1);
}

[data-md-color-scheme="slate"] {
  /* Brand colors (dark theme) */
  --gubee-primary: #9d7cd8;
  --gubee-primary-hover: #b199e0;
  --gubee-primary-active: #8a66cc;
  --gubee-primary-light: #2d2640;
  --gubee-primary-dark: #c4b5f0;

  --gubee-success: #7ed9a6;
  --gubee-warning: #f0b429;
  --gubee-danger: #f87171;
  --gubee-info: #67d4ed;

  --md-primary-fg-color: var(--gubee-primary);
  --md-primary-fg-color--light: var(--gubee-primary-hover);
  --md-primary-fg-color--dark: var(--gubee-primary-active);
  --md-primary-bg-color: #1e1e1e;
  --md-primary-bg-color--light: #252525;
  --md-accent-fg-color: var(--gubee-info);
  --md-accent-fg-color--transparent: rgba(103, 212, 237, 0.15);
}

/* Header gradient using Gubee primary */
.md-header {
  background: linear-gradient(135deg, var(--gubee-primary) 0%, var(--gubee-primary-hover) 100%);
  color: #ffffff;
}

.md-header__topic:first-child {
  font-weight: 700;
}

/* Tabs / search etc inherit primary */
.md-tabs {
  background: var(--gubee-primary-dark);
  color: #ffffff;
}

.md-search__form {
  background-color: rgba(255, 255, 255, 0.15);
}

.md-search__input {
  color: #ffffff;
}

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

/* Sidebar active item */
.md-nav__item--active > .md-nav__link {
  background-color: var(--gubee-primary-light);
  border-radius: 6px;
  color: var(--gubee-primary);
}

.md-nav__link:hover {
  color: var(--gubee-primary);
}

/* Active toc link */
.md-nav__link--passed,
.md-nav__link--active {
  color: var(--gubee-primary);
}

/* Typography */
.md-typeset {
  font-size: 0.85rem;
  line-height: 1.6;
}

.md-typeset h1 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

[data-md-color-scheme="slate"] .md-typeset h1 {
  color: #f5f5f5;
}

.md-typeset h2 {
  color: var(--gubee-primary);
  font-weight: 600;
  margin-top: 2rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--gubee-primary-light);
}

[data-md-color-scheme="slate"] .md-typeset h2 {
  color: var(--gubee-primary-dark);
  border-bottom-color: rgba(157, 124, 216, 0.3);
}

.md-typeset h3 {
  color: var(--gubee-primary-hover);
  font-weight: 600;
}

/* Code blocks */
.md-typeset pre > code {
  font-size: 0.8rem;
}

.md-typeset code {
  background-color: var(--gubee-primary-light);
  color: var(--gubee-primary-active);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: rgba(157, 124, 216, 0.15);
  color: var(--gubee-primary-dark);
}

/* Inline links */
.md-typeset a {
  color: var(--gubee-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.md-typeset a:hover {
  color: var(--gubee-primary-hover);
  border-bottom-color: var(--gubee-primary-hover);
}

/* Tables — Stripe-style horizontal lines */
.md-typeset table:not([class]) {
  border: none;
  border-collapse: collapse;
  box-shadow: none;
  display: table;
  width: 100%;
  font-size: 0.82rem;
}

.md-typeset table:not([class]) th {
  background: transparent;
  border-bottom: 2px solid var(--gubee-primary);
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  color: #f5f5f5;
}

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

[data-md-color-scheme="slate"] .md-typeset table:not([class]) td {
  border-bottom-color: #2d2d2d;
}

/* Admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 6px;
  box-shadow: none;
}

.md-typeset .admonition.tip,
.md-typeset .admonition.info {
  border-left: 3px solid var(--gubee-info);
}

.md-typeset .admonition.warning {
  border-left: 3px solid var(--gubee-warning);
}

.md-typeset .admonition.danger {
  border-left: 3px solid var(--gubee-danger);
}

/* Buttons (copy code) */
.md-clipboard {
  color: rgba(255, 255, 255, 0.6);
}

.md-clipboard:hover {
  color: var(--gubee-primary-dark);
}

/* Footer */
.md-footer {
  background: var(--gubee-primary-dark);
}

.md-footer-meta {
  background: var(--gubee-primary-dark);
}

/* Redoc iframe full height (when reference page renders spec) */
.md-content__inner iframe {
  width: 100%;
  min-height: 80vh;
  border: none;
}

/* Sidebar section headers */
.md-nav__title {
  font-weight: 700;
  color: var(--gubee-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
