/* Custom CSS for Lyra Documentation */

/* Custom color scheme adjustments */
:root {
    --md-primary-fg-color: #3949ab;
    --md-accent-fg-color: #536dfe;
}

/* Grid cards styling */
.md-typeset .grid.cards > ul > li {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.5rem;
}

/* Enhanced code blocks */
.md-typeset pre > code {
    border-radius: 0.3rem;
}

/* Admonition styling improvements */
.md-typeset .admonition {
    border-radius: 0.4rem;
}

/* Table styling */
.md-typeset table:not([class]) {
    border-radius: 0.3rem;
    overflow: hidden;
}

/* Custom logo sizing */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    height: 2rem;
    width: auto;
}

/* Footer customization */
.md-footer-meta {
    background-color: var(--md-footer-bg-color);
}

/* Search result highlighting */
.md-search-result__article--document {
    border-left: 3px solid var(--md-accent-fg-color);
}

/* Responsive images */
.md-typeset img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Command/code copy button styling */
.md-clipboard {
    color: var(--md-default-fg-color--lighter);
}

/* Navigation tabs */
.md-tabs {
    background-color: var(--md-primary-fg-color);
}

/* Custom table of contents styling */
.md-sidebar--secondary {
    border-left: 1px solid var(--md-default-fg-color--lightest);
}

/* Hero section (for homepage) */
.hero {
    padding: 2rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-item {
    padding: 1.5rem;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 0.5rem;
    text-align: center;
}

/* Warning/info boxes */
.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.3rem;
}

.info-box {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.3rem;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .warning-box {
    background-color: rgba(255, 193, 7, 0.1);
}

[data-md-color-scheme="slate"] .info-box {
    background-color: rgba(23, 162, 184, 0.1);
}

/* Print styles */
@media print {
    .md-header,
    .md-sidebar,
    .md-footer {
        display: none;
    }

    .md-content {
        max-width: 100%;
    }
}
