/* Custom styles for MBASIC documentation */

/* BASIC code highlighting */
code {
  font-family: 'Courier New', Consolas, Monaco, monospace;
}

.language-basic {
  background-color: #f5f5f5;
}

[data-md-color-scheme="slate"] .language-basic {
  background-color: #2b2b2b;
}

/* Grid cards for home page */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.grid.cards > * {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  padding: 1.5rem;
  transition: all 0.2s;
}

.grid.cards > *:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Emoji icons in cards */
.grid.cards .lg {
  font-size: 2.5em;
  margin-bottom: 0.5rem;
}

.grid.cards .middle {
  vertical-align: middle;
}

/* Three-tier documentation markers */
.tier-ui::before {
  content: "📘 ";
}

.tier-mbasic::before {
  content: "📗 ";
}

.tier-language::before {
  content: "📕 ";
}

/* Code block improvements */
.highlight pre {
  border-left: 3px solid var(--md-accent-fg-color);
  padding-left: 1rem;
}

/* Keyboard shortcuts styling */
kbd {
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  color: #333;
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85em;
  line-height: 1;
  padding: 2px 4px;
  white-space: nowrap;
}

[data-md-color-scheme="slate"] kbd {
  background-color: #424242;
  border-color: #666;
  color: #eee;
}

/* BASIC statement tables */
table {
  font-size: 0.9em;
}

table th {
  background-color: var(--md-primary-fg-color);
  color: white;
}

/* Quick reference styling */
.md-typeset h2 code {
  background-color: transparent;
  color: var(--md-accent-fg-color);
  font-weight: bold;
}

/* Example program styling */
.example-program {
  background-color: #f0f0f0;
  border-left: 4px solid #4051b5;
  padding: 1rem;
  margin: 1rem 0;
}

[data-md-color-scheme="slate"] .example-program {
  background-color: #2d2d2d;
  border-color: #7986cb;
}

/* Navigation breadcrumb styling */
.md-nav__title {
  font-weight: 600;
}

/* Admonition customization for BASIC tips */
.md-typeset .admonition.tip .admonition-title::before {
  content: "💡 ";
}

.md-typeset .admonition.warning .admonition-title::before {
  content: "⚠️ ";
}

.md-typeset .admonition.note .admonition-title::before {
  content: "📝 ";
}

/* Search highlighting */
.md-search-result__article--document {
  font-weight: bold;
}

/* Footer customization */
.md-footer-meta {
  background-color: var(--md-footer-bg-color--dark);
}
