/* Hero section */
.hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(63, 81, 181, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-radius: 12px;
}

.hero-text {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Badges hero section */
.badges-hero {
    text-align: center;
    margin: 1.5rem 0;
    line-height: 2.5;
}

.badges-hero p {
    margin: 0.5rem 0;
}

.badges-hero img {
    display: inline-block;
    margin: 0.25rem 0.5rem;
    vertical-align: middle;
}

/* Force line breaks for badge groups */
.badges-hero p:first-of-type {
    margin-bottom: 0.75rem;
}

/* Links hero section */
.links-hero {
    text-align: center;
    margin: 1rem 0;
    line-height: 1.8;
}

.links-hero p {
    margin: 0.5rem 0;
}

.links-hero a {
    margin: 0 0.5rem;
    text-decoration: none;
}

:root {
    /* widen content area */
    --md-typeset-max-width: 1200px;
}

.md-grid {
    max-width: 1500px;
}

@media screen and (min-width: 1220px) {
    .md-sidebar--primary,
    .md-sidebar--secondary {
        width: 220px;
    }
}

/* Mind map container */
.mindmap-container {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem 0;
    background: #fff;
}

.mindmap-container iframe {
    display: block;
    width: 100%;
    height: 500px;
    border: none;
}

[data-md-color-scheme="slate"] .mindmap-container {
    background: #1e1e1e;
    border-color: #444;
}

/* Cards grid enhancement */
.grid.cards > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.grid.cards > ul > li {
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: 8px;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.grid.cards > ul > li:hover {
    border-color: var(--md-accent-fg-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Code blocks - smaller font */
.md-typeset code {
    font-size: 0.75em;
}

.md-typeset pre code {
    font-size: 0.8em;
}

.highlight code {
    font-size: 0.8em;
}

/* Inline code */
.md-typeset code:not(pre code) {
    font-size: 0.75em;
    padding: 0.1em 0.3em;
}

/* Tables */
.md-typeset table:not([class]) {
    font-size: 0.85rem;
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.md-typeset table:not([class]) th {
    background: var(--md-default-fg-color--lightest);
    font-weight: 600;
    padding: 0.8rem 1rem;
    text-align: left;
}

.md-typeset table:not([class]) td {
    padding: 0.8rem 1rem;
    vertical-align: top;
}

/* Comparison table styling */
.md-typeset table:not([class]) tr:nth-child(even) {
    background-color: var(--md-default-bg-color--lightest);
}

.md-typeset table:not([class]) tr:hover {
    background-color: var(--md-default-bg-color--lighter);
}

/* Ensure tables don't overflow on mobile */
@media screen and (max-width: 768px) {
    .md-typeset table:not([class]) {
        font-size: 0.75rem;
    }
    
    .md-typeset table:not([class]) th,
    .md-typeset table:not([class]) td {
        padding: 0.5rem 0.5rem;
    }
    
    /* Allow horizontal scroll for wide tables */
    .md-typeset {
        overflow-x: auto;
    }
}

/* Admonitions */
.md-typeset .admonition {
    font-size: 0.9rem;
}

/* Button styling */
.md-button {
    margin-top: 0.5rem;
}

/* Navigation tabs */
.md-tabs__link {
    font-weight: 500;
}

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

/* Responsive */
@media screen and (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .mindmap-container iframe {
        height: 350px !important;
    }
}

