/* Custom styles for GridFIA documentation */

/* Enhanced diagram styling */
.mermaid {
    background-color: transparent !important;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark mode diagram support */
[data-md-color-scheme="slate"] .mermaid {
    background-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Code block enhancements */
.highlight {
    border-radius: 6px;
    overflow: hidden;
}

/* Enhanced admonitions */
.md-typeset .admonition {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Forest-themed color accents */
.md-typeset .admonition.note {
    border-left-color: #4CAF50;
}

.md-typeset .admonition.tip {
    border-left-color: #2E7D32;
}

.md-typeset .admonition.warning {
    border-left-color: #FF8F00;
}

.md-typeset .admonition.danger {
    border-left-color: #D32F2F;
}

/* Table styling improvements */
.md-typeset table:not([class]) {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* Enhanced navigation */
.md-tabs__link {
    font-weight: 500;
}

/* Code inline styling */
.md-typeset code {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--md-code-fg-color);
    border-radius: 4px;
    padding: 2px 4px;
}

/* Forest icon customizations */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
    width: 28px;
    height: 28px;
    filter: brightness(1.1);
}

/* Enhanced content spacing */
.md-typeset h1 {
    margin-top: 0;
    color: var(--md-primary-fg-color);
}

.md-typeset h2 {
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
    padding-bottom: 8px;
    margin-top: 2em;
}

/* Responsive diagram container */
.diagram-container {
    overflow-x: auto;
    margin: 20px 0;
}

/* Feature cards styling */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.feature-card {
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(76, 175, 80, 0.05);
    border-left: 4px solid var(--md-primary-fg-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* Code snippet containers */
.code-example {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.code-example .highlight {
    margin: 0;
}

/* Enhanced lists */
.md-typeset ul li {
    margin-bottom: 4px;
}

.md-typeset ul li::marker {
    color: var(--md-primary-fg-color);
}

/* Badge styling */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--md-primary-fg-color);
    margin: 2px 4px;
}

.badge.version {
    background-color: rgba(33, 150, 243, 0.1);
    color: #1976D2;
}

.badge.status {
    background-color: rgba(255, 193, 7, 0.1);
    color: #F57C00;
}

/* Architecture diagram specific styling */
.architecture-diagram {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(46, 125, 50, 0.05) 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--md-accent-fg-color);
}

[data-md-color-scheme="slate"] .architecture-diagram {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .mermaid {
        padding: 12px;
        font-size: 0.9em;
    }
}

/* Print styles */
@media print {
    .mermaid {
        background-color: white !important;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 