﻿body {
    background-color: #0e1720;
    font-family: 'Raleway', sans-serif;
    color: #e8e3ec;
    /* Raleway defaults to old-style figures (digits dip below the baseline);
       force lining figures so numbers align with the letters. */
    font-variant-numeric: lining-nums;
    -moz-font-feature-settings: "lnum" 1;
    -webkit-font-feature-settings: "lnum" 1;
    font-feature-settings: "lnum" 1;
}

html {
    height: 100%;
    box-sizing: border-box;
}

.shiny {
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.19);
}

#wrapper {
    margin: 0;
    padding: 0;
    position: relative;
    padding-bottom: 125px;
    min-height: 100vh !important;
}

.navbar-brand {
    padding: 0;
    height: auto;
    display: inline-block;
    line-height: 0; /* no whitespace deadspace around the logo */
}

.navbar-brand > img {
    height: 40px;   /* smaller nav icon */
    width: auto;
    padding: 0;     /* removes the clickable deadspace around the logo */
    display: block;
}

/* Admin button floated to the far-right edge of the full-width navbar.
   The navbar is position:relative (Bootstrap), so this anchors to the viewport
   edge rather than the centred .container. Shown on desktop; on mobile the
   in-menu copy (.nav-admin-menuitem) is used instead. */
.nav-admin-float {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #d5ad32 !important;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-indent: 1.3px;
    font-size: 12px;
    text-decoration: none;
    z-index: 5;
    transition: color 0.3s, transform 0.3s;
}

.nav-admin-float:hover {
    color: #e9c451 !important;
    transform: translateY(-50%) scale(1.1);
    text-decoration: none;
}

@media (min-width: 768px) {
    /* !important to beat the higher-specificity `.navbar-collapse .navbar-nav > li
       { display:flex }` row rule — otherwise the in-menu copy stays visible. */
    .nav-admin-menuitem { display: none !important; }   /* desktop uses the floated button */
}

@media (max-width: 767px) {
    .nav-admin-float { display: none; }       /* mobile uses the in-menu item */
}

/* "VALOR" wordmark (replaces the nav logo icon) */
.navbar-brand-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 4px;
    text-indent: 4px;        /* balance the trailing letter-spacing */
    line-height: 1;
    color: #ece8f1 !important;
    text-transform: uppercase;
    transition: color 0.3s;
    /* Sized close to the nav links (like Lunar's compact wordmark) so simple
       flex centring lines it up on both centre and baseline — no nudge needed. */
}

