/* =====================================================
   Intune Commander — MkDocs theme overrides
   Matches the intunecommander.com colour palette
   ===================================================== */

/* === Custom colour scheme (slate base + IC palette) === */
[data-md-color-scheme="slate"] {
  /* Backgrounds */
  --md-default-bg-color:        #0d1117;
  --md-default-fg-color:        #e6edf3;
  --md-default-fg-color--light: #8b949e;
  --md-default-fg-color--lighter: #6e7681;

  /* Code */
  --md-code-bg-color:           #161b22;
  --md-code-fg-color:           #e6edf3;

  /* Sidebar / nav */
  --md-nav-item--hover-color:   #e6edf3;

  /* Footer */
  --md-footer-bg-color:         #161b22;
  --md-footer-bg-color--dark:   #0d1117;

  /* Admonitions */
  --md-admonition-bg-color:     #161b22;

  /* Custom IC brand colours */
  --ic-accent:     #2563eb;
  --ic-accent-2:   #7c3aed;
  --ic-border:     #30363d;
}

/* === Primary (blue) overrides === */
[data-md-color-primary="custom"] {
  --md-primary-fg-color:        #2563eb;
  --md-primary-fg-color--light: #3b82f6;
  --md-primary-fg-color--dark:  #1d4ed8;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
}

/* === Accent (purple) overrides === */
[data-md-color-accent="custom"] {
  --md-accent-fg-color:         #7c3aed;
  --md-accent-fg-color--transparent: rgba(124, 58, 237, 0.1);
  --md-accent-bg-color:         #ffffff;
}

/* === Site header === */
.md-header {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #30363d;
  box-shadow: none;
}

.md-header__title {
  font-weight: 700;
}

/* === Nav / sidebar === */
.md-nav__title {
  color: #e6edf3;
  font-weight: 700;
}

.md-nav__item--active > .md-nav__link {
  color: #3b82f6;
  font-weight: 600;
}

.md-nav__link:hover {
  color: #e6edf3;
}

/* === Active nav indicator === */
.md-nav__link--active {
  color: #3b82f6 !important;
}

/* === Content area === */
.md-content {
  background-color: #0d1117;
}

.md-main__inner {
  background-color: #0d1117;
}

/* === Cards (admonitions) === */
.md-typeset .admonition,
.md-typeset details {
  background-color: #161b22;
  border-color: #30363d;
  border-radius: 10px;
}

.md-typeset .admonition-title,
.md-typeset summary {
  background-color: rgba(37, 99, 235, 0.12);
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
  background-color: rgba(37, 99, 235, 0.12);
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
  background-color: rgba(35, 134, 54, 0.12);
}

.md-typeset .warning > .admonition-title,
.md-typeset .warning > summary {
  background-color: rgba(161, 98, 7, 0.12);
}

/* === Code blocks === */
.md-typeset pre > code {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
}

.highlight {
  background-color: #161b22 !important;
  border: 1px solid #30363d;
  border-radius: 6px;
}

/* === Tables === */
.md-typeset table:not([class]) {
  border: 1px solid #30363d;
  border-radius: 10px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: #161b22;
  color: #e6edf3;
  font-weight: 600;
  border-bottom: 1px solid #30363d;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid #30363d;
}

.md-typeset table:not([class]) tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

/* === Gradient hero text (matches main site) === */
.ic-gradient {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Inline code === */
.md-typeset code {
  background-color: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  color: #e6edf3;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
}

/* === Footer === */
.md-footer {
  background-color: #161b22;
  border-top: 1px solid #30363d;
}

.md-footer-meta {
  background-color: #0d1117;
}

/* === Search === */
.md-search__form {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
}

.md-search__input {
  color: #e6edf3;
}

.md-search__input::placeholder {
  color: #8b949e;
}

/* === Buttons / links === */
.md-typeset a {
  color: #3b82f6;
}

.md-typeset a:hover {
  color: #60a5fa;
}

/* === Scrollbar (Webkit) === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d1117;
}

::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b949e;
}

/* === Back-to-top button === */
.md-top {
  background: #2563eb;
  color: #fff;
}

/* === Tag pills (used in object-types page) === */
.ic-tag {
  display: inline-block;
  background: #161b22;
  border: 1px solid #30363d;
  color: #8b949e;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  margin: 3px;
}
