/**
 * @author Konstantin Passig
 * @date September 30, 2025
 *
 * @brief Custom CSS styling for Vulkan Schnee documentation
 * Enhances visual accentuation of inline code elements
 */

/* Enhanced styling for inline code elements (e.g., `variable_name`) */
code {
    background-color: rgba(0, 122, 204, 0.08) !important;
    color: #0366d6 !important;
    padding: 0.15em 0.4em !important;
    border-radius: 4px !important;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
    font-size: 0.92em !important;
    font-weight: 500 !important;
    border: 1px solid rgba(0, 122, 204, 0.15) !important;
    white-space: nowrap !important;
}

/* Slightly different styling for code within links */
a code {
    color: #0366d6 !important;
    text-decoration: none !important;
}

a:hover code {
    background-color: rgba(0, 122, 204, 0.12) !important;
    border-color: rgba(0, 122, 204, 0.25) !important;
}

/* Ensure code blocks are not affected by inline code styling */
pre code, 
.fragment code,
div.line code {
    background-color: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    font-weight: normal !important;
    white-space: pre !important;
}

/* Dark mode support (if using doxygen-awesome dark mode toggle) */
@media (prefers-color-scheme: dark) {
    code {
        background-color: rgba(110, 168, 254, 0.15) !important;
        color: #79c0ff !important;
        border: 1px solid rgba(110, 168, 254, 0.25) !important;
    }
    
    a:hover code {
        background-color: rgba(110, 168, 254, 0.22) !important;
        border-color: rgba(110, 168, 254, 0.35) !important;
    }
}

/* Alternative styling - uncomment if you prefer a more subtle look */
/*
code {
    background-color: rgba(175, 184, 193, 0.2) !important;
    color: #24292e !important;
    padding: 0.2em 0.4em !important;
    border-radius: 3px !important;
}
*/


