/* Custom primary color */
:root {
  --md-primary-fg-color: #4f46e5;
  --md-primary-fg-color--light: #6366f1;
  --md-primary-fg-color--dark: #3730a3;
  --md-accent-fg-color: #06b6d4;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #6366f1;
  --md-primary-fg-color--light: #818cf8;
  --md-primary-fg-color--dark: #4f46e5;
  --md-accent-fg-color: #22d3ee;
}

/* Hero-style header for the main page */
.md-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-md-color-scheme="slate"] .md-content h1 {
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section headers */
.md-content h2 {
  font-weight: 700;
  border-bottom: 2px solid var(--md-primary-fg-color--light);
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
}

.md-content h3 {
  font-weight: 600;
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .md-content h3 {
  color: var(--md-primary-fg-color--light);
}

/* Improve list styling */
.md-content ul li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

/* Style links in lists with subtle indicator */
.md-content ul li > a:first-child,
.md-content td > a:first-child {
  font-weight: 600;
}

/* Table styling */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color--dark);
}

.md-typeset table:not([class]) td {
  vertical-align: top;
}

.md-typeset table:not([class]) tr:hover td {
  background-color: rgba(99, 102, 241, 0.04);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr:hover td {
  background-color: rgba(99, 102, 241, 0.08);
}

/* Badge styling for the awesome badge */
.md-content > blockquote:first-of-type {
  border-left-color: var(--md-primary-fg-color);
  font-size: 1.1rem;
  font-style: normal;
  color: var(--md-typeset-color);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(6, 182, 212, 0.06));
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
}

[data-md-color-scheme="slate"] .md-content > blockquote:first-of-type {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.08));
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Footer tweaks */
.md-footer {
  margin-top: 3rem;
}

/* Responsive table */
@media screen and (max-width: 768px) {
  .md-typeset table:not([class]) {
    font-size: 0.8rem;
  }
}
