/* Custom CSS for Linux Internals Study Guide */
/* Linux-inspired theme: Black, White, and Yellow */

:root {
  --linux-yellow: #ffcc00;
  --linux-yellow-dark: #e6b800;
  --linux-black: #000000;
  --terminal-green: #00ff00;
}

/* Improve code block styling - terminal style */
.highlight {
  margin: 1em 0;
  border-left: 3px solid var(--linux-yellow);
}

/* Dark mode code blocks - terminal appearance */
[data-md-color-scheme="slate"] .highlight {
  background-color: #1a1a1a !important;
  border-left: 3px solid var(--linux-yellow);
}

/* Inline code - yellow highlight in dark mode */
[data-md-color-scheme="slate"] code {
  background-color: #2a2a2a;
  color: var(--linux-yellow);
}

/* Light mode inline code */
[data-md-color-scheme="default"] code {
  background-color: #f5f5f5;
  color: #000000;
  border: 1px solid #e0e0e0;
}

/* Custom styling for admonitions */
.admonition {
  margin: 1.5em 0;
  border-left-width: 4px;
}

/* Warning admonitions - yellow accent */
.admonition.warning {
  border-left-color: var(--linux-yellow);
}

/* Improve table styling */
table {
  width: 100%;
  margin: 1.5em 0;
}

/* Table headers - black background, yellow text in dark mode */
[data-md-color-scheme="slate"] table thead {
  background-color: var(--linux-black);
}

[data-md-color-scheme="slate"] table thead th {
  color: var(--linux-yellow);
}

/* Add spacing for command examples */
code {
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-weight: 500;
}

/* Improve heading spacing */
h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  border-bottom: 2px solid var(--linux-yellow);
  padding-bottom: 0.3em;
}

h3 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* Custom class for interview questions */
.interview-question {
  background-color: var(--md-default-fg-color--lightest);
  padding: 1em;
  border-left: 4px solid var(--linux-yellow);
  margin: 1.5em 0;
}

/* Improve list styling in content */
.md-content ul, .md-content ol {
  margin: 1em 0;
}

.md-content li {
  margin: 0.5em 0;
}

/* Links - yellow accent in dark mode */
[data-md-color-scheme="slate"] .md-content a {
  color: var(--linux-yellow);
}

[data-md-color-scheme="slate"] .md-content a:hover {
  color: var(--linux-yellow-dark);
  text-decoration: underline;
}

/* Keyboard keys styling */
.keys kbd {
  background-color: var(--linux-yellow);
  color: var(--linux-black);
  border: 1px solid var(--linux-black);
  font-weight: bold;
}

/* Blockquotes - terminal style */
[data-md-color-scheme="slate"] blockquote {
  border-left: 4px solid var(--linux-yellow);
  background-color: #1a1a1a;
}

/* Search highlight - yellow */
[data-md-color-scheme="slate"] .md-search-result__article--document mark {
  background-color: var(--linux-yellow);
  color: var(--linux-black);
}

/* Navigation active item - yellow accent */
[data-md-color-scheme="slate"] .md-nav__link--active {
  color: var(--linux-yellow) !important;
}

/* Terminal-style prompt for code blocks with bash/shell */
[data-md-color-scheme="slate"] .language-bash::before,
[data-md-color-scheme="slate"] .language-shell::before {
  content: "$ ";
  color: var(--linux-yellow);
  font-weight: bold;
}
