html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Cinzel', 'Garamond', serif;
    line-height: 1.6;
}

header {
    flex: 0 0 auto;
}

.main-content-container {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

footer {
    flex: 0 0 auto;
    background: linear-gradient(180deg, #111 0%, #090909 100%);
    color: var(--color-text-muted);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 1rem;
    text-shadow: 0 0 4px rgba(255, 215, 100, 0.25);
}

    footer a {
        color: rgb(255, 185, 85);
        text-decoration: underline;
    }

        footer a:hover {
            color: rgb(255, 220, 150);
            text-shadow: 0 0 6px rgba(255, 220, 150, 0.4);
        }

    footer .text-muted {
        color: var(--color-text-muted) !important;
    }

/* ====== COLOR PALETTE ====== */
:root {
    --color-bg: #0d0d0d;
    --color-surface: #181818;
    --color-primary: #d4af37;
    --color-secondary: #445a66; /* Muted steel gray-blue */
    --color-accent: #1d5c63;
    --color-text: #f3eacb;
    --color-text-muted: rgba(243, 234, 203, 0.75);
    --color-border: rgba(212, 175, 55, 0.25);
    --color-info: #2ca8a8;
    --color-warning: #e6b422;
    --color-error: #e84855;
    --color-success: #7dbf4a;
}

/* ====== BOOTSTRAP COLOR REMAP ====== */
:root {
    --bs-body-bg: var(--color-bg);
    --bs-body-color: var(--color-text);
    --bs-primary: var(--color-primary);
    --bs-secondary: var(--color-secondary);
    --bs-success: var(--color-success);
    --bs-info: var(--color-info);
    --bs-warning: var(--color-warning);
    --bs-danger: var(--color-error);
    --bs-light: #2a2a2a;
    --bs-dark: #000;
    --bs-link-color: var(--color-accent);
    --bs-link-hover-color: var(--color-primary);
    --bs-border-color: var(--color-border);
    --bs-secondary-color: var(--color-text-muted);
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    text-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

/* ====== LINKS ====== */
a {
    color: #3fa7a7;
    text-decoration: underline;
    transition: color 0.3s, text-shadow 0.3s;
}

    a:hover {
        color: #e2b44c;
        text-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
    }

/* ====== CARDS / PANELS ====== */
.card, .panel, .surface {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ====== NEWS ====== */
.news-archive-list a {
    text-decoration: none;
}

.news-archive-current {
    color: var(--color-primary);
    font-weight: 600;
}

.news-gazette-masthead {
    margin-bottom: 1rem;
}

.news-gazette-banner-line {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.news-gazette-banner-thumb {
    flex: 0 0 auto;
    width: 7.5rem;
    max-width: 30%;
    height: auto;
}

@media (min-width: 992px) {
    .news-archive {
        position: sticky;
        top: 1rem;
    }
}

/* ====== BUTTONS ====== */
.btn {
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* === PRIMARY BUTTON === */
.btn-primary {
    background-color: var(--color-primary);
    color: #000;
}

    .btn-primary:hover {
        background-color: #f1c84c;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    }

/* === SECONDARY BUTTON === */
.btn-secondary {
    background-color: var(--color-secondary); /* #445a66 steel gray-blue */
    color: #fff;
    border: none;
}

    .btn-secondary:hover {
        background-color: #5a6f7d; /* lighter steel tone */
        box-shadow: 0 0 10px rgba(68, 90, 102, 0.4);
    }

    .btn-secondary:focus,
    .btn-secondary:active,
    .btn-secondary.active {
        background-color: #6b8797; /* brighter tone for active/focus */
        box-shadow: 0 0 0 0.25rem rgba(68, 90, 102, 0.5); /* subtle glow ring */
        outline: none;
    }

/* === ACCENT BUTTON === */
.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
}

    .btn-accent:hover {
        background-color: #27767d;
        box-shadow: 0 0 10px rgba(29, 92, 99, 0.4);
    }

/* ====== HEADER / NAVBAR ====== */
header, .navbar {
    background: linear-gradient(180deg, #111 0%, #090909 100%);
    border-bottom: 1px solid rgba(212,175,55,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.navbar-brand {
    color: var(--color-primary);
    font-weight: 700;
    text-shadow: 0 0 8px rgba(212,175,55,0.4);
}

    .navbar-brand:hover {
        color: #f1c84c;
    }

/* Nav links */
.nav-link {
    position: relative;
    color: var(--color-text-muted) !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s, text-shadow 0.3s;
}

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background: var(--color-primary);
        transform: scaleX(0);
        transition: transform 0.3s ease;
        transform-origin: left;
        opacity: 0.6;
    }

    .nav-link:hover::after {
        transform: scaleX(1);
    }

    .nav-link:hover {
        color: var(--color-primary) !important;
        text-shadow: 0 0 6px rgba(212,175,55,0.5);
    }

    .nav-link.active {
        color: var(--color-primary) !important;
        text-shadow: 0 0 10px rgba(212,175,55,0.8);
    }

        .nav-link.active::after {
            transform: scaleX(1);
            opacity: 1;
        }

/* ====== Toggler button ====== */
.navbar-toggler {
    border-color: var(--color-border);
    background-color: rgba(212,175,55,0.15);
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 6px;
}

    .navbar-toggler:hover {
        background-color: rgba(212,175,55,0.35);
        box-shadow: 0 0 8px rgba(212,175,55,0.6);
    }

/* Make the hamburger (icon) visible and golden */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgb(240,200,80)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 4px rgba(212,175,55,0.6));
}

.navbar-toggler:hover .navbar-toggler-icon {
    filter: drop-shadow(0 0 8px rgba(255,220,150,0.8));
}

/* Collapse transition */
.navbar-collapse {
    transition: all 0.4s ease-in-out;
}

/* ====== FORM ELEMENTS ====== */
.form-control, .form-check-input {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

    .form-control:focus {
        border-color: var(--color-primary);
        box-shadow: 0 0 0 0.25rem rgba(212,175,55,0.25);
    }

/* ====== UTILITIES ====== */
.border-top {
    border-top: 1px solid var(--color-border) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--color-border) !important;
}

/* ====== FANTASY INITIAL (NO FLOAT) ====== */
p:first-of-type::first-letter {
    font-family: 'Cinzel Decorative', 'Uncial Antiqua', 'Garamond', serif;
    color: var(--color-primary);
    font-size: 1.6rem;
    line-height: 1;
    margin-right: 0.1em;
    padding: 0.05em 0.1em;
    background: radial-gradient( circle at 50% 50%, rgba(212,175,55,0.15) 0%, rgba(212,175,55,0.05) 60%, transparent 100% );
    border-radius: 4px;
    /* Add a dark red accent shadow down and right */
    text-shadow: 2px 2px 6px rgba(29,92,99,0.8), /* existing blue shadow */
                 0 0 12px rgba(212,175,55,0.7), /* existing gold glow */
                 2.5px 2.5px 0px #7a1c1c; /* new dark red accent shadow down and right */
    float: none;
    display: inline-block;
    vertical-align: baseline; /* aligns nicely with text */
}

.full-bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: block;
    height: auto;
    object-fit: cover;
    box-sizing: border-box;
}


/* sizing */
.responsive-image {
    max-width: 100%; /* Ensures the image never exceeds the width of its parent element */
    height: auto; /* Crucial: Maintains the original aspect ratio so the image doesn't get stretched or squished */
    display: block; /* Optional, but often helpful for better handling of margins and preventing inline element spacing issues */
}

/* used by navbar */
.box-shadow {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.dropdown-menu {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
}

/* Dropdown menu item styling to match navbar underline effect */
.dropdown-item {
    position: relative;
    color: var(--color-text-muted) !important;
    background-color: var(--color-bg) !important;
    transition: color 0.2s, background-color 0.2s;
    padding: 0.5rem 1rem;
}

.dropdown-item::after {
    content: "";
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.dropdown-item:hover::after,
.dropdown-item:focus::after {
    transform: scaleX(1);
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--color-primary) !important;
    background-color: var(--color-bg) !important;
    text-shadow: 0 0 6px rgba(212,175,55,0.5);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-left: 0.1rem;
    margin-right: 0.1rem;
    display: none;
    position: absolute;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

@media (max-width: 991.98px) {
    .dropdown-submenu > .dropdown-menu {
        position: static;
        display: none;
        margin-left: 0;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
}

.text-info {
    color: var(--color-info);
}

.callout-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    color: var(--color-primary);
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 6px rgba(212,175,55,0.15);
    transition: background 0.2s, color 0.2s;
}

.callout-link:hover {
    background: var(--color-primary);
    color: #000;
}

/* ====== PLAYER GUIDE ====== */
.player-guide-placeholder {
    padding: 1rem 1.25rem;
    background: rgba(68, 90, 102, 0.35);
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    color: var(--color-text-muted);
}

.player-guide-nav a {
    color: var(--color-accent);
    text-decoration: none;
}

.player-guide-nav a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.player-guide-nav li + li {
    margin-top: 0.35rem;
}

/* ====== CONSTRUCTION OVERLAY ====== */
.construction-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(4px);
}

.construction-overlay-content {
    max-width: 42rem;
    width: 100%;
}

.construction-overlay.is-hidden {
    display: none;
}

