/**
 * AI Anti Dark Mode - Force Light Mode Styles
 * Prevents browsers, OS, and extensions from applying dark mode
 */

/* ========================================
   LAYER 1: Force light color-scheme
   ======================================== */

:root {
    color-scheme: light only !important;
}

html {
    color-scheme: light only !important;
}

body {
    color-scheme: light only !important;
}

/* ========================================
   LAYER 2: Universal color-scheme override
   ======================================== */

*,
*::before,
*::after {
    color-scheme: light only !important;
}

/* ========================================
   LAYER 3: Neutralize prefers-color-scheme: dark
   Ensures browser UA stylesheet adjustments are overridden
   when OS is in dark mode.
   ======================================== */

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light only !important;
    }

    html {
        color-scheme: light only !important;
        background-color: initial !important;
        color: initial !important;
    }

    body {
        background-color: initial !important;
        color: initial !important;
    }
}

/* ========================================
   LAYER 4: Block dark mode extensions
   ======================================== */

/* Hide Dark Reader injected style elements */
html[data-darkreader-mode] style.darkreader,
html[data-darkreader-mode] style[class*="darkreader"],
html[data-darkreader-mode] meta[name="darkreader"],
style.darkreader,
style[class*="darkreader"] {
    display: none !important;
}

/* Remove Dark Reader attribute-based overrides */
html[data-darkreader-mode],
html[data-darkreader-scheme="dark"] {
    background-color: initial !important;
    color: initial !important;
    color-scheme: light only !important;
}

/* Block Night Eye extension */
html[data-nighteye],
html[data-nighteye-active] {
    filter: none !important;
    background-color: initial !important;
    color: initial !important;
}

/* Block generic dark mode extension patterns */
html[data-theme="dark"],
html[data-color-scheme="dark"],
body[data-theme="dark"],
body[data-color-scheme="dark"] {
    background-color: initial !important;
    color: initial !important;
}
