/* Custom styles for Phil documentation */

:root {
  --phil-primary: #6366f1;
  --phil-primary-dark: #4f46e5;
  --phil-accent: #8b5cf6;
  --phil-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(--phil-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(--phil-primary) !important;
  border-color: var(--phil-primary) !important;
}

.sd-btn-secondary:hover {
  background-color: var(--phil-primary-dark) !important;
  border-color: var(--phil-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(--phil-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(--phil-primary);
}

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

/* 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(--phil-primary);
}

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