.navbar-brand-text:hover { color: #d5ad32 !important; }

/* Desktop: lay the whole nav out as one vertically-centred flex row so the
   brand, links, search, admin link and user box all line up on the same axis.
   Selectors are deliberately specific + !important to beat Bootstrap's own
   `.navbar-collapse.collapse{display:block!important}` and
   `.navbar-right{float:right!important}` desktop rules. */
@media (min-width: 768px) {
    .navbar-inverse > .container {
        display: flex;
        align-items: center;
    }

    .navbar-inverse .navbar-header {
        float: none;
        display: flex;
        align-items: center;
    }

    .navbar-inverse .navbar-collapse.collapse {
        display: flex !important;
        align-items: center;
        flex: 1 1 auto;
        padding-left: 0;
        padding-right: 0;
    }

    .navbar-inverse .navbar-collapse .navbar-nav {
        float: none !important;
        display: flex;
        align-items: center;
        margin: 0;
    }

    .navbar-inverse .navbar-collapse .navbar-nav:first-child { margin-left: 34px; }  /* gap after VALOR (Lunar) */

    .navbar-inverse .navbar-collapse .navbar-nav.navbar-right {
        float: none !important;
        margin-left: auto !important;   /* push to far right */
        margin-right: 0 !important;
    }

    .navbar-inverse .navbar-collapse .navbar-nav > li {
        float: none;
        display: flex;
        align-items: center;
        padding-left: 14px;   /* ~28px between links, matching Lunar */
        padding-right: 14px;
    }

    /* The search box no longer needs a manual nudge once the row is centred */
    .nav-search { margin-top: 0; }
}

footer {
    padding: 35px 60px;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #080f18;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* Hamburger toggle (shown only on mobile via Bootstrap's .navbar-toggle) */
.navbar-toggle {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    margin-top: 8px;
    margin-right: 15px;
    transition: border-color 0.3s;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggle .icon-bar {
    background-color: #ece8f1;
}

@media (max-width: 767px) {
    .navbar-brand {
        margin-left: 15px; /* spacing on mobile, outside the clickable area */
    }

    /* Collapsed menu panel — give it a backdrop so links are readable */
    .navbar-collapse {
        background-color: #0c1a28;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.3);
        margin-top: 10px;
        padding-bottom: 8px;
    }

    .navbar li {
        text-align: center;
    }

    /* The hover scale looks broken on full-width stacked links */
    .navbar li a:hover {
        transform: none;
    }

    .navbar-right li:last-of-type {
        padding-right: 8px !important;
    }

    footer {
        text-align: center;
        padding: 25px 15px;
        position: static;
        flex-direction: column;
        align-items: center;
    }

    #wrapper {
        padding-bottom: 0;
    }
}

.navbar li.active a {
    background-color: inherit !important;
}

.navbar li a, .navbar li button {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.3px;   /* matches the Lunar nav link tracking */
    text-indent: 1.3px;
    font-size: 12px;
    color: #ece8f1 !important;
    padding: 5px;
    padding-top: 2px;
    padding-bottom: 2px;
    border: 2px solid transparent;
    background-color: transparent;
    transition: all 0.5s;
}

.navbar li a:hover {
    color: #ece8f1 !important;
    transform: scale(1.25);
}

.navbar li {
    padding: 8px;
    padding-top: 11px;
    padding-bottom: 11px;
}

.navbar-right li:last-of-type {
    padding-right: 0;
}

header {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .23);
    min-height: 50px;
}

.navbar {
    margin-bottom: 0;
    padding-top: 10px;
    padding-bottom: 10px;
}

footer .footer-logo {
    height: 45px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
}

footer .footer-logo:hover {
    opacity: 1;
}

footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

footer .footer-links li a {
    padding: 5px 10px;
    text-transform: uppercase;
    color: #3a4a5a;
    font-weight: 900;
    font-size: 9px;
    letter-spacing: 4px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .footer-links li a:hover {
    color: #d5ad32;
}

footer .footer-copy {
    color: #2d3d4d;
    font-size: 9px;
    letter-spacing: 2px;
    margin: 0;
    text-transform: uppercase;
}

.navbar-brand:hover {
    opacity: 1;
}

.navbar-brand {
    transition: all 0.5s;
}

.navbar-inverse {
    background-color: transparent;
    border-color: transparent;
}

header {
    box-shadow: none;
    background: url('/images/header-bg.png') center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 22px;
}

#header {
    padding-bottom: 8px;
}

#header .text-center {
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#logo {
    margin: 0 auto;
    width: 150px;
    max-width: 70%;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.55));
}

#logo-subtitle {
    margin: 0;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.7em;
    color: #e8e3ec;
    text-align: center;
}

/* "X Players Online" button — copies the server IP on click */
.players-online-btn {
    margin-top: 12px;
    display: inline-block;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.28);
    color: #e8e3ec;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 0.62em;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.players-online-btn:hover {
    background: rgba(0,0,0,.5);
    border-color: rgba(255,255,255,.45);
}
.players-online-btn .po-num {
    font-size: 1.35em;
    font-weight: 900;
}
.players-online-btn.copied {
    background: #d5ad32;
    border-color: #d5ad32;
    color: #1a1206;
}

/* Discord widget embed on the homepage sidebar */
.discord-embed iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 6px;
}

#content {
    background-color: #0e1720;
    margin-top: -10px;
    border-radius: 0;
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

