/* VS Code Dark+ Theme for Pygments (Customized for Kedi) */

/* Base background and text color */
[data-md-color-scheme="slate"] .highlight {
  background-color: #1e1e1e;
  color: #d4d4d4;
}

/* Comments - Green #6A9955 */
[data-md-color-scheme="slate"] .highlight .c,
[data-md-color-scheme="slate"] .highlight .ch,
[data-md-color-scheme="slate"] .highlight .cm,
[data-md-color-scheme="slate"] .highlight .cp,
[data-md-color-scheme="slate"] .highlight .cpf,
[data-md-color-scheme="slate"] .highlight .c1,
[data-md-color-scheme="slate"] .highlight .cs {
  color: #6a9955;
}

/* Keywords & Operators - Pink/Purple #C586C0 */
/* Matches '=' and '@' in Kedi screenshot */
[data-md-color-scheme="slate"] .highlight .k,
[data-md-color-scheme="slate"] .highlight .kd,
[data-md-color-scheme="slate"] .highlight .kn,
[data-md-color-scheme="slate"] .highlight .kp,
[data-md-color-scheme="slate"] .highlight .kr,
[data-md-color-scheme="slate"] .highlight .ow,
[data-md-color-scheme="slate"] .highlight .o {
  color: #c586c0;
}

/* Decorators - Pink #C586C0 */
/* Matches '@' in Kedi screenshot */
[data-md-color-scheme="slate"] .highlight .nd {
  color: #c586c0;
}

/* Variables & Parameters - Orange #CE9178 */
/* Matches 'llm_best', 'arch_result' in Kedi screenshot */
[data-md-color-scheme="slate"] .highlight .n, 
[data-md-color-scheme="slate"] .highlight .na, 
[data-md-color-scheme="slate"] .highlight .nb, /* Builtins like list, print seem white in screenshot, but let's check context */
[data-md-color-scheme="slate"] .highlight .bp, 
[data-md-color-scheme="slate"] .highlight .nv, 
[data-md-color-scheme="slate"] .highlight .vc, 
[data-md-color-scheme="slate"] .highlight .vg, 
[data-md-color-scheme="slate"] .highlight .vi {
  color: #ce9178;
}

/* Functions - White #d4d4d4 */
/* Matches 'run_comparison', 'print' in Kedi screenshot */
[data-md-color-scheme="slate"] .highlight .nf,
[data-md-color-scheme="slate"] .highlight .fm {
  color: #d4d4d4;
}

/* Builtins & Types - White #d4d4d4 */
/* Matches 'Architecture', 'float', 'list', 'Tuple' in Kedi screenshot */
[data-md-color-scheme="slate"] .highlight .nb,
[data-md-color-scheme="slate"] .highlight .nc,
[data-md-color-scheme="slate"] .highlight .kt {
  color: #d4d4d4;
}

/* Strings - Orange #CE9178 */
[data-md-color-scheme="slate"] .highlight .s,
[data-md-color-scheme="slate"] .highlight .sa,
[data-md-color-scheme="slate"] .highlight .sb,
[data-md-color-scheme="slate"] .highlight .sc,
[data-md-color-scheme="slate"] .highlight .dl,
[data-md-color-scheme="slate"] .highlight .sd,
[data-md-color-scheme="slate"] .highlight .s2,
[data-md-color-scheme="slate"] .highlight .se,
[data-md-color-scheme="slate"] .highlight .sh,
[data-md-color-scheme="slate"] .highlight .si,
[data-md-color-scheme="slate"] .highlight .sx,
[data-md-color-scheme="slate"] .highlight .sr,
[data-md-color-scheme="slate"] .highlight .s1,
[data-md-color-scheme="slate"] .highlight .ss {
  color: #ce9178;
}

/* Punctuation - White #d4d4d4 */
/* Matches [], <>, () */
[data-md-color-scheme="slate"] .highlight .p {
  color: #d4d4d4;
}

/* ============================================ */
/* Material Theme Enhancements                   */
/* ============================================ */

/* Hero section styling */
.hero-title h2 {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--md-default-fg-color--light);
  margin-bottom: 1rem;
}

/* Card grid enhancements */
.md-typeset .grid.cards > ul > li {
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Table styling */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

/* Admonition icon sizing */
.md-typeset .admonition .admonition-title::before,
.md-typeset details .admonition-title::before {
  font-size: 1.1rem;
}

/* Code block title styling */
.md-typeset .highlight > .filename {
  border-radius: 4px 4px 0 0;
  background-color: #2d2d2d;
  border-bottom: 1px solid #3d3d3d;
}

/* Tab styling */
.md-typeset .tabbed-labels > label {
  font-weight: 500;
}

/* Mermaid diagram styling */
.mermaid {
  background-color: transparent !important;
}

[data-md-color-scheme="slate"] .mermaid text {
  fill: #d4d4d4 !important;
}

/* Button styling */
.md-typeset .md-button {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
}

.md-typeset .md-button:hover {
  transform: translateY(-1px);
}

/* Horizontal rule styling */
.md-typeset hr {
  border-color: var(--md-default-fg-color--lightest);
  margin: 2rem 0;
}

/* Grid cards styling for home page */
.md-typeset .grid {
  display: grid;
  grid-gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin: 1em 0;
}

.md-typeset .grid.cards > ul {
  display: contents;
  padding: 0;
  margin: 0;
}

.md-typeset .grid.cards > ul > li {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 1rem;
  border: 0.05rem solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  list-style: none;
  margin: 0;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.md-typeset .grid.cards > ul > li > hr {
  margin: 0.5rem 0;
}

.md-typeset .grid.cards > ul > li > :first-child {
  margin-top: 0;
}

.md-typeset .grid.cards > ul > li > :last-child {
  margin-bottom: 0;
}

/* Large icons in grid cards */
.lg.middle {
  font-size: 2rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Hero section */
.hero-section {
  text-align: center;
  padding: 2rem 0;
}

.hero-section .md-button {
  margin: 0.5rem;
}
