/* Stardock.net Games Theme — Dark theme with gold accents and blue UI */
/* Colors extracted from legacy Stardock.net sd2017.games.scss + forums.scss */

/* Section 1: Variable overrides */
.theme-stardock-net {
    --accent-color: #0D4D8B;
    --accent-color-text: #FDFDFD;
    --background: #0b111e;
    --alternate-background: #0e1525;
    --text-color: #FDFDFD;
    --secondary-text-color: #9C9C9C;
    --table-text-color: #C8C8C8;
    --link-color: #44A4E4;
    --link-hover-color: #79BEEC;
    --border-color: #0d4c8a;
    --border-color-gradient: #1a2b4a;
    --header-background: #CCCCCC;
    --header-text-color: #2D2D2D;
    --menu-background: #0b111e;
    --menu-text-color: #FDFDFD;
    --section-header-background: #051f38;
    --section-header-background-2: #0b111e;
    --section-header-background-3: linear-gradient(to bottom,#051f38 0%,#0b111e 100%);
    --section-header-text-color: #FFB400;
    --body-background: #000000;
    --body-text-color: #FDFDFD;
    --nav-gradient: linear-gradient(to bottom,rgba(13,76,139,1) 0%,rgba(16,97,173,1) 100%);
    --nav-border-color: #006fda;
    --error-background: #2D0000;
    --error-text-color: #FF6B6B;
    --error-border-color: #8B0000;
    --success-text-color: #46a839;
    --message-background: #051f38;
    --message-text-color: #FFB400;
    --message-border-color: #0d4c8a;
    --post-quote-background: #0e1525;
    --post-quote-text-color: #C8C8C8;
    --post-quote-border-color: #0d4c8a;
    --post-quote-header-background: #051f38;
    --post-quote-header-text-color: #FFB400;
    --search-highlight-text-color: #FFB400;
    --tooltip-background-color: #051f38;
    --tooltip-border-color: #0d4c8a;
    --tooltip-color: #FDFDFD;
    --tooltip-highlight-color: #44A4E4;
    --tooltip-de-emphasize-color: #6A6A6A;
    --table-header-background: #051f38;
    --main-accent-color: #FFB400;
    --sub-alert-background-color: #0D4D8B;
    --sub-alert-text-color: #FDFDFD;
    --sub-alert-link-color: #FFB400;
    --container-border-color: #1a2b4a;
}

/* Section 2: Forum head top bar */
.theme-stardock-net .sd-forumhead__top {
    background: linear-gradient(to bottom, #8c8d91 0%, #3d3e44 42%, #242529 100%);
}

.theme-stardock-net .sd-site-title {
    color: #FFB400;
}

/* Section 3: Breadcrumb bar */
.theme-stardock-net .sd-breadcrumbs li:not(:last-child)::after {
    color: #0d4c8a;
}

/* Section 4: Forum + category hover (unified: odd/even, post/category same color) */
.theme-stardock-net .sd-thread-item:hover,
.theme-stardock-net .sd-thread-item:nth-child(even):hover,
.theme-stardock-net .sd-category-row:hover,
.theme-stardock-net .sd-category-table tbody tr:nth-child(even):hover {
    background: rgba(13,77,139,.15);
}

.theme-stardock-net .sd-thread-item__title {
    color: #FFB400;
}

.theme-stardock-net .sd-thread-item__author-col a,
.theme-stardock-net .sd-thread-item__author a {
    color: #FFB400;
}

/* Section 5: Thread group labels and section headers */

.theme-stardock-net .sd-thread-list-header {
    background: var(--section-header-background);
}

/* Section 6: Post container headers */
.theme-stardock-net .sd-post-header {
    background: linear-gradient(to bottom,#051f38 0%,#0b111e 100%);
    border-bottom: 1px solid #0d4c8a;
}

.theme-stardock-net .sd-post-header__username a {
    color: var(--link-color);
    font-weight: 600;
}

/* Section 7: Buttons and links */
.theme-stardock-net .sd-btn-primary {
    background: #0d4d8b linear-gradient(#0161c1, #0d4d8b);
    border: 1px solid #0d4e8d;
    box-shadow: inset 0 0 4px #488ed3;
    color: #FDFDFD;
}

    .theme-stardock-net .sd-btn-primary:hover {
        background: #1061b2 linear-gradient(#007efb, #1061b2);
        box-shadow: inset 0 0 4px #4798e9;
    }

.theme-stardock-net .sd-btn-secondary {
    border-color: #0d4c8a;
    color: var(--body-text-color);
}

    .theme-stardock-net .sd-btn-secondary:hover {
        background: rgba(13,77,139,.3);
    }

/* Section 8: Thread icon states */
.theme-stardock-net .sd-thread-icon--unread {
    color: #FFB400;
}

.theme-stardock-net .sd-thread-icon--read {
    color: #0d4c8a;
}

/* Section 9: Pagination */
.theme-stardock-net .sd-thread-tray__page-link {
    border-color: #0d4c8a;
    color: var(--link-color);
}

    .theme-stardock-net .sd-thread-tray__page-link:hover {
        background: #0d4d8b;
        color: #FDFDFD;
    }

/* Section 10: Sidebar */
.theme-stardock-net .sd-sidebar {
    background: transparent;
}

.theme-stardock-net .sd-sidebar > div {
    background: linear-gradient(to bottom, #051f38 0%, #0b111e 100%);
}

.theme-stardock-net .sd-sidebar h3 {
    background: none;
    color: #FFB400;
}

/* Section 11: Forum jump */
.theme-stardock-net .sd-forum-jump__select {
    border-color: #0d4c8a;
    background: #051f38;
}

/* Category group headers — white text on dark blue */
.theme-stardock-net .sd-category-group-header,
.theme-stardock-net .sd-category-group-header h2 {
    color: #FDFDFD;
}

/* Category table text — gold */
.theme-stardock-net .sd-category-row a {
    color: #FFB400;
}

/* Section 12: Category rows — hover unified in Section 4 */

.theme-stardock-net .sd-category-header {
    background: linear-gradient(to bottom,#051f38 0%,#0b111e 100%);
    color: #FFB400;
    border-bottom: 1px solid #0d4d8b;
}

/* Section 13: Moderators bar */
.theme-stardock-net .sd-moderators {
    background: #051f38;
    border-top: 1px solid #0d4c8a;
}

/* Section 14: Spoiler text */
.theme-stardock-net .spoiler {
    background: #0d4d8b;
    color: #0d4d8b;
}

    .theme-stardock-net .spoiler:hover, .theme-stardock-net .spoiler.revealed {
        background: transparent;
        color: inherit;
    }

/* Section 15: Quote blocks */
.theme-stardock-net .sd-quote {
    background: var(--post-quote-background);
    border-left: 3px solid #0d4c8a;
    padding: .5rem .75rem;
}

.theme-stardock-net .sd-quote-header {
    background: var(--post-quote-header-background);
    color: #FFB400;
    padding: .25rem .5rem;
    font-size: .8rem;
    font-weight: 600;
}

/* Section 16: Body background — the 1920x1120 page_bg.jpg covers the viewport
   without distortion. Scaled down on narrow screens so the image isn't so large
   that it dwarfs the content, and scroll-attached on mobile (iOS drops fixed
   backgrounds, which would otherwise leave a solid-black area). */
.theme-stardock-net {
    background: #000 url(https://www.stardock.com/games/images/page_bg.jpg) no-repeat fixed center top;
    background-size: cover;
}

@media (max-width: 900px) {
    .theme-stardock-net {
        background-attachment: scroll;
        background-size: 1280px auto;
    }
}

/* Section 17: Tags */
.theme-stardock-net .sd-tag {
    background-color: #0e0c0c;
    border: 1px solid #4e4c4c;
    color: #a7a7a7;
    box-shadow: #000 1px 1px;
}

    .theme-stardock-net .sd-tag:hover {
        background-color: #3e3e3e;
    }

/* Section 18: Footer */
.theme-stardock-net .sd-home-footer {
    background-color: rgba(12,73,134,.25);
}

/* Content area background */
.theme-stardock-net .sd-content-area {
    background: var(--body-background);
}
/* Dark-theme override — whiten the Stardock-reply badge so the Stardock S shows on dark backgrounds like the legacy forums. */
.theme-stardock-net .sd-stardock-reply {
    filter: brightness(0) invert(1);
}
