.theme-button {
    visibility: hidden;
}

html.dark body {
    background: black;



    /* --- Header --- */
    #nintenduo-scroll-header {
        background: black !important;
        box-shadow: 0 4px 0 0 rgba(0, 130, 252, 0.26) !important;

        .nintenduo-header-horizontal-navigation {
            color: white !important;
        }

        .nintenduo-header-horizontal-navigation img {
            filter: unset !important;
        }

        .nintenduo-header-vertical-navigation {
            color: white !important;
        }

        .nintenduo-header-vertical-navigation img {
            filter: unset !important;
        }

        .nintenduo-header-site-logo>img {
            filter: brightness(0) invert(1);
        }

        .nintenduo-header-search-button {
            filter: brightness(0) invert(1) !important;
        }

        .nintenduo-header-menu-button {
            filter: brightness(0) invert(1) !important;
        }

        .nintenduo-header-search-field {
            color: white !important;
            border-bottom: solid 1px white !important;
        }
    }

    #nintenduo-scroll-posts-header {
        box-shadow: 0 4px 0 0 rgba(0, 130, 252, 0.26) !important;

        >div {
            background: black !important;
        }

        .nintenduo-header-back-button {
            filter: brightness(0) invert(1);
        }

        .nintenduo-header-posts-site-logo>img {
            filter: brightness(0) invert(1);
        }

        .nintenduo-header-post-title {
            color: white !important;
        }

        .nintenduo-header-share-post>a>div {}
    }

    #nintenduo-header-share-post-facebook {
        background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/facebook-white.svg) !important;
    }

    #nintenduo-header-share-post-facebook:hover {
        background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/facebook-white.svg) !important;
    }

    #nintenduo-header-share-post-x {
        background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/x-white.svg) !important;
    }

    #nintenduo-header-share-post-x:hover {
        background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/x-white.svg) !important;
    }

    #nintenduo-header-share-post-whatsapp {
        background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/whatsapp-white.svg) !important;
    }

    #nintenduo-header-share-post-whatsapp:hover {
        background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/whatsapp-white.svg) !important;
    }

    /* -------------- */

    h2 {
        color: #FFFFFF !important;
    }

    h2.wp-block-heading {
        background: none;
        color: #006ED4 !important;
    }

    h1.wp-block-post-title {
        color: #FFFFFF !important;
    }

    h2.wp-block-post-title {
        color: #FFFFFF !important;
    }

    h2.wp-block-post-title a {
        color: #FFFFFF;
    }

    h3.wp-block-heading {
        color: #FFFFFF !important;
    }

    hr.wp-block-separator {
        color: #333333 !important;
    }

    .nintenduo-post-metadata-section-separator {
        background-color: #333333 !important;
    }

    .wp-block-post-content p {
        color: #FFFFFF;
    }

    .wp-block-post-content li {
        color: #FFFFFF !important;
    }

    .nintenduo-post-thumbnail-caption,
    .yoast-breadcrumbs span,
    .yoast-breadcrumbs span a,
    .nintenduo-post-content-container .wp-block-post-excerpt__excerpt,
    .nintenduo-post-publish-date span,
    .nintenduo-post-author-name a,
    .nintenduo-post-author-name,
    .author-avatar .description,
    .author-avatar .role,
    .wp-block-post-date time,
    .wp-block-nintenduo-author-block.has-background .author-info .description,
    .wp-block-nintenduo-author-block.has-background .author-info .location p,
    .wp-block-nintenduo-author-block.has-background .author-info .role {
        color: #adadad !important;
    }

    .wp-block-post-content ol li::marker {
        color: #FF2222;
    }

    .ht_toc_title {
        color: #FFFFFF;
    }

    .wp-block-post-content a:where(:not(.wp-element-button):not(.ht_toc_list *)) {
        color: #FF0F0F;
    }

    .nintenduo-selected-post {
        background: #333333;
    }

    .nintenduo-selected-post-content a {
        color: #FFFFFF !important;
    }

    .nintenduo-selected-post .nintenduo-selected-post-excerpt {
        color: #939393;
    }

    .c-analisis-v2__pros-cons {
        color: #FFFFFF;
        background-color: #333333;
    }

    .c-analisis-v2__pros-cons li {
        color: #F5F5F5 !important;
    }

    .nintenduo-post-tags-list-block-title {
        color: #FFFFFF;
    }

    .tags a {
        color: #eeeeee;
        background-color: #333333;
    }

    .tags a:hover {
        background-color: #FF0F0F;
    }

    .nintenduo-author-block-post {
        background: #000000 !important;
    }

    .nintenduo-author-block-post-title {
        color: #FFFFFF;
    }

    .author-info .name {
        color: #FFFFFF;
    }

    .author-info .role {
        color: #939393;
    }
}

