/* Cortex Linux Documentation - Custom Styles */

:root {
  --md-primary-fg-color: #1a73e8;
  --md-primary-fg-color--light: #4285f4;
  --md-primary-fg-color--dark: #0d47a1;
  --md-accent-fg-color: #00bcd4;
}

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

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

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

.md-typeset .grid-item {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
}

.md-typeset .grid-item h3 {
  margin-top: 0;
}

/* Code block enhancements */
.md-typeset pre > code {
  font-size: 0.85rem;
}

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

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

/* Mermaid diagram sizing */
.mermaid {
  text-align: center;
  margin: 1.5rem 0;
}

/* Admonition customization */
.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: #00bcd4;
}

.md-typeset .tip > .admonition-title,
.md-typeset .tip > summary {
  background-color: rgba(0, 188, 212, 0.1);
}

/* Status badges */
.md-typeset .status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

.md-typeset .status-badge.beta {
  background: #ff9800;
  color: white;
}

.md-typeset .status-badge.alpha {
  background: #f44336;
  color: white;
}

/* Terminal output styling */
.md-typeset .terminal {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}

.md-typeset .terminal .prompt {
  color: #4ec9b0;
}

.md-typeset .terminal .output {
  color: #9cdcfe;
}

/* Navigation improvements */
.md-nav__link {
  font-size: 0.85rem;
}

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

/* Print styles */
@media print {
  .md-sidebar,
  .md-header,
  .md-footer {
    display: none;
  }

  .md-content {
    margin: 0;
    padding: 0;
  }
}

/* Mobile responsiveness */
@media screen and (max-width: 76.1875em) {
  .md-typeset .grid {
    grid-template-columns: 1fr;
  }
}
