/* Sins2 Theme — Dark theme with cyan/teal accents */
/* Colors extracted from legacy Sins2 forums.scss and sd2017.sins2.scss */

@font-face {
    font-family: "Agency FB Bold";
    src: url('/fonts/AGENCYB.TTF') format('truetype');
}

@font-face {
    font-family: "Agency FB";
    src: url('/fonts/AGENCYR.TTF') format('truetype');
}

@font-face {
    font-family: "Barlow Condensed";
    src: url('/fonts/BarlowCondensed-Regular.ttf') format('truetype');
}

@font-face {
    font-family: "Segoe Regular";
    src: url('/fonts/Segoecrg.ttf') format('truetype');
}

/* Section 1: Variable overrides */
.theme-sins2 {
    --accent-color: #1f526f;
    --accent-color-text: #FDFDFD;
    --background: #050e1a;
    --alternate-background: #0A1828;
    --text-color: #E8E8E8;
    --secondary-text-color: #9C9C9C;
    --table-text-color: #C8C8C8;
    --link-color: #35F1E8;
    --border-color: #1f526f;
    --border-color-gradient: #091c36;
    --header-background: #0A1828;
    --header-text-color: #E8E8E8;
    --menu-background: #050e1a;
    --menu-text-color: #E8E8E8;
    --section-header-background: #091c36;
    --section-header-background-2: #060f1a;
    --section-header-background-3: linear-gradient(to bottom,#0C2240 0%,#050e1a 100%);
    --section-header-text-color: #8AC8D0;
    --body-background: #021222;
    --body-text-color: #E0E0E0;
    --nav-gradient: linear-gradient(to bottom,rgba(31,82,111,1) 0%,rgba(9,28,54,1) 100%);
    --nav-border-color: #1f526f;
    --error-background: #2D0000;
    --error-text-color: #FF6B6B;
    --error-border-color: #8B0000;
    --success-text-color: #4CAF50;
    --message-background: #0A2D2D;
    --message-text-color: #35F1E8;
    --message-border-color: #1f526f;
    --post-quote-background: #0A1828;
    --post-quote-text-color: #C8D8E0;
    --post-quote-border-color: #1f526f;
    --post-quote-header-background: #091c36;
    --post-quote-header-text-color: #35F1E8;
    --search-highlight-text-color: #35F1E8;
    --tooltip-background-color: #0A1828;
    --tooltip-border-color: #1f526f;
    --tooltip-color: #E8E8E8;
    --tooltip-highlight-color: #35F1E8;
    --tooltip-de-emphasize-color: #6A6A6A;
    --table-header-background: #050e1a;
    --main-accent-color: #35F1E8;
    --sub-alert-background-color: #1f526f;
    --sub-alert-text-color: #FDFDFD;
    --sub-alert-link-color: #050e1a;
}
    /* Section 2: Site header overrides */
    .theme-sins2 .sd-site-header {
        background: linear-gradient(to bottom,#0C2240 0%,#091c36 100%);
        border-bottom-color: var(--accent-color);
    }

    .theme-sins2 .sd-site-title {
        color: var(--link-color);
    }
    /* Section 3: Breadcrumb bar */
    .theme-sins2 .sd-breadcrumbs li:not(:last-child)::after {
        color: var(--accent-color);
    }
    /* Section 4: Forum listing rows */
    .theme-sins2 .sd-thread-item:hover,
    .theme-sins2 .sd-thread-item:nth-child(even):hover,
    .theme-sins2 .sd-category-row:hover,
    .theme-sins2 .sd-category-table tbody tr:nth-child(even):hover {
        background: rgba(53,241,232,.06);
    }
    /* Section 5: Thread group labels and section headers */


    .theme-sins2 .sd-thread-list-header {
        background: var(--section-header-background);
    }
    /* Section 6: Post container headers (for thread view) */
    .theme-sins2 .sd-post-header {
        background: linear-gradient(to bottom,#0C2240 0%,#091c36 100%);
        border-bottom: 1px solid var(--accent-color);
    }

    .theme-sins2 .sd-post-header__username a {
        color: var(--link-color);
        font-weight: 600;
    }
    /* Section 7: Buttons and links */
    .theme-sins2 .sd-btn-primary {
        background-color: var(--accent-color);
        color: var(--accent-color-text);
    }

        .theme-sins2 .sd-btn-primary:hover {
            background-color: #266080;
        }

    .theme-sins2 .sd-btn-secondary {
        border-color: var(--accent-color);
        color: var(--body-text-color);
    }

        .theme-sins2 .sd-btn-secondary:hover {
            background: var(--alternate-background);
        }
    /* Section 8: Thread icon states */
    .theme-sins2 .sd-thread-icon--unread {
        color: var(--link-color);
    }

    .theme-sins2 .sd-thread-icon--read {
        color: var(--accent-color);
    }
    /* Section 9: Pagination */
    .theme-sins2 .sd-thread-tray__page-link {
        border-color: var(--accent-color);
        color: var(--link-color);
    }

        .theme-sins2 .sd-thread-tray__page-link:hover {
            background: var(--accent-color);
            color: var(--accent-color-text);
        }
    /* Section 10: Sidebar */
    .theme-sins2 .sd-sidebar {
    }
    /* Section 11: Forum jump */
    .theme-sins2 .sd-forum-jump__select {
        border-color: var(--accent-color);
        background: var(--section-header-background);
    }
    /* Section 12: Category rows (home page) — hover unified in Section 4 */
    .theme-sins2 .sd-category-header {
        background: linear-gradient(to bottom,#0C2240 0%,#091c36 100%);
        color: var(--link-color);
        border-bottom: 1px solid var(--accent-color);
    }
    /* Section 13: Moderators bar */
    .theme-sins2 .sd-moderators {
        background: var(--section-header-background);
        border-top-color: var(--accent-color);
    }
    /* Section 14: Spoiler text */
    .theme-sins2 .spoiler {
        background: var(--link-color);
        color: var(--link-color);
    }

        .theme-sins2 .spoiler:hover, .theme-sins2 .spoiler.revealed {
            background: transparent;
            color: inherit;
        }
    /* Section 15: Quote blocks */
    .theme-sins2 .sd-quote {
        background: var(--post-quote-background);
        border-left: 3px solid var(--post-quote-border-color);
        padding: .5rem .75rem;
    }

    .theme-sins2 .sd-quote-header {
        background: var(--post-quote-header-background);
        color: var(--post-quote-header-text-color);
        padding: .25rem .5rem;
        font-size: .8rem;
        font-weight: 600;
    }
/* Section 16: Body background — hero artwork. Applied at body level so it
   acts as a wide backdrop behind the entire forum content area. The
   Nav.BackgroundImageUrl entry was removed from appsettings.json for this
   theme so _SiteNav.cshtml doesn't inject a duplicate inline copy. */
.theme-sins2 {
    background: #021222 url(https://www.stardock.com/sinsofasolarempire/sinsofasolarempire2/sins2_subpage_releaseheader5.jpg) no-repeat center top;
}

/* Section 17: Site nav overrides — transparent over artwork with cyan borders */
.theme-sins2 .site-nav {
    --site-nav-bg: transparent;
    --site-nav-text: #35f1e8;
    --site-nav-hover-bg: rgba(4,64,94,.6);
    --site-nav-active-bg: rgba(4,64,94,.9);
    --site-nav-height: 3.75rem;
    --site-nav-border-color: #35f1e8;
    --site-nav-border-top: none;
    --site-nav-border-bottom: none;
    margin-top: 2rem;
    padding-bottom: 27rem;
}

.theme-sins2 .site-nav__bar {
    justify-content: center;
    max-width: 745px;
    background: transparent;
    position: relative;
}

.theme-sins2 .site-nav__logo {
    position: absolute;
    left: -47.5px;
    top: 0;
    height: 100%;
    padding: 0 1.25rem;
    z-index: 2;
    pointer-events: none;
}

.theme-sins2 .site-nav__logo img {
    max-height: 44px;
}

.theme-sins2 .site-nav__menu {
    background-color: rgba(31, 82, 111, 0.75);
    border: 1px solid #35f1e8;
    box-shadow: 0 0 10px rgba(53, 241, 232, 0.75);
    height: 100%;
    margin: 0;
}

.theme-sins2 .site-nav__item.navhidden {
    display: flex;
    visibility: hidden;
    max-width: 95px;
}

.theme-sins2 .site-nav__item.navhidden a {
    visibility: visible;
    color: transparent;
    padding: 0 .75rem;
    width: 95px;
}

.theme-sins2 .site-nav__item a {
    font-family: 'Agency FB Bold',Agency FB,arial,sans-serif;
    font-size: 1.375rem;
    letter-spacing: 1px;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    padding: 0 2rem;
    transition: all .2s ease-in-out
}

    .theme-sins2 .site-nav__item a:hover {
        border-left: 1px solid #35f1e8;
        border-right: 1px solid #35f1e8;
        background: rgba(4,64,94,.6)
    }

    .theme-sins2 .site-nav__item--active a {
        border-left: 1px solid #35f1e8;
        border-right: 1px solid #35f1e8;
        background: rgba(4,64,94,.9);
        font-weight: 500
    }

.theme-sins2 .site-nav__store {
    display: flex;
    align-items: center;
    background: rgba(0,126,55,.75);
    color: #1ceb48;
    font-family: 'Agency FB Bold',Agency FB,arial,sans-serif;
    font-size: 1.375rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0 3rem;
    height: 100%;
    margin-left: 8px;
    border: none;
    border: 1px solid rgb(28,235,72);
    box-sizing: border-box;
    transition: all .2s ease-in-out
}

    .theme-sins2 .site-nav__store:hover {
        box-shadow: 0 0 10px rgba(28,235,72,.75)
    }

/* Content area background */
.theme-sins2 .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-sins2 .sd-stardock-reply {
    filter: brightness(0) invert(1);
}

/* Mobile: swap to the cropped variant (tighter framing on the hero subject)
   and pin to a fixed size so the image isn't reduced to a skinny strip on
   portrait phone viewports. */
@media (max-width: 850px) {
    .theme-sins2 .site-nav__logo {
        display: none;
    }

    .theme-sins2 .site-nav {
        margin-top: 0;
        padding-bottom: 14rem;
    }

    .theme-sins2 {
        background-image: url(https://www.stardock.com/sinsofasolarempire/sinsofasolarempire2/sins2_subpage_releaseheader5_cropped.jpg);
        background-size: 900px auto;
        background-attachment: scroll;
        background-position: center -24px;
    }
}

/* Section 17: Mobile slide-in drawer — opened via the "Sins of a Solar Empire
   II Menu" item in the Stardock header's mobile nav. Styled with the Sins 2
   deep-blue/cyan palette and a green Store CTA matching the desktop nav. */
.sd-sins2-drawer {
    position: fixed;
    top: 0;
    left: -240px;
    width: 220px;
    height: 100%;
    background: #050e1a;
    border-right: 2px solid #1f526f;
    z-index: 2000;
    transition: left 0.35s ease;
    overflow-y: auto;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.sd-sins2-drawer--open { left: 0; }

.sd-sins2-drawer ul { list-style: none; margin: 0; padding: 0; }

.sd-sins2-drawer > ul > li {
    background: linear-gradient(180deg, #0d2236 0%, #050e1a 100%);
    border-bottom: 1px solid #1f526f;
    padding: 0.75em 0;
}

.sd-sins2-drawer > ul > li > a {
    display: block;
    color: #FDFDFD;
    text-decoration: none;
    padding: 0 1em;
}

.sd-sins2-drawer > ul > li > a > span {
    color: #FDFDFD;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sd-sins2-drawer > ul > li > a:hover > span,
.sd-sins2-drawer > ul > li.sd-sins2-drawer__active > a > span {
    color: #35F1E8;
    text-shadow: 0 0 6px rgba(53, 241, 232, 0.6);
}

.sd-sins2-drawer > ul > li.sd-sins2-drawer__store {
    background: linear-gradient(180deg, #1cb024 0%, #0c5b13 100%);
    border-bottom: 1px solid #1ceb48;
}

.sd-sins2-drawer > ul > li.sd-sins2-drawer__store > a > span {
    color: #FDFDFD;
    text-shadow: 1px 1px 2px #000;
}

.sd-sins2-drawer > ul > li.sd-sins2-drawer__store > a:hover > span {
    color: #c8ffd0;
}

.sd-sins2-drawer > ul > li.sd-sins2-drawer__close {
    background: linear-gradient(180deg, #1A1A1A 0%, #000000 100%);
    border-top: 1px solid #1f526f;
}

/* New Topic — Sins2 teal pill with cyan glow. */
.theme-sins2 .sd-forumhead__new-topic {
    background: var(--accent-color);
    border: 1px solid var(--link-color);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 8px rgba(53,241,232,.4);
    border-radius: 4px;
    color: var(--accent-color-text);
    letter-spacing: 1px;
}

    .theme-sins2 .sd-forumhead__new-topic:hover {
        background: #266080;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 12px rgba(53,241,232,.6);
        opacity: 1;
    }
