/**
 * Custom Pygments Styling for Light Mode (Visual Studio Light) and Dark Mode (Dracula)
 */

/* LIGHT MODE - Visual Studio Light Theme */
html[data-theme="light"] .highlight {
    background: #f6f8fa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 1em;
    font-family: 'JetBrains Mono', monospace;
}

html[data-theme="light"] pre {
    color: #000000;
    background-color: #f6f8fa;
    font-family: 'JetBrains Mono', monospace;
}

/* Function signatures in VS Light theme */
html[data-theme="light"] dl.cpp dt {
    background-color: #f6f8fa;
    border-left: 3px solid #0066b8;
    padding: 6px 8px;
    margin-bottom: 0.5em;
    font-family: 'JetBrains Mono', monospace;
}

/* Better method documentation */
html[data-theme="light"] dl.cpp.function {
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #e8e8e8;
}

/* VS Light Theme Colors */
html[data-theme="light"] .highlight .hll { background-color: #ffffcc }
html[data-theme="light"] .highlight .c { color: #008000 } /* Comment */
html[data-theme="light"] .highlight .err { border: 1px solid #FF0000 } /* Error */
html[data-theme="light"] .highlight .k { color: #0000ff } /* Keyword */
html[data-theme="light"] .highlight .ch { color: #008000 } /* Comment.Hashbang */
html[data-theme="light"] .highlight .cm { color: #008000 } /* Comment.Multiline */
html[data-theme="light"] .highlight .cp { color: #0000ff } /* Comment.Preproc */
html[data-theme="light"] .highlight .cpf { color: #008000 } /* Comment.PreprocFile */
html[data-theme="light"] .highlight .c1 { color: #008000 } /* Comment.Single */
html[data-theme="light"] .highlight .cs { color: #008000 } /* Comment.Special */
html[data-theme="light"] .highlight .ge { font-style: italic } /* Generic.Emph */
html[data-theme="light"] .highlight .gh { font-weight: bold } /* Generic.Heading */
html[data-theme="light"] .highlight .gp { font-weight: bold } /* Generic.Prompt */
html[data-theme="light"] .highlight .gs { font-weight: bold } /* Generic.Strong */
html[data-theme="light"] .highlight .gu { font-weight: bold } /* Generic.Subheading */
html[data-theme="light"] .highlight .kc { color: #0000ff } /* Keyword.Constant */
html[data-theme="light"] .highlight .kd { color: #0000ff } /* Keyword.Declaration */
html[data-theme="light"] .highlight .kn { color: #0000ff } /* Keyword.Namespace */
html[data-theme="light"] .highlight .kp { color: #0000ff } /* Keyword.Pseudo */
html[data-theme="light"] .highlight .kr { color: #0000ff } /* Keyword.Reserved */
html[data-theme="light"] .highlight .kt { color: #2b91af } /* Keyword.Type */
html[data-theme="light"] .highlight .s { color: #a31515 } /* String */
html[data-theme="light"] .highlight .nc { color: #2b91af } /* Name.Class */
html[data-theme="light"] .highlight .ow { color: #0000ff } /* Operator.Word */
html[data-theme="light"] .highlight .sa { color: #a31515 } /* String.Affix */
html[data-theme="light"] .highlight .sb { color: #a31515 } /* String.Backtick */
html[data-theme="light"] .highlight .sc { color: #a31515 } /* String.Char */
html[data-theme="light"] .highlight .dl { color: #a31515 } /* String.Delimiter */
html[data-theme="light"] .highlight .sd { color: #a31515 } /* String.Doc */
html[data-theme="light"] .highlight .s2 { color: #a31515 } /* String.Double */
html[data-theme="light"] .highlight .se { color: #a31515 } /* String.Escape */
html[data-theme="light"] .highlight .sh { color: #a31515 } /* String.Heredoc */
html[data-theme="light"] .highlight .si { color: #a31515 } /* String.Interpol */
html[data-theme="light"] .highlight .sx { color: #a31515 } /* String.Other */
html[data-theme="light"] .highlight .sr { color: #a31515 } /* String.Regex */
html[data-theme="light"] .highlight .s1 { color: #a31515 } /* String.Single */
html[data-theme="light"] .highlight .ss { color: #a31515 } /* String.Symbol */
html[data-theme="light"] .highlight .fm { color: #795e26 } /* Name.Function.Magic */
html[data-theme="light"] .highlight .nf { color: #795e26 } /* Name.Function */
html[data-theme="light"] .highlight .nb { color: #0000ff } /* Name.Builtin */
html[data-theme="light"] .highlight .nd { color: #800080 } /* Name.Decorator */
html[data-theme="light"] .highlight .m { color: #098658 } /* Literal.Number */
html[data-theme="light"] .highlight .mf { color: #098658 } /* Literal.Number.Float */
html[data-theme="light"] .highlight .mh { color: #098658 } /* Literal.Number.Hex */
html[data-theme="light"] .highlight .mi { color: #098658 } /* Literal.Number.Integer */
html[data-theme="light"] .highlight .mo { color: #098658 } /* Literal.Number.Oct */
html[data-theme="light"] .highlight .nn { color: #267f99 } /* Name.Namespace */
html[data-theme="light"] .highlight .nt { color: #800000 } /* Name.Tag */
html[data-theme="light"] .highlight .na { color: #1f377f } /* Name.Attribute */

/* DARK MODE - Dracula Theme */
html[data-theme="dark"] .highlight {
    background: #21222c;
    border: 1px solid #44475a;
    border-radius: 4px;
    padding: 1em;
    font-family: 'JetBrains Mono', monospace;
}

html[data-theme="dark"] pre {
    color: #f8f8f2;
    background-color: #21222c;
    font-family: 'JetBrains Mono', monospace;
}

/* Function signatures in Dracula theme */
html[data-theme="dark"] dl.cpp dt {
    background-color: #282a36;
    border-left: 3px solid #bd93f9;
    padding: 6px 8px;
    margin-bottom: 0.5em;
    font-family: 'JetBrains Mono', monospace;
}

/* Better method documentation */
html[data-theme="dark"] dl.cpp.function {
    margin-bottom: 1.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #44475a;
}

/* Dracula Theme Colors */
html[data-theme="dark"] .highlight .hll { background-color: #44475a }
html[data-theme="dark"] .highlight .c { color: #6272a4 } /* Comment */
html[data-theme="dark"] .highlight .err { color: #f8f8f2; background-color: #ff5555 } /* Error */
html[data-theme="dark"] .highlight .k { color: #ff79c6 } /* Keyword */
html[data-theme="dark"] .highlight .l { color: #f1fa8c } /* Literal */
html[data-theme="dark"] .highlight .n { color: #f8f8f2 } /* Name */
html[data-theme="dark"] .highlight .o { color: #ff79c6 } /* Operator */
html[data-theme="dark"] .highlight .p { color: #f8f8f2 } /* Punctuation */
html[data-theme="dark"] .highlight .ch { color: #6272a4 } /* Comment.Hashbang */
html[data-theme="dark"] .highlight .cm { color: #6272a4 } /* Comment.Multiline */
html[data-theme="dark"] .highlight .cp { color: #ff79c6 } /* Comment.Preproc */
html[data-theme="dark"] .highlight .cpf { color: #6272a4 } /* Comment.PreprocFile */
html[data-theme="dark"] .highlight .c1 { color: #6272a4 } /* Comment.Single */
html[data-theme="dark"] .highlight .cs { color: #6272a4 } /* Comment.Special */
html[data-theme="dark"] .highlight .gd { color: #ff5555 } /* Generic.Deleted */
html[data-theme="dark"] .highlight .ge { color: #f8f8f2; font-style: italic } /* Generic.Emph */
html[data-theme="dark"] .highlight .gi { color: #50fa7b } /* Generic.Inserted */
html[data-theme="dark"] .highlight .gs { color: #f8f8f2; font-weight: bold } /* Generic.Strong */
html[data-theme="dark"] .highlight .gu { color: #6272a4; font-weight: bold } /* Generic.Subheading */
html[data-theme="dark"] .highlight .kc { color: #ff79c6 } /* Keyword.Constant */
html[data-theme="dark"] .highlight .kd { color: #ff79c6 } /* Keyword.Declaration */
html[data-theme="dark"] .highlight .kn { color: #ff79c6 } /* Keyword.Namespace */
html[data-theme="dark"] .highlight .kp { color: #ff79c6 } /* Keyword.Pseudo */
html[data-theme="dark"] .highlight .kr { color: #ff79c6 } /* Keyword.Reserved */
html[data-theme="dark"] .highlight .kt { color: #8be9fd } /* Keyword.Type */
html[data-theme="dark"] .highlight .ld { color: #f1fa8c } /* Literal.Date */
html[data-theme="dark"] .highlight .m { color: #bd93f9 } /* Literal.Number */
html[data-theme="dark"] .highlight .s { color: #f1fa8c } /* String */
html[data-theme="dark"] .highlight .na { color: #50fa7b } /* Name.Attribute */
html[data-theme="dark"] .highlight .nb { color: #8be9fd; font-style: italic } /* Name.Builtin */
html[data-theme="dark"] .highlight .nc { color: #50fa7b } /* Name.Class */
html[data-theme="dark"] .highlight .nd { color: #f8f8f2 } /* Name.Decorator */
html[data-theme="dark"] .highlight .ni { color: #f8f8f2 } /* Name.Entity */
html[data-theme="dark"] .highlight .ne { color: #f8f8f2 } /* Name.Exception */
html[data-theme="dark"] .highlight .nf { color: #50fa7b } /* Name.Function */
html[data-theme="dark"] .highlight .nl { color: #f8f8f2 } /* Name.Label */
html[data-theme="dark"] .highlight .nn { color: #f8f8f2 } /* Name.Namespace */
html[data-theme="dark"] .highlight .nx { color: #f8f8f2 } /* Name.Other */
html[data-theme="dark"] .highlight .py { color: #f8f8f2 } /* Name.Property */
html[data-theme="dark"] .highlight .nt { color: #ff79c6 } /* Name.Tag */
html[data-theme="dark"] .highlight .nv { color: #f8f8f2 } /* Name.Variable */
html[data-theme="dark"] .highlight .ow { color: #ff79c6 } /* Operator.Word */
html[data-theme="dark"] .highlight .w { color: #f8f8f2 } /* Text.Whitespace */
html[data-theme="dark"] .highlight .mb { color: #bd93f9 } /* Literal.Number.Bin */
html[data-theme="dark"] .highlight .mf { color: #bd93f9 } /* Literal.Number.Float */
html[data-theme="dark"] .highlight .mh { color: #bd93f9 } /* Literal.Number.Hex */
html[data-theme="dark"] .highlight .mi { color: #bd93f9 } /* Literal.Number.Integer */
html[data-theme="dark"] .highlight .mo { color: #bd93f9 } /* Literal.Number.Oct */
html[data-theme="dark"] .highlight .sa { color: #f1fa8c } /* String.Affix */
html[data-theme="dark"] .highlight .sb { color: #f1fa8c } /* String.Backtick */
html[data-theme="dark"] .highlight .sc { color: #f1fa8c } /* String.Char */
html[data-theme="dark"] .highlight .dl { color: #f1fa8c } /* String.Delimiter */
html[data-theme="dark"] .highlight .sd { color: #f1fa8c } /* String.Doc */
html[data-theme="dark"] .highlight .s2 { color: #f1fa8c } /* String.Double */
html[data-theme="dark"] .highlight .se { color: #f1fa8c } /* String.Escape */
html[data-theme="dark"] .highlight .sh { color: #f1fa8c } /* String.Heredoc */
html[data-theme="dark"] .highlight .si { color: #f1fa8c } /* String.Interpol */
html[data-theme="dark"] .highlight .sx { color: #f1fa8c } /* String.Other */
html[data-theme="dark"] .highlight .sr { color: #f1fa8c } /* String.Regex */
html[data-theme="dark"] .highlight .s1 { color: #f1fa8c } /* String.Single */
html[data-theme="dark"] .highlight .ss { color: #f1fa8c } /* String.Symbol */
html[data-theme="dark"] .highlight .bp { color: #8be9fd; font-style: italic } /* Name.Builtin.Pseudo */
html[data-theme="dark"] .highlight .fm { color: #50fa7b } /* Name.Function.Magic */
html[data-theme="dark"] .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
html[data-theme="dark"] .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
html[data-theme="dark"] .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
html[data-theme="dark"] .highlight .vm { color: #f8f8f2 } /* Name.Variable.Magic */
html[data-theme="dark"] .highlight .il { color: #bd93f9 } /* Literal.Number.Integer.Long */

/* Inline code styling */
html[data-theme="light"] code.literal {
    background-color: #f0f0f0;
    color: #1f377f;
    border: 1px solid #e8e8e8;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
}

html[data-theme="dark"] code.literal {
    background-color: #44475a;
    color: #f8f8f2;
    border: 1px solid #6272a4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
}

/* Fix for system dark mode */
@media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) .highlight {
        background: #21222c;
        border: 1px solid #44475a;
    }
    
    body:not([data-theme="light"]) pre {
        background-color: #21222c;
        color: #f8f8f2;
    }
}

/* End of styling */ 