#alert a {
    text-align: center;
    padding: 5px;
    background-color: #ee1d25;
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.19);
    color: white;
    font-weight: 400;
    letter-spacing: 0.3em;
    font-size: 0.8em;
    text-indent: 0.25em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    display: block;
    text-decoration: none;
    transition: all 0.5s;
}

#alert a:hover {
    opacity: 0.5;
}

#news {
    margin-top: 15px;
    padding: 0 15px;
    padding-bottom: 15px;
}

.announcement {
    margin-bottom: 15px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

.announcement-title {
    background-image: url('/images/header-bg.png');
    background-size: cover;
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.19);
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    color: white;
    padding: 7px 10px 7px 15px;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: bolder;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.announcement-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.announcement-title a:hover {
    opacity: 0.7;
}

.announcement-pin {
    font-size: 0.6em;
    letter-spacing: 2px;
    color: #d5ad32;
    font-weight: 900;
}

.announcement-body {
    background-color: #0c1a28;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 10px 15px;
    color: white;
    letter-spacing: 0.05em;
    padding-bottom: 15px;
    box-shadow: 0px 2px 0px 1px rgba(0, 0, 0, .13);
}

.announcement-author {
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 0.85em;
    color: #C8C8C8;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.announcement-author img {
    border-radius: 3px;
    width: 16px;
    height: 16px;
}

.announcement-meta {
    font-size: 0.7em;
    color: #5a7a9a;
    letter-spacing: 1px;
    float: right;
    padding-top: 12px;
}

.announcement-text {
    position: relative;
    max-height: 150px;
    overflow: hidden;
    overflow-wrap: break-word;
    color: #b8c8d8;
    font-size: 0.9em;
    line-height: 1.6;
}

.announcement-text img { max-width: 100%; height: auto; }

.announcement-text:before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(rgba(255,255,255,0.001) 60px, #0c1a28 150px);
}

.announcement-read {
    display: inline-block;
    margin-top: 12px;
    border-radius: 6px;
    outline: none;
    border: none;
    background-color: #d5ad32;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    padding: 6px 12px;
    font-size: 0.7em;
    text-decoration: none;
    color: white;
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.19);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s;
}

.announcement-read:hover {
    background-color: #cba62f;
    color: white;
    text-decoration: none;
}

/* Staff support ticket notification badge */
.nav-notif-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 8px;
    pointer-events: none;
}

.home-sidebar {
    padding: 15px;
    padding-left: 0;
}

.sidebar-widget {
    background-color: #0c1a28;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 0 rgba(0,0,0,.13);
}

.sidebar-widget-title {
    background-image: url('/images/header-bg.png');
    background-size: cover;
    box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, 0.32), inset 0 0 0 2px rgba(255, 255, 255, 0.19);
    color: white;
    padding: 7px 12px;
    font-size: 0.65em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.sidebar-widget-body {
    padding: 12px;
}

.server-ip {
    font-size: 1.1em;
    font-weight: 800;
    color: #d5ad32;
    letter-spacing: 2px;
    text-align: center;
    padding: 8px 0;
}

.server-ip-label {
    font-size: 0.65em;
    color: #5a7a9a;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    display: block;
    margin-bottom: 4px;
}

.server-version {
    font-size: 0.7em;
    color: #5a7a9a;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 4px;
}

.col-md-12 {
    padding-left: 0;
    padding-right: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #5a7a9a;
}

.empty-state i {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
    opacity: 0.4;
}

