/* PRISM Documentation - Custom Styles */

/* ============================================
   Variables
   ============================================ */
:root {
  --prism-accent: #3f51b5;
  --prism-accent-hover: #303f9f;
}

/* ============================================
   Content Bottom Padding (single fix)
   ============================================ */
.md-content__inner {
  padding-bottom: 4rem;
}

/* ============================================
   Navigation Active Indicator
   ============================================ */
.md-nav--primary .md-nav__link--active {
  font-weight: 600;
  position: relative;
}

.md-nav--primary .md-nav__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--md-primary-fg-color);
  border-radius: 0 3px 3px 0;
}

/* ============================================
   Code Blocks
   ============================================ */
.md-typeset pre {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

[data-md-color-scheme="slate"] .md-typeset pre {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Tables
   ============================================ */
.md-typeset table {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.md-typeset table th {
  font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset table {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Feature Card Grid (homepage)
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-card {
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-md-color-scheme="slate"] .feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ============================================
   Buttons
   ============================================ */
.md-button {
  border-radius: 6px;
}

/* ============================================
   Admonitions (dark-mode friendly)
   ============================================ */
.admonition {
  border-radius: 6px;
}

/* ============================================
   Quick Start Admonition (example type)
   ============================================ */
.md-typeset .admonition.example,
.md-typeset details.example {
  border-width: 2px;
}

/* ============================================
   What's Next List
   ============================================ */
.whats-next ul {
  list-style: none;
  padding-left: 0;
}

.whats-next li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-md-color-scheme="slate"] .whats-next li {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.whats-next li:last-child {
  border-bottom: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
