/* Stardock Blue Header — 50px blue-gradient variant (default, used by Stardock software forums)
   Requires: stardock-nav-shared.css loaded first */

/* ===== Header Container ===== */
.stardock-header {
    background: linear-gradient(to bottom,rgba(13,76,139,1) 0%,rgba(16,97,173,1) 100%);
    border-bottom: 1px solid #006fda;
    box-shadow: rgb(0,0,0) 0px 2px 3px;
    box-sizing: border-box;
    height: 50px;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    font-family: 'Segoe UI',Arial,sans-serif;
    font-size: 13px;
}

    .stardock-header .container {
        align-items: stretch;
        background: linear-gradient(to bottom,rgba(13,76,139,1) 0%,rgba(16,97,173,1) 100%);
        box-sizing: border-box;
        display: flex;
        height: 49px;
        flex-direction: row;
        justify-content: flex-start;
        margin: 0 auto;
        max-width: 1420px;
        position: relative;
    }

        /* ===== Hamburger label (mobile only) ===== */
        .stardock-header .container > label[for='nav-trigger'] {
            display: none;
        }

        .stardock-header .container .nav-trigger {
            position: absolute;
            clip: rect(0,0,0,0);
        }

        /* ===== Logo ===== */
        .stardock-header .container > a.logo {
            align-items: center;
            display: flex;
            flex-direction: row;
            text-decoration: none;
        }

            .stardock-header .container > a.logo > img {
                height: 40px;
            }

    /* ===== Main Nav ===== */
    .stardock-header nav {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        font-size: .9rem;
        margin-left: 1rem;
        margin-right: auto;
        position: relative;
    }

        .stardock-header nav > span {
            display: flex;
            padding: 4px 1rem 0;
            position: relative;
            transition: all .1s ease-out;
            z-index: 1;
        }
            /* Skewed hover effect on desktop */
            .stardock-header nav > span::after {
                bottom: 0;
                content: '';
                height: 100%;
                left: -10px;
                position: absolute;
                right: 0;
                top: 0;
                transform: skew(-15deg);
                transform-origin: bottom left;
                z-index: -1;
                pointer-events: none;
            }

            .stardock-header nav > span:hover:not(.active)::after {
                background-color: rgba(0,111,218,.5);
            }

            .stardock-header nav > span.active::after {
                background-color: rgba(0,111,218,.9);
            }

            .stardock-header nav > span > a, .stardock-header nav > span > a.navlink {
                align-items: center;
                color: #fdfdfd;
                display: flex;
                text-decoration: none;
                width: 100%;
            }

            .stardock-header nav > span.active {
                font-weight: 500;
            }

            .stardock-header nav > span.mobileonly {
                display: none;
            }

            /* ===== Dropdown Menus ===== */
            .stardock-header nav > span > .submenu {
                background-color: #fdfdfd;
                border: 1px solid #2d2d2d;
                border-top-width: 0;
                box-shadow: #666 0px 2px 3px;
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                font-size: .9em;
                left: -20px;
                opacity: 0;
                position: absolute;
                top: 52px;
                transition: all .25s ease-in-out;
                visibility: hidden;
                width: 800px;
            }

            .stardock-header nav > span:hover > .submenu {
                opacity: 1;
                visibility: visible;
            }

            /* ===== Software Submenu (product grid) ===== */
            .stardock-header nav > span > .submenu > .submenuprod {
                box-sizing: border-box;
                color: #2d2d2d;
                display: flex;
                flex: 1 1 33%;
                flex-direction: row;
                padding: 1em;
            }

                .stardock-header nav > span > .submenu > .submenuprod > a:first-child {
                    background-repeat: no-repeat;
                    background-size: 48px 48px;
                    display: block;
                    height: 48px;
                    width: 48px;
                    min-width: 48px;
                    padding-right: 2em;
                    box-sizing: content-box;
                    flex-shrink: 0;
                }

                .stardock-header nav > span > .submenu > .submenuprod > span {
                    color: #777;
                    display: block;
                    flex-direction: column;
                    font-size: .875em;
                    font-weight: 400;
                    margin: 0;
                    width: 100%;
                }

                    .stardock-header nav > span > .submenu > .submenuprod > span a {
                        text-decoration: none;
                    }

                        .stardock-header nav > span > .submenu > .submenuprod > span a.prodname {
                            display: block;
                            border-bottom: 1px solid #ccc;
                            font-size: 1.125em;
                            margin-bottom: 5px;
                            padding-bottom: 5px;
                        }

                            .stardock-header nav > span > .submenu > .submenuprod > span a.prodname strong {
                                color: #2d2d2d;
                                font-weight: 500;
                            }

                        .stardock-header nav > span > .submenu > .submenuprod > span a.link {
                            color: #0066cc;
                            text-decoration: none;
                            font-size: .9em;
                        }

                            .stardock-header nav > span > .submenu > .submenuprod > span a.link:hover {
                                text-decoration: underline;
                            }

                .stardock-header nav > span > .submenu > .submenuprod:hover {
                    background-color: #eee;
                }
                /* Bottom links in software submenu (View All / Corporate) */
                .stardock-header nav > span > .submenu > .submenuprod:nth-last-child(2), .stardock-header nav > span > .submenu > .submenuprod:last-child {
                    background-color: #ddd;
                    flex: 1 1 50%;
                    padding-left: 1em;
                }

                    .stardock-header nav > span > .submenu > .submenuprod:nth-last-child(2):hover, .stardock-header nav > span > .submenu > .submenuprod:last-child:hover {
                        background-color: #eee;
                    }

                .stardock-header nav > span > .submenu > .submenuprod:last-child {
                    border-left: 1px solid #ccc;
                }
            /* Bottom links in software submenu (direct <a> children — View All / Corporate) */
            .stardock-header nav > span > .submenu > a {
                background-repeat: no-repeat;
                background-position: 1em center;
                background-size: 48px 48px;
                box-sizing: border-box;
                color: #2d2d2d;
                display: flex;
                flex: 1 1 33%;
                flex-direction: column;
                padding: 1em 1em 1em calc(2em + 48px);
                text-decoration: none;
            }

                .stardock-header nav > span > .submenu > a > strong {
                    border-bottom: 1px solid #ccc;
                    font-weight: 500;
                    margin-bottom: 5px;
                    padding-bottom: 5px;
                }

                .stardock-header nav > span > .submenu > a > span {
                    color: #777;
                    display: block;
                    font-size: .9em;
                    font-weight: normal;
                    margin: 0;
                }

                .stardock-header nav > span > .submenu > a:hover {
                    background-color: #eee;
                    text-decoration: none;
                }

                .stardock-header nav > span > .submenu > a:nth-last-child(2), .stardock-header nav > span > .submenu > a:last-child {
                    background-color: #ddd;
                    flex: 1 1 50%;
                    padding-left: 1em;
                }

                    .stardock-header nav > span > .submenu > a:nth-last-child(2):hover, .stardock-header nav > span > .submenu > a:last-child:hover {
                        background-color: #eee;
                    }

                .stardock-header nav > span > .submenu > a:last-child {
                    border-left: 1px solid #ccc;
                }

            /* ===== Games Submenu ===== */
            .stardock-header nav > span:nth-child(2) > .submenu > a:nth-last-child(4), .stardock-header nav > span:nth-child(2) > .submenu > a:nth-last-child(3) {
                background-color: #ddd;
                border-bottom: 1px solid #ccc;
                flex: 1 1 50%;
                padding-left: 1em;
            }

                .stardock-header nav > span:nth-child(2) > .submenu > a:nth-last-child(4):hover, .stardock-header nav > span:nth-child(2) > .submenu > a:nth-last-child(3):hover {
                    background-color: #eee;
                }

            .stardock-header nav > span:nth-child(2) > .submenu > a:nth-last-child(3) {
                border-left: 1px solid #ccc;
            }

            /* ===== Community Submenu (simple list) ===== */
            .stardock-header nav > span > .submenu2 {
                background-color: #fff;
                border: 1px solid #2d2d2d;
                border-top-width: 0;
                box-shadow: #666 0px 2px 3px;
                display: block;
                font-size: .9em;
                font-weight: normal;
                left: -10px;
                opacity: 0;
                position: absolute;
                top: 52px;
                transition: all .25s ease-in-out;
                visibility: hidden;
                width: 118px;
            }

            .stardock-header nav > span:hover > .submenu2 {
                opacity: 1;
                visibility: visible;
            }

            .stardock-header nav > span > .submenu2 > a {
                background-repeat: no-repeat;
                box-sizing: border-box;
                color: #2d2d2d;
                display: block;
                padding: 1em;
                text-decoration: none;
                margin-bottom: 5px;
                padding-bottom: 5px;
            }

                .stardock-header nav > span > .submenu2 > a > strong {
                    font-weight: 500;
                }

                .stardock-header nav > span > .submenu2 > a:hover {
                    background-color: #d7d7d7;
                }

    /* ===== Account Nav (right side icons) ===== */
    .stardock-header .icons {
        align-items: center;
        display: flex;
        flex-direction: row;
        margin-left: auto;
        margin-right: 0;
        position: relative;
    }

        .stardock-header .icons > a {
            align-items: center;
            display: flex;
            flex-direction: row;
            position: relative;
        }

            .stardock-header .icons > a > img {
                height: 20px;
            }

            .stardock-header .icons > a > img.header-avatar {
                height: 32px;
                width: 32px;
                object-fit: cover;
                border: 1px solid #FDFDFD;
            }

            .stardock-header .icons > a:not(:first-child) {
                margin-left: 1rem;
            }

    /* ===== Search Form (blue variant) ===== */
    .stardock-header #search-form {
        background-color: rgba(16,97,173,1);
        border-bottom: 1px solid #006fda;
        border-left: 1px solid #006fda;
        border-right: 1px solid #006fda;
        box-shadow: rgb(0,0,0) 0px 2px 3px;
        top: 49px;
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease-in-out;
    }

        .stardock-header #search-form.show {
            display: block;
            opacity: 1;
            visibility: visible;
        }

        .stardock-header #search-form input {
            border: 1px solid #006fda;
        }

            .stardock-header #search-form input:focus {
                border-color: #fff;
            }

        .stardock-header #search-form button {
            background: #0d4b89;
            border: 1px solid #006fda;
        }

            .stardock-header #search-form button:hover {
                background: #155298;
            }