html.dark body .wp-block-ht-block-toc {
    /* Background layers: white SVG icon behind text, dark gradient underneath */
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgNDggNDgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGw9IiMzMzMzMzMiIGZpbGwtcnVsZT0iZXZlbm9kIiBkPSJTTTQuMTU5Yy0uMDEzLS4wMzUtLjAxNy0uMDctLjAzLS4wMUE2LjU1NyA2LjU1NyAwIDAwNDMuOTQyLjQ5NmMtLjAzLS4wMTMtLjA2Ni0uMDIxLS4wOTYtLjAzNEE2LjQ5OSA2LjQ5OSAwIDAwNDEuNDU1IDBINi43NTlhNi41NDUgNi41NDUgMCAxMDAgMTMuMDloMTguODk1TDEuOTE2IDM2LjgyNmE2LjU0NyA2LjU0NyAwIDEwOS4yNiA9LjI2bDIzLjczMy0yMy43Mzl2MTguOWE2LjU0NSA2LjU0NSAwIDEwMTMuMDkgMEw0OCA2LjU0N1Y2LjU0YTYuNTYgNi41NiAwIDAwLS40NjMtMi4zODIiLz4KPC9zdmc+"),
        linear-gradient(90deg, #121212 42%, #000000 98%);
    background-position: bottom 30px left 30px, center center;
    background-repeat: no-repeat, no-repeat;
    background-size: 48px 48px, auto;
}

html.dark body .wp-block-ht-block-toc,
html.dark body .wp-block-ht-block-toc a {
    color: #ff0f0f !important;
}

/* Mobile */
@media (max-width: 768px) {
    html.dark body {
        #nintenduo-header-share-post-facebook {
            background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/facebook-white32.svg) !important;
        }

        #nintenduo-header-share-post-facebook:hover {
            background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/facebook-white32.svg) !important;
        }

        #nintenduo-header-share-post-x {
            background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/x-white32.svg) !important;
        }

        #nintenduo-header-share-post-x:hover {
            background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/x-white32.svg) !important;
        }

        #nintenduo-header-share-post-whatsapp {
            background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/whatsapp-white32.svg) !important;
        }

        #nintenduo-header-share-post-whatsapp:hover {
            background-image: url(/wp-content/plugins/nintenduo-wordpress-blocks/assets/images/whatsapp-white32.svg) !important;
        }
    }
}

@media (min-width: 1151px) {
    html.dark body .ht_toc_list li:hover::before {
        filter: invert(1) grayscale(1) brightness(2) !important;
    }
}

/* Dark mode: force red blocks for TOC numbers */
html.dark .ht_toc_list>li>a::before {
    background-color: #FF2222 !important;
}

html.dark .ht_toc_list .ht_toc_child_list>li>a::before {
    background-color: #FF2222 !important;
}

/* Table styling for dark mode */
html.dark body table {
    color: #FFFFFF !important;
}

html.dark body table tr:nth-child(odd) {
    background-color: black !important;
}

html.dark body table tr:nth-child(even) {
    background-color: rgb(51, 51, 51) !important;
}

/* Dark mode: fix image lift triangle color */
html.dark body .wp-block-image__wrapper::after {
    border-bottom-color: #000 !important;
    border-left-color: #000 !important;
}

/* Author archive title y nombre en blanco en modo oscuro */
html.dark body .nintenduo-author-archive-title,
html.dark body .nintenduo-author-archive-title::before {
    color: #FFFFFF !important;
}
