/* Custom styles for Peregrine L1 documentation */

:root {
  --md-primary-fg-color: #3f51b5;
  --md-primary-fg-color--light: #5c6bc0;
  --md-primary-fg-color--dark: #303f9f;
  --md-accent-fg-color: #536dfe;
}

/* Better typography */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-typeset h2 {
  font-weight: 600;
  margin-top: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

/* Hero section on home page */
.md-typeset .hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.md-typeset .hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.md-typeset .hero p {
  font-size: 1.2rem;
  color: var(--md-default-fg-color--light);
}

/* Cards for grid layout */
.md-typeset .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.md-typeset .card {
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  transition: transform 0.2s, box-shadow 0.2s;
}

.md-typeset .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.md-typeset .card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

/* Better tables */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
}

/* Status badges */
.md-typeset .status {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

.md-typeset .status-pending {
  background: #fff8e1;
  color: #f57c00;
}

.md-typeset .status-complete {
  background: #e8f5e9;
  color: #2e7d32;
}

.md-typeset .status-inprogress {
  background: #e3f2fd;
  color: #1565c0;
}

/* Image styling */
.md-typeset img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Admonition improvements */
.md-typeset .admonition {
  border-radius: 8px;
}

/* Footer cleanup */
.md-footer-meta {
  background: var(--md-primary-fg-color--dark);
}

/* Quick specs table on home */
.md-typeset .specs-table {
  max-width: 500px;
}

/* Hide "made with mkdocs" */
.md-footer-copyright {
  display: none;
}
