/* Custom styles for GeneForgeLang documentation */

/* Brand colors and styling */
:root {
  --md-primary-fg-color: #1976d2;
  --md-primary-fg-color--light: #42a5f5;
  --md-primary-fg-color--dark: #1565c0;
  --md-accent-fg-color: #2196f3;
}

/* Code blocks with genomic styling */
.highlight .nf {
  color: #4caf50; /* Green for function names */
}

.highlight .s {
  color: #ff9800; /* Orange for strings */
}

/* Custom admonitions for genomic content */
.md-typeset .admonition.dna,
.md-typeset details.dna {
  border-color: #4caf50;
}

.md-typeset .dna > .admonition-title,
.md-typeset .dna > summary {
  background-color: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

.md-typeset .dna > .admonition-title::before,
.md-typeset .dna > summary::before {
  background-color: #4caf50;
  mask-image: var(--md-admonition-icon--example);
}

/* Workflow status indicators */
.workflow-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
}

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

.status-in-progress {
  background-color: #ff9800;
  color: white;
}

.status-planned {
  background-color: #2196f3;
  color: white;
}

/* Feature matrix table styling */
.feature-matrix {
  width: 100%;
  margin: 1rem 0;
}

.feature-matrix th,
.feature-matrix td {
  text-align: center;
  vertical-align: middle;
}

.feature-matrix .feature-available {
  color: #4caf50;
  font-weight: bold;
}

.feature-matrix .feature-partial {
  color: #ff9800;
  font-weight: bold;
}

.feature-matrix .feature-unavailable {
  color: #f44336;
  font-weight: bold;
}

/* API endpoint styling */
.api-endpoint {
  font-family: var(--md-code-font);
  background-color: var(--md-code-bg-color);
  padding: 0.2em 0.4em;
  border-radius: 0.2em;
  font-weight: bold;
}

.api-get { color: #4caf50; }
.api-post { color: #2196f3; }
.api-put { color: #ff9800; }
.api-delete { color: #f44336; }

/* Genomic sequence styling */
.sequence {
  font-family: 'Courier New', monospace;
  background-color: #f5f5f5;
  padding: 0.5rem;
  border-left: 4px solid #4caf50;
  margin: 1rem 0;
  letter-spacing: 1px;
}

.sequence-dna { color: #1976d2; }
.sequence-rna { color: #9c27b0; }
.sequence-protein { color: #ff5722; }

/* Performance metrics styling */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.metric-card {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  padding: 1rem;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--md-primary-fg-color);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress bars for coverage/completeness */
.progress-bar {
  width: 100%;
  height: 20px;
  background-color: var(--md-default-fg-color--lightest);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  transition: width 0.3s ease;
}

/* Command line examples */
.cli-example {
  background-color: #263238;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.2rem;
  font-family: var(--md-code-font);
  margin: 1rem 0;
}

.cli-prompt {
  color: #4caf50;
  font-weight: bold;
}

.cli-output {
  color: #b0bec5;
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media screen and (max-width: 45em) {
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}
