/* Custom styles for fedinesia documentation */

/* Code block styling */
.md-typeset pre > code {
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Inline code styling */
.md-typeset code {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 0.2rem;
    padding: 0.2em 0.4em;
}

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

/* Table styling */
.md-typeset table:not([class]) {
    font-size: 0.8rem;
}

.md-typeset table:not([class]) th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Admonition styling */
.md-typeset .admonition {
    border-radius: 0.5rem;
    border-width: 0;
    border-left-width: 0.3rem;
}

/* Navigation spacing */
.md-nav__item {
    margin-bottom: 0.5rem;
}

/* Header link styling */
.md-typeset h1 .headerlink,
.md-typeset h2 .headerlink,
.md-typeset h3 .headerlink,
.md-typeset h4 .headerlink {
    opacity: 0.5;
    transition: opacity 0.2s;
}

.md-typeset h1:hover .headerlink,
.md-typeset h2:hover .headerlink,
.md-typeset h3:hover .headerlink,
.md-typeset h4:hover .headerlink {
    opacity: 1;
}

/* Custom admonition types */
.md-typeset .admonition.tip,
.md-typeset details.tip {
    border-color: #00b894;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
    border-color: #fdcb6e;
}

.md-typeset .admonition.danger,
.md-typeset details.danger {
    border-color: #e17055;
}

/* Better spacing for lists */
.md-typeset ul li,
.md-typeset ol li {
    margin-bottom: 0.25rem;
}

/* Improve contrast for links */
.md-typeset a {
    text-decoration: underline;
    text-decoration-thickness: 0.1em;
    text-underline-offset: 0.2em;
}

.md-typeset a:hover {
    text-decoration-thickness: 0.15em;
}

/* Footer styling */
.md-footer {
    margin-top: 2rem;
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
    .md-nav--primary .md-nav__title {
        background-color: var(--md-primary-fg-color);
        color: var(--md-primary-bg-color);
    }
}

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

    .md-content {
        margin: 0;
        padding: 0;
    }

    .md-typeset pre > code {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}
