/*
 * docs/stylesheets/extra.css
 *
 * PyCodeCommenter — custom theme overrides.
 * All brand colours are defined as CSS variables here.
 * The MkDocs Material slate palette provides the dark background base.
 */

:root [data-md-color-scheme="slate"] {
  /* Reliable Engineering Palette */
  --md-default-bg-color: #0F1115; /* Clean dark slate */
  --md-default-fg-color: #E2E8F0; /* Off-white */
  --md-default-fg-color--light: #94A3B8; /* Muted text */
  --md-default-fg-color--x-light: #373C48; /* Borders */
  
  /* Primary & Accent */
  --md-primary-bg-color: #1A1D24; /* Header background */
  --md-typeset-a-color: #0284C7; /* Engineering Blue */
  --md-accent-fg-color: #0284C7;
  
  /* Code Blocks */
  --md-code-bg-color: #161921;
}

/* ── Header overrides ─────────────────────────────────────────────── */
.md-header {
  border-bottom: 1px solid var(--md-default-fg-color--x-light);
  box-shadow: none !important;
}

.md-search__inner, .md-sidebar__scrollwrap {
  box-shadow: none !important;
}

/* ── Inline code & Admonitions ─────────────────────────────────────── */
.md-typeset code {
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--x-light);
  border-radius: 4px;
  padding: 0.2em 0.4em;
}

.md-typeset .admonition {
  background-color: transparent !important;
  border: 1px solid var(--md-default-fg-color--x-light) !important;
  border-left-width: 3px !important;
  border-radius: 6px;
}

/* ── Navigation cards on the home page ────────────────────────────── */
.pcc-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pcc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: #262A33; /* Surface Raised */
  border: 1px solid var(--md-default-fg-color--x-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--md-default-fg-color);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pcc-card:hover {
  border-color: var(--md-typeset-a-color);
  background: #2D323C;
  text-decoration: none;
  color: var(--md-default-fg-color);
}

.pcc-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.pcc-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--md-typeset-a-color);
  margin-bottom: 0.25rem;
}

.pcc-card__desc {
  font-size: 0.82rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.45;
}

/* ── Hero / landing header ─────────────────────────────────────────── */
.pcc-hero {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
}

.pcc-hero__logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: #262A33;
  border: 1px solid var(--md-default-fg-color--x-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--md-typeset-a-color);
}

.pcc-hero__tagline {
  font-size: 1.15rem;
  color: var(--md-default-fg-color--light);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* ── CI Configurator Widget ────────────────────────────────────────── */
.pcc-ci-widget {
  background: #1A1D24;
  border: 1px solid var(--md-default-fg-color--x-light);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.pcc-ci-widget select {
  background: #262A33;
  color: var(--md-default-fg-color);
  border: 1px solid var(--md-default-fg-color--x-light);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  font-family: inherit;
}

.pcc-ci-widget label {
  font-size: 0.85rem;
  color: var(--md-default-fg-color--light);
  margin-right: 0.5rem;
  font-weight: 500;
}

.pcc-ci-controls {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
