/* Custom styles for llamatelemetry documentation */

:root {
  --md-primary-fg-color: #3f51b5;
  --md-accent-fg-color: #673ab7;
}

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

.md-typeset .hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Feature cards */
.md-typeset .feature-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Code blocks */
.md-typeset code {
  background-color: var(--md-code-bg-color);
  border-radius: 0.2rem;
  padding: 0.1rem 0.3rem;
}

/* Admonitions */
.md-typeset .admonition.new {
  border-left-color: #673ab7;
}

.md-typeset .admonition.new > .admonition-title {
  background-color: rgba(103, 58, 183, 0.1);
}

/* Tables */
.md-typeset table:not([class]) {
  font-size: 0.85rem;
}

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

/* Buttons */
.md-button {
  margin: 0.5rem 0;
}

/* Grid cards */
.md-typeset .grid {
  grid-gap: 1rem;
}

.md-typeset .grid.cards > :is(ul, ol) > li,
.md-typeset .grid.cards > :is(ul, ol) {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Badge styles */
.md-typeset .badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.md-typeset .badge-new {
  background-color: #673ab7;
  color: white;
}

.md-typeset .badge-recommended {
  background-color: #4caf50;
  color: white;
}

/* Tutorial navigation */
.md-typeset .tutorial-nav {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

/* Responsive typography */
@media screen and (max-width: 76.1875em) {
  .md-typeset .hero h1 {
    font-size: 2rem;
  }
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .hero h1 {
    font-size: 1.5rem;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .md-typeset .feature-card {
  border-color: var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: rgba(63, 81, 181, 0.2);
}

/* Code highlighting */
.md-typeset .highlight .hll { background-color: #ffffcc }
.md-typeset .highlight .c { color: #408080; font-style: italic }
.md-typeset .highlight .k { color: #008000; font-weight: bold }
.md-typeset .highlight .o { color: #666666 }
.md-typeset .highlight .cm { color: #408080; font-style: italic }
.md-typeset .highlight .cp { color: #BC7A00 }
.md-typeset .highlight .c1 { color: #408080; font-style: italic }
.md-typeset .highlight .cs { color: #408080; font-style: italic }

/* Mermaid diagrams */
.mermaid {
  text-align: center;
  margin: 2rem 0;
}

/* Kaggle badge */
.kaggle-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background-color: #20beff;
  color: white;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.kaggle-badge:hover {
  background-color: #1aa3d9;
  color: white;
}

/* Version badge */
.version-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 0.3rem;
  font-size: 0.85rem;
  font-family: var(--md-code-font-family);
}

[data-md-color-scheme="slate"] .version-badge {
  background-color: #2d2d2d;
  border-color: #444;
}
