/* Custom styles for TRAILED documentation */

:root {
  --trailed-primary: #06b6d4;
  --trailed-primary-dark: #0891b2;
  --trailed-accent: #22d3ee;
  --trailed-topo: #8b5cf6;
  --trailed-success: #10b981;
}

.sidebar-logo {
  cursor: pointer;
}

/* Card styling */
.intro-card {
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  text-align: center;
  border-top: 3px solid var(--trailed-primary);
}

.intro-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.intro-card h3 {
  margin-top: 0;
  font-size: 1.1em;
  font-weight: 600;
}

.intro-card p {
  font-size: 0.9em;
  line-height: 1.5;
}

/* Button styling */
.sd-btn-secondary {
  background-color: var(--trailed-primary) !important;
  border-color: var(--trailed-primary) !important;
}

.sd-btn-secondary:hover {
  background-color: var(--trailed-primary-dark) !important;
  border-color: var(--trailed-primary-dark) !important;
}

/* Code block enhancements */
.highlight pre {
  border-radius: 6px;
  padding: 1rem;
}

/* Mermaid diagram styling */
.mermaid {
  margin: 1.5rem 0;
}

/* Table improvements */
table.docutils {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

table.docutils th {
  background-color: var(--trailed-primary);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

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

/* Admonition styling */
.admonition.note {
  border-left-color: var(--trailed-primary);
}

.admonition.tip {
  border-left-color: var(--trailed-success);
}

/* Math/topology callout */
.admonition.math-note {
  border-left-color: var(--trailed-topo);
  background-color: rgba(139, 92, 246, 0.05);
}

/* References section */
.references {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Sidebar active link */
.sidebar-tree .current > .reference {
  font-weight: 600;
  color: var(--trailed-primary);
}

/* Section headers */
h2 {
  border-bottom: 2px solid var(--trailed-primary);
  padding-bottom: 0.5rem;
}

/* PyTorch/sklearn integration badges */
.integration-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.integration-badge.sklearn {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #0ea5e9;
}

.integration-badge.pytorch {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #f59e0b;
}
