/* vex Documentation Styling */

:root {
  --md-primary-fg-color: #2563eb;
  --md-accent-fg-color: #06b6d4;
  --md-code-bg-color: #1f2937;
  --md-code-fg-color: #e5e7eb;
}

/* Enhanced Typography */
body {
  font-feature-settings: 'kern';
  letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Code Styling */
code {
  background-color: rgba(38, 99, 235, 0.1);
  color: #2563eb;
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9em;
}

pre {
  background-color: #0f172a !important;
  border: 1px solid #1e293b !important;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* Admonitions */
.admonition {
  border-left: 4px solid;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1.5rem 0;
  background-color: rgba(0, 0, 0, 0.05);
}

.admonition.note {
  border-left-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

.admonition.warning {
  border-left-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.05);
}

.admonition.success {
  border-left-color: #10b981;
  background-color: rgba(16, 185, 129, 0.05);
}

.admonition.danger {
  border-left-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

.admonition > .admonition-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

table thead {
  background-color: rgba(38, 99, 235, 0.1);
}

table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #2563eb;
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

table tbody tr:hover {
  background-color: rgba(38, 99, 235, 0.05);
}

/* Buttons & Links */
a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #06b6d4;
  text-decoration: underline;
}

.md-button {
  background-color: #2563eb;
  color: white;
  border-radius: 0.375rem;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.md-button:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Navigation */
.md-nav {
  font-size: 0.95rem;
}

.md-nav__link {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.md-nav__link:hover,
.md-nav__link--active {
  background-color: rgba(38, 99, 235, 0.1);
  color: #2563eb;
}

/* Search */
.md-search-result__preview {
  color: #6b7280;
  line-height: 1.6;
}

/* Hero Section */
.md-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 3rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.md-hero h1 {
  color: white;
  -webkit-text-fill-color: unset;
  background: unset;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.md-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* Feature Cards */
.feature-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transform: translateY(-4px);
}

.feature-card h3 {
  color: #2563eb;
  margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .md-hero h1 {
    font-size: 2rem;
  }

  .md-hero {
    padding: 2rem 1rem;
  }
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .admonition,
[data-md-color-scheme="slate"] .feature-card {
  background-color: #1e293b;
  border-color: #334155;
}

[data-md-color-scheme="slate"] table thead {
  background-color: rgba(38, 99, 235, 0.15);
}

[data-md-color-scheme="slate"] table td {
  border-bottom-color: #334155;
}

[data-md-color-scheme="slate"] table tbody tr:hover {
  background-color: rgba(38, 99, 235, 0.1);
}
