/* Custom styles for Orbita documentation */

/* Brand colors */
:root {
  --orbita-primary: #4051b5;
  --orbita-secondary: #5a67d8;
  --orbita-accent: #667eea;
}

/* Custom header styling */
.md-header {
  background: linear-gradient(135deg, var(--orbita-primary) 0%, var(--orbita-secondary) 100%);
}

/* Improve code block readability */
.highlight code {
  font-size: 0.9em;
  line-height: 1.5;
}

/* Custom admonition colors */
.admonition.tip {
  border-left-color: #00c853;
}

.admonition.warning {
  border-left-color: #ff9800;
}

.admonition.danger {
  border-left-color: #f44336;
}

/* Table improvements */
table {
  width: 100%;
  margin: 1em 0;
}

table th {
  background-color: var(--orbita-primary);
  color: white;
  font-weight: 600;
}

/* Grid card styling */
.grid.cards {
  grid-gap: 1.5rem;
}

.grid.cards > * {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.grid.cards > *:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Improve spacing for lists */
ul li, ol li {
  margin-bottom: 0.5em;
}

/* Custom styling for keyboard keys */
kbd {
  padding: 0.2em 0.4em;
  font-size: 85%;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Improve blockquote styling */
blockquote {
  border-left: 4px solid var(--orbita-accent);
  padding-left: 1em;
  margin-left: 0;
  font-style: italic;
  color: #666;
}

/* Footer customization */
.md-footer {
  background-color: #263238;
}

/* Syntax highlighting improvements */
.highlight .hll { background-color: #ffffcc; }
.highlight .c { color: #999988; font-style: italic; }
.highlight .k { color: #000080; font-weight: bold; }
.highlight .s { color: #d14; }

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
  .grid.cards {
    grid-template-columns: 1fr !important;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: var(--orbita-primary);
  --md-accent-fg-color: var(--orbita-accent);
}

[data-md-color-scheme="slate"] table th {
  background-color: var(--orbita-secondary);
}

[data-md-color-scheme="slate"] kbd {
  background-color: #37474f;
  border-color: #546e7a;
}

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

/* Search box styling */
.md-search__input {
  border-radius: 4px;
}

/* Horizontal rule styling */
hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 2em 0;
}

[data-md-color-scheme="slate"] hr {
  border-top-color: #37474f;
}
