/* GeckoCIRCUITS Documentation Custom Styles */

/* Primary color scheme */
:root {
  --md-primary-fg-color: #3f51b5;
  --md-primary-fg-color--light: #5c6bc0;
  --md-primary-fg-color--dark: #303f9f;
  --md-accent-fg-color: #ffc107;
}

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

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

/* Circuit diagram styling */
.md-typeset pre.circuit {
  font-family: 'Courier New', monospace;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
}

[data-md-color-scheme="slate"] .md-typeset pre.circuit {
  background: #2d2d2d;
}

/* Tutorial card grid */
.md-typeset .tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.md-typeset .tutorial-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1rem;
  transition: box-shadow 0.2s;
}

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

/* Difficulty indicators */
.md-typeset .difficulty {
  display: inline-flex;
  gap: 2px;
}

.md-typeset .difficulty-star {
  color: #ffc107;
}

.md-typeset .difficulty-star--empty {
  color: #e0e0e0;
}

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

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

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

.md-typeset .status-badge--placeholder {
  background: #9e9e9e;
  color: white;
}

/* Equation styling */
.md-typeset .equation {
  background: #f8f8f8;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--md-primary-fg-color);
  margin: 1rem 0;
}

[data-md-color-scheme="slate"] .md-typeset .equation {
  background: #1e1e1e;
}

/* Component parameter tables */
.md-typeset table.parameters {
  font-size: 0.9rem;
}

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

/* Topology comparison tables */
.md-typeset table.comparison td:first-child {
  font-weight: 500;
}

/* Code annotation improvements */
.md-typeset .md-annotation__index {
  background: var(--md-primary-fg-color);
}

/* Mermaid diagram sizing */
.md-typeset .mermaid {
  text-align: center;
}

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

/* Print styles */
@media print {
  .md-typeset .no-print {
    display: none !important;
  }
}
