/* Custom CSS for Groggy documentation */

/* Logo styling */
.wy-side-nav-search .wy-dropdown > a img.logo, 
.wy-side-nav-search > a img.logo {
    width: auto;
    height: 45px;
    max-height: 45px;
}

/* Code block improvements */
.highlight {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin: 1em 0;
}

.highlight pre {
    background: transparent;
    border: none;
    margin: 0;
    padding: 12px;
}

/* Admonition styling */
.admonition {
    border-left: 4px solid #2980b9;
    border-radius: 4px;
    margin: 1em 0;
    padding: 0.8em 1em;
    background: #f8f9fa;
}

.admonition.note {
    border-left-color: #2980b9;
}

.admonition.warning {
    border-left-color: #f39c12;
    background: #fef8e7;
}

.admonition.tip {
    border-left-color: #27ae60;
    background: #eafaf1;
}

/* API documentation improvements */
.py.class > dt, .py.function > dt, .py.method > dt {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 8px 12px;
    margin: 1em 0 0.5em 0;
}

.py.class > dd, .py.function > dd, .py.method > dd {
    margin-left: 0;
    padding-left: 1em;
    border-left: 2px solid #e9ecef;
}

/* Table styling */
.wy-table-responsive table td, .wy-table-responsive table th {
    white-space: normal;
}

.rst-content table.docutils th {
    background: #2980b9;
    color: white;
}

.rst-content table.docutils td {
    border-bottom: 1px solid #e1e4e5;
}

/* Navigation improvements */
.wy-nav-content-wrap {
    margin-left: 300px;
}

.wy-nav-side {
    width: 300px;
}

/* Performance badges */
.performance-badge {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.performance-badge.fast {
    background: #27ae60;
    color: white;
}

.performance-badge.memory-efficient {
    background: #2980b9;
    color: white;
}

.performance-badge.lazy {
    background: #8e44ad;
    color: white;
}

/* Version info */
.version-info {
    background: #e8f4fd;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 1em;
    margin: 1em 0;
}

.version-info .version-number {
    font-weight: bold;
    color: #2980b9;
}

/* Search results improvements */
.search li {
    margin-bottom: 1em;
}

.search li a {
    font-weight: bold;
}

.search .context {
    margin-top: 0.5em;
    color: #666;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    .wy-nav-content-wrap {
        margin-left: 0;
    }
    
    .wy-nav-side {
        left: -300px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .highlight {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .admonition {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .py.class > dt, .py.function > dt, .py.method > dt {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
}