.empty-state p {
    font-size: 0.8em;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* ── Nav player search ──────────────────────────────────────────────────── */
.nav-search-li { position: relative; }

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.nav-search-icon {
    position: absolute;
    left: 11px;
    color: #6f8094;
    font-size: 12px;
    pointer-events: none;
}

.nav-search-input {
    width: 150px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #ece8f1;
    padding: 4px 11px 4px 30px;
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: width 0.25s, background 0.25s, border-color 0.25s;
}

.nav-search-input::placeholder { color: #6f8094; }

.nav-search-input:focus {
    outline: none;
    width: 188px;
    background: rgba(0, 0, 0, 0.45);
    border-color: #d5ad32;
}

.nav-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0c1a28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1200;
}

.nav-search-results.open { display: block; }

/* Base background forced transparent so Bootstrap's .nav>li>a #eee doesn't show */
.navbar li a.nav-search-item,
.nav-search-item {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 11px !important;
    background: transparent !important;
    color: #ece8f1 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.15s !important;
}

.navbar li a.nav-search-item:hover,
.nav-search-item:hover {
    background: rgba(213, 173, 50, 0.14) !important;
    transform: none !important;
}

.nav-search-item img {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    image-rendering: pixelated;
}

.nav-search-empty {
    padding: 9px 11px;
    color: #6f8094;
    font-size: 11.5px;
    text-align: center;
}

/* ── "Logged in as" user box + notifications dropdown ───────────────────── */
.nav-user-li { position: relative; }

.nav-user {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
}

.navbar li a.nav-user-info,
.nav-user-info {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 3px 4px !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    border: none !important;
}

.navbar li a.nav-user-info:hover,
.nav-user-info:hover { transform: none !important; }

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    image-rendering: pixelated;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.nav-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.nav-user-label {
    font-size: 7.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6f8094;
    font-weight: 700;
}

.nav-user-name {
    font-size: 12px;
    font-weight: 800;
}

/* Toggle styled as a compact red notification badge (image-3 look) */
.nav-user-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 5px 7px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-user-toggle:hover { background: rgba(0, 0, 0, 0.45); border-color: #d5ad32; }

.nav-bars { display: block; }
.nav-bars span {
    display: block;
    width: 14px;
    height: 2px;
    background: #c3cdda;
    border-radius: 2px;
}
.nav-bars span + span { margin-top: 3px; }

/* Red rounded count badge sitting inside the toggle */
.nav-user-toggle .nav-notif-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(#f0584a, #d8392b);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.nav-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 232px;
    background: #0c1a28;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    z-index: 1200;
    padding: 4px 0;
    overflow: hidden;
}

.nav-user-dropdown.open { display: block; }

.nav-dd-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px 6px;
    font-size: 8.5px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-weight: 900;
    color: #8a9bb0;
}

.nav-dd-count {
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    letter-spacing: 0;
}

.nav-dd-request {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
}

.navbar li a.nav-dd-req-user,
.nav-dd-req-user {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    background: transparent !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    border: none !important;
}
.navbar li a.nav-dd-req-user:hover { transform: none !important; }

.nav-dd-req-user img {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    image-rendering: pixelated;
}

.nav-dd-req-name {
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dd-req-actions { display: flex; gap: 5px; }

.nav-dd-btn {
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 10px;
    color: #fff;
    transition: filter 0.15s;
}
.nav-dd-btn:hover { filter: brightness(1.15); }
.nav-dd-btn.accept { background: #27ae60; }
.nav-dd-btn.decline { background: #c0392b; }

.nav-dd-empty {
    padding: 8px 13px 10px;
    color: #6f8094;
    font-size: 11.5px;
}

.nav-dd-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

.navbar li a.nav-dd-link,
.nav-dd-link {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 13px !important;
    background: transparent !important;
    color: #c3cdda !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    border: none !important;
    transition: background 0.15s !important;
}

.navbar li a.nav-dd-link:hover,
.nav-dd-link:hover {
    background: rgba(213, 173, 50, 0.14) !important;
    color: #ffffff !important;
    transform: none !important;
}

.nav-dd-link i { width: 14px; color: #8a9bb0; }

/* ── Link & button interaction polish ─────────────────────────────────────
   Bootstrap 3 underlines links on hover/focus and the browser draws a focus
   outline box on click. We use colour-change hovers instead, so kill both —
   but keep a subtle keyboard focus ring (:focus-visible) for accessibility. */
a:hover, a:focus { text-decoration: none; }
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid rgba(213, 173, 50, .55);
  outline-offset: 2px;
}
