/* DeadMansDraw Theme — Dark pirate with gold accents */
/* Palette references the legacy site.css (#ffd374 gold accent on dark body bg). */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');

/* Section 1: Variable overrides */
.theme-deadmansdraw {
    --accent-color: #c1a872;
    --accent-color-text: #181512;
    --background: #0E0C0A;
    --alternate-background: #1A1812;
    --text-color: #FDFDFD;
    --secondary-text-color: #A7A7A7;
    --table-text-color: #C8C8C0;
    --link-color: #ffd374;
    --border-color: #4E4C4C;
    --border-color-gradient: #1A1A1A;
    --header-background: #1E1C14;
    --header-text-color: #FDFDFD;
    --menu-background: #0E0C0A;
    --menu-text-color: #FDFDFD;
    --section-header-background: #1A1810;
    --section-header-background-2: #141210;
    --section-header-background-3: linear-gradient(to bottom,#1E1C14 0%,#0F0E0A 100%);
    --section-header-text-color: #ffd374;
    --body-background: rgba(24,21,18,.82);
    --body-text-color: #FDFDFD;
    --nav-gradient: linear-gradient(to bottom,#23201A 0%,#141210 100%);
    --nav-border-color: #ffd374;
    --error-background: #2D0000;
    --error-text-color: #FF6B6B;
    --error-border-color: #8B0000;
    --success-text-color: #4CAF50;
    --message-background: #2D2200;
    --message-text-color: #FFD54F;
    --message-border-color: #8B6914;
    --post-quote-background: #1A1810;
    --post-quote-text-color: #D0C8B0;
    --post-quote-border-color: #5A5030;
    --post-quote-header-background: #141210;
    --post-quote-header-text-color: #ffd374;
    --search-highlight-text-color: #ffd374;
    --tooltip-background-color: #1E1C14;
    --tooltip-border-color: #4E4C4C;
    --tooltip-color: #FDFDFD;
    --tooltip-highlight-color: #ffd374;
    --tooltip-de-emphasize-color: #6A6A6A;
    --table-header-background: #0E0C0A;
    --main-accent-color: #ffd374;
    --sub-alert-background-color: #ffd374;
    --sub-alert-text-color: #181512;
    --sub-alert-link-color: #181512;
}

    .theme-deadmansdraw .site-nav {
        --site-nav-active-bg: transparent;
    }

/* Section 2: Body background — legacy body.background.jpg, fixed center top */
body.theme-deadmansdraw {
    background: #181512 url('/images/themes/deadmansdraw/body.background.jpg') repeat center 33px fixed;
    color: #FDFDFD;
    padding-top: 33px;
}

/* Section 3: Site header overrides */
.theme-deadmansdraw .sd-site-header {
    background: linear-gradient(to bottom,#1E1C14 0%,#141210 100%);
    border-bottom-color: var(--nav-border-color);
}

.theme-deadmansdraw .sd-site-title {
    color: var(--search-highlight-text-color);
}

/* Section 4: Breadcrumb bar */
.theme-deadmansdraw .sd-breadcrumbs li:not(:last-child)::after {
    color: #6A5A3A;
}

/* Section 5: Forum listing rows */
.theme-deadmansdraw .sd-thread-item:hover,
.theme-deadmansdraw .sd-thread-item:nth-child(even):hover,
.theme-deadmansdraw .sd-category-row:hover,
.theme-deadmansdraw .sd-category-table tbody tr:nth-child(even):hover {
    background: rgba(255,211,116,.08);
}

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

/* Section 6: Post container headers (for thread view) */
.theme-deadmansdraw .sd-post-header {
    background: linear-gradient(to bottom,#23201A 0%,#1A1810 100%);
    border-bottom: 1px solid var(--border-color);
}

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

/* Section 7: Buttons and links */
.theme-deadmansdraw .sd-btn-primary {
    background-color: #6A5A30;
    color: #FDFDFD;
}

.theme-deadmansdraw .sd-btn-primary:hover {
    background-color: #8B7820;
}

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

.theme-deadmansdraw .sd-btn-secondary:hover {
    background: #252018;
}

/* New Topic CTA — gold pill matching legacy nav links */
.theme-deadmansdraw .sd-forumhead__new-topic {
    background: linear-gradient(to bottom,#ffd374 0%,#c9a14b 100%);
    color: #181512;
    border: 1px solid #8B6914;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 3px rgba(0,0,0,.5);
    font-family: 'IM Fell English SC', Georgia, serif;
}

.theme-deadmansdraw .sd-forumhead__new-topic:hover {
    background: linear-gradient(to bottom,#ffe09a 0%,#d8b15c 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 0 8px rgba(255,211,116,.5);
}

/* Section 8: Thread icon states */
.theme-deadmansdraw .sd-thread-icon--unread {
    color: var(--link-color);
}

.theme-deadmansdraw .sd-thread-icon--read {
    color: #5A5A5A;
}

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

.theme-deadmansdraw .sd-thread-tray__page-link:hover {
    background: #6A5A30;
    color: #FDFDFD;
}

/* Section 10: Forum jump */
.theme-deadmansdraw .sd-forum-jump__select {
    border-color: var(--border-color);
    background: var(--section-header-background-2);
}

/* Section 11: Category rows (home page) */
.theme-deadmansdraw .sd-category-header {
    background: linear-gradient(to bottom,#1E1C14 0%,#141210 100%);
    color: var(--search-highlight-text-color);
    border-bottom: 1px solid var(--border-color);
    font-family: 'IM Fell English SC', Georgia, serif;
}

/* Section 12: Moderators bar */
.theme-deadmansdraw .sd-moderators {
    background: var(--section-header-background-2);
    border-top-color: #2A2818;
}

/* Section 13: Spoiler text */
.theme-deadmansdraw .spoiler {
    background: var(--link-color);
    color: var(--link-color);
}

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

/* Section 14: Quote blocks */
.theme-deadmansdraw .sd-quote {
    background: var(--post-quote-background);
    border-left: 3px solid var(--post-quote-border-color);
    padding: .5rem .75rem;
}

.theme-deadmansdraw .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 15: Content area background — translucent so body bg shows through */
.theme-deadmansdraw .sd-content-area {
    background: var(--body-background);
}

/* Section 16: Stardock-reply badge — invert on dark for legacy parity */
.theme-deadmansdraw .sd-stardock-reply {
    filter: brightness(0) invert(1);
}

/* Section 17: Site nav — pirate gold serif on dark, diamond separators */
.theme-deadmansdraw .site-nav {
    background: transparent;
    border-top: none;
    border-bottom: none;
    padding: 6px 0 30px;
}

.theme-deadmansdraw .site-nav__bar {
    display: flex;
    background: transparent;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.theme-deadmansdraw .site-nav__logo {
    display: none;
}

.theme-deadmansdraw .site-nav__menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.theme-deadmansdraw .site-nav__item {
    margin: 0;
    padding: 0;
    position: relative;
}

    .theme-deadmansdraw .site-nav__item a:hover {
        border-radius: 24px;
    }

.theme-deadmansdraw .site-nav__item + .site-nav__item::before {
    content: '\2666';
    color: #ffd374;
    font-size: 18px;
    margin: 7px 12px;
    opacity: .85;
}

.theme-deadmansdraw .site-nav__link,
.theme-deadmansdraw .site-nav__item > a {
    color: #ffd374;
    font-family: 'IM Fell English SC', Georgia, serif;
    font-size: 22px;
    font-weight: normal;
    text-decoration: none;
    text-transform: lowercase;
    padding: 4px 6px;
    display: inline-block;
    transition: text-shadow .15s ease-in-out, color .15s ease-in-out;
}

.theme-deadmansdraw .site-nav__link:hover,
.theme-deadmansdraw .site-nav__item > a:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(255,211,116,.7);
}

.theme-deadmansdraw .site-nav__item--active > a,
.theme-deadmansdraw .site-nav__link--active {
    color: #fff3c8;
    text-shadow: 0 0 6px rgba(255,211,116,.6);
}

.theme-deadmansdraw .site-nav__store > a {
    color: #ffd374;
}

/* Section 18: Mobile drawer — slide-in from left, gold-on-charcoal */
.sd-deadmansdraw-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(to bottom,#1E1C14 0%,#0F0E0A 100%);
    border-right: 1px solid #ffd374;
    box-shadow: 4px 0 16px rgba(0,0,0,.6);
    transform: translateX(-100%);
    transition: transform .25s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    padding: 16px 0;
}

.sd-deadmansdraw-drawer--open {
    transform: translateX(0);
}

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

.sd-deadmansdraw-drawer li {
    border-bottom: 1px solid rgba(255,211,116,.18);
}

.sd-deadmansdraw-drawer li a {
    display: block;
    padding: 14px 22px;
    color: #ffd374;
    font-family: 'IM Fell English SC', Georgia, serif;
    font-size: 22px;
    text-decoration: none;
    text-transform: lowercase;
}

.sd-deadmansdraw-drawer li a:hover {
    background: rgba(255,211,116,.08);
    text-shadow: 0 0 6px rgba(255,211,116,.5);
}

.sd-deadmansdraw-drawer__active > a {
    color: #fff3c8;
}

.sd-deadmansdraw-drawer__store > a {
    color: #6dd86d;
}

.sd-deadmansdraw-drawer__close > a {
    color: #a07840;
    font-size: 16px;
}