/* ===== Mobile styles ===== */
@media(max-width:850px) {
    .stardock-header {
        height: 50px;
    }

        .stardock-header .container {
            padding-left: 0;
            padding-right: 0;
        }

            .stardock-header .container > label[for='nav-trigger'] {
                align-items: center;
                box-sizing: border-box;
                cursor: pointer;
                display: flex;
                flex-direction: row;
                padding: 0 6px;
                z-index: 11;
            }

                .stardock-header .container > label[for='nav-trigger'] > img {
                    height: 30px;
                    max-width: none;
                    width: 30px;
                }

            .stardock-header .container .nav-trigger:checked + label {
                left: 215px;
            }

            .stardock-header .container .nav-trigger:checked ~ nav {
                left: 0;
                transition: all .30s ease-in;
            }

        .stardock-header nav {
            align-items: stretch;
            background: #111;
            border-right: 1px solid #4b4b4b;
            border-bottom: 1px solid #4b4b4b;
            bottom: 0;
            flex-direction: column;
            justify-content: flex-start;
            left: -300px;
            width: 280px;
            max-width: 280px;
            position: fixed;
            top: 50px;
            transition: all .25s ease-out;
            z-index: 1001;
            margin-left: 0;
            overflow-y: auto;
        }

            .stardock-header nav > span {
                display: flex;
                align-items: center;
                line-height: 2.5rem;
                height: 2.5rem;
                padding: 0 1rem;
                cursor: pointer;
            }

                .stardock-header nav > span > a {
                    color: #fdfdfd;
                    text-decoration: none;
                    text-shadow: 1px 1px #707070;
                    display: flex;
                    align-items: center;
                    width: 100%;
                    height: 100%;
                }

                .stardock-header nav > span:not(.dropdown)::after {
                    display: none;
                }

                .stardock-header nav > span.active {
                    background-color: rgba(0,111,218,.9);
                }

                .stardock-header nav > span:hover:not(.active) {
                    background-color: rgba(0,111,218,.5);
                }

                .stardock-header nav > span.mobileonly {
                    display: flex;
                }

            /* Dropdown arrow indicator for items with submenus */
            .stardock-header nav > span.dropdown {
                position: relative;
                z-index: 1;
            }

            .stardock-header nav > span.dropdown:has(.show) {
                z-index: 9999;
            }

                .stardock-header nav > span.dropdown::after {
                    display: block;
                    color: #fff;
                    content: '\25BC';
                    font-size: 10px;
                    position: absolute;
                    right: 1rem;
                    left: auto;
                    top: 50%;
                    bottom: auto;
                    width: auto;
                    height: auto;
                    transform: translateY(-50%);
                    background: none !important;
                    pointer-events: none;
                    z-index: 1;
                }

            /* Mobile dropdown submenus */
            .stardock-header nav > span > .submenu,
            .stardock-header nav > span > .submenu2 {
                position: absolute;
                left: 0;
                top: 2.5rem;
                width: 280px !important;
                opacity: 1;
                visibility: visible;
                box-shadow: none;
                display: none;
                z-index: 9999;
                background-color: #fdfdfd;
                border: 1px solid #2d2d2d;
                border-top: none;
            }

                .stardock-header nav > span > .submenu.show,
                .stardock-header nav > span > .submenu2.show {
                    display: block;
                    min-height: auto;
                    max-height: calc(100vh - 150px);
                    overflow-y: auto;
                }

                .stardock-header nav > span > .submenu > .submenuprod {
                    flex: 1 1 100%;
                    box-sizing: border-box;
                }

                    .stardock-header nav > span > .submenu > .submenuprod > span {
                        line-height: 1rem;
                    }

                    .stardock-header nav > span > .submenu > .submenuprod > a:first-child {
                        padding-right: 1em;
                    }

                .stardock-header nav > span > .submenu > a {
                    flex: 1 1 100%;
                    padding: 1em;
                    display: block;
                    color: #2d2d2d;
                    text-decoration: none;
                    text-shadow: none;
                    line-height: 1.5rem;
                }

                    .stardock-header nav > span > .submenu > a:hover,
                    .stardock-header nav > span > .submenu2 > a:hover {
                        background-color: #d7d7d7;
                    }

                .stardock-header nav > span > .submenu2 {
                    background-color: #fff;
                }

                    .stardock-header nav > span > .submenu2 > a {
                        color: #2d2d2d;
                        display: block;
                        padding: 1em;
                        text-decoration: none;
                        text-shadow: none;
                        line-height: 1rem;
                    }

        .stardock-header .icons {
            margin-right: 10px;
        }

            .stardock-header .icons > a:not(:first-child) {
                margin-left: 6px;
            }
}

/* ===== Tablet+ adjustments ===== */
@media(min-width:851px) {
    .stardock-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }

        .stardock-header .container > label[for='nav-trigger'] {
            display: none;
        }

        .stardock-header .container .nav-trigger {
            display: none;
        }
}

/* ===== Cart Menu ===== */
#cart-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border-color);
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: none;
    z-index: 1000;
}

    #cart-menu.open {
        display: block;
    }

/* ===== Adjust body padding when stardock header is present ===== */
body.has-stardock-header {
    padding-top: calc(50px + 15px);
}

@media(max-width:850px) {
    body.has-stardock-header {
        padding-top: calc(50px + 15px);
    }
}
