/* --- CORE THEME VARIABLES (From HTML) --- */
:root {
    --gold-primary: #f0c75e;
    --gold-dim: #b89642;
    --bg-dark-overlay: rgba(15, 15, 15, 0.95);
    --bg-header: #0a0a0a;
    --text-main: #d1d1d1;
    --text-muted: #888;
    --border-gold: 1px solid rgba(184, 150, 66, 0.4);
    --border-dark: 1px solid #222;
    --radius-std: 8px; 
    --shadow-std: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}
]
/* --- GLOBAL RESET --- */
* { box-sizing: border-box; }

body {
    background: #0f0f0f url(../../../images/uros/background.png) no-repeat center center fixed;
    background-size: cover;
    color: var(--text-main);
    font-family: 'Lato', 'Inter', sans-serif;
    font-size: 13px;
    margin: 0;
    padding: 0;
}

/* Blur Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 16, 0.6); 
    z-index: -1;
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
}

a:link,
a:visited {
    color: var(--text-main);
    text-decoration: none;
    transition: 0.2s;
}
a:hover,
a:active {
    color: var(--gold-primary);
}

/* --- MAIN CONTAINER --- */
#container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 1200px;
    max-width: 95%;
    margin: 30px auto 0 auto;
    overflow: visible;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 140px); /* keeps footer near bottom */
}

#content {
    padding: 20px 0;
    background: transparent;
    flex: 1 0 auto;
}

/* --- HEADER AREA --- */
.header-logo-area {
    padding: 30px 0 20px 0;
    text-align: center;
    background: transparent;
    position: relative;
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #fff5d6, #f0c75e, #b8860b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    display: inline-block;
}
.logo-sub {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-top: -5px;
    text-transform: uppercase;
}

.logo-img {
    max-height: 150px; 
    width: auto;
    filter: drop-shadow(0 5px 25px #000);
}

/* --- NAVIGATION BAR --- */
.nav-bar {
    background: #111111;
    border-top: 1px solid #222;
    border-bottom: 2px solid #000;
    height: 55px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    max-width: 1180px;       /* match your main wrapper width */
    margin: 0 auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;                 /* global spacing instead of big margins */
    margin-left: 10px;        /* smaller left gap from nav-bar edge */
}
.nav-item {
    display: inline-block;
    padding: 0 15px;
    height: 55px;
    line-height: 55px;
    color: var(--gold-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 3px solid transparent;
}

.nav-item i {
    margin-right: 6px;
    color: var(--gold-primary);
}

.nav-item a {
    color: var(--gold-primary);
    text-decoration: none;
}
.nav-item a:hover {
    color: #ffe9a3;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-bottom-color: var(--gold-primary);
}
.nav-item:hover i {
    color: var(--gold-primary);
}

/* --- USER PANEL --- */
.user-panel {
    display: flex;
    align-items: center;
    padding-right: 20px;
    gap: 15px;
    height: 100%;
    margin-left: auto;
}

/* STAFF SHIELD DROPDOWN */
.staff-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
}
.staff-icon {
    color: #b91c1c;
    font-size: 18px;
    transition: 0.2s;
    text-shadow: 0 0 10px rgba(185, 28, 28, 0.5);
}
.staff-dropdown-container:hover .staff-icon {
    color: var(--gold-primary);
}

.staff-dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    right: -10px;
    background: #111;
    border: 1px solid var(--gold-dim);
    min-width: 150px;
    z-index: 200;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    padding: 5px 0;
}
.staff-dropdown-container:hover .staff-dropdown-content {
    display: block;
}

.staff-dropdown-content a {
    display: block;
    padding: 8px 15px;
    color: #ccc;
    font-size: 11px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}
.staff-dropdown-content a:last-child {
    border-bottom: none;
}
.staff-dropdown-content a:hover {
    background: #222;
    color: var(--gold-primary);
}

/* Avatar */
.user-avatar-small {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: 1px solid #444;
    object-fit: cover;
}
.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    overflow: hidden;
    background: #000;
}
.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Icons */
.user-icon-btn {
    color: #888;
    font-size: 14px;
    transition: 0.2s;
    position: relative;
    padding: 5px;
}
.user-icon-btn:hover {
    color: var(--gold-primary);
}
.logout-btn:hover {
    color: #ff4d4d;
}
.msg-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gold-primary);
    color: #000;
    font-size: 9px;
    font-weight: bold;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- UNIFIED BUTTON STYLING --- */
input.button,
button.button,
a.button,
.bitButton,
.new_reply_button,
.new_thread_button,
.btn-action,
input[type="submit"] {
    background: var(--gold-primary) !important;
    color: #000 !important;
    font-weight: bold;
    padding: 8px 15px;
    border: 1px solid var(--gold-dim) !important;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

input.button:hover,
button.button:hover,
a.button:hover,
.btn-action:hover {
    background: #fff5d6 !important;
    color: #000 !important;
    box-shadow: 0 0 10px var(--gold-dim);
}

/* Secondary buttons (Preview, Draft) */
input.button[name="preview"],
input.button[name="savedraft"] {
    background: transparent !important;
    border: 1px solid var(--gold-primary) !important;
    color: var(--gold-primary) !important;
}
input.button[name="preview"]:hover {
    background: var(--gold-primary) !important;
    color: #000 !important;
}

/* --- FORUMS LAYOUT (SOLID BAR) --- */
.tborder {
    background: transparent !important;
    border: none !important;
    width: 100%;
    margin-bottom: 20px;
    border-spacing: 0;
    border-collapse: collapse;
}

.thead {
    background: #111111;
    color: var(--gold-primary);
    padding: 12px 15px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 1px solid var(--gold-dim);
    border-top: 1px solid #333;
}
.thead a {
    color: var(--gold-primary);
}

.cat-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-icon {
    color: var(--gold-primary);
    margin-right: 4px;
}

/* Collapse Button Right Side */
.expcolimage {
    float: right;
    margin-left: 10px;
    cursor: pointer;
}
.expcolimage img {
    opacity: 0.7;
}
.expcolimage img:hover {
    opacity: 1;
}

.tcat {
    background: #111;
    color: #777;
    padding: 8px 15px;
    font-size: 10px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

/* OPAQUE ROWS - SOLID */
.trow1,
.trow2 {
    background: rgba(22, 22, 22, 0.95);
    color: #ccc;
    padding: 14px 15px;
    border-bottom: 1px solid #222;
}
.trow1:hover,
.trow2:hover {
    background: #1c1c1c;
}
.trow1:last-child,
.trow2:last-child {
    border-bottom: none;
}

/* --- FORUM DISPLAY (THREAD LIST) --- */
.thread-list-container {
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-std);
    overflow: hidden;
    border: 1px solid #222;
    background: rgba(15, 15, 15, 0.6);
}

.forum-title-bar {
    background: #0c0c0c;
    border-bottom: 1px solid var(--gold-dim);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.forum-header-text {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 1.2rem;
    text-transform: uppercase;
}

.forum-title-link {
    color: var(--gold-primary);
}
.forum-title-link:hover {
    color: #ffe9a3;
}

/* Row Style for Threads */
.thread-row {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #1a1a1a;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.thread-row:last-child {
    border-bottom: none;
}
.thread-row:hover {
    background: rgba(35, 35, 35, 0.98);
}

.t-icon {
    width: 40px;
    text-align: center;
    font-size: 1.2rem;
}
.t-icon.pinned {
    color: var(--gold-primary);
}
.t-icon.normal {
    color: #555;
    font-size: 1rem;
}
.t-icon.closed {
    color: #333;
}

.t-info {
    flex: 1;
    padding-left: 10px;
}
.t-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ddd;
    display: block;
    margin-bottom: 3px;
}

/* Thread meta under title – don't override group colour */
.t-meta {
    font-size: 0.75rem;
    color: #777;
}
.t-meta a {
    color: inherit;
}

.t-tag {
    background: #333;
    color: #ccc;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}
.t-tag.imp {
    background: #c0392b;
    color: #fff;
}

.t-stats {
    width: 100px;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    display: block;
}

/* Last post block on thread list */
.t-lastpost {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    text-align: right;
}

/* Last post meta in thread list */
.t-lastpost-meta {
    font-size: 10px;
    line-height: 1.3;
    color: #aaaaaa;
}
.t-lastpost-meta div:last-child {
    color: #666666;
}

/* Let group colours come through if present */
.t-lastpost-meta a {
    color: inherit;
}

/* Last-post avatar circle */
.lp-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #333;
}

/* --- POSTBIT STYLING --- */
.post-container {
    margin-bottom: 30px;
    border: 1px solid #222;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-std);
    overflow: hidden;
}

.post-head {
    background: #0c0c0c;
    border-bottom: 1px solid #222;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #666;
}
.post-number {
    color: var(--gold-dim);
    font-weight: bold;
}

.post-body {
    display: flex;
}

/* User Profile Left */
.post-user {
    width: 200px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    border-right: 1px solid #222;
    text-align: center;
    flex-shrink: 0;
}
.u-name {
    font-size: 1rem;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    display: block;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px black;
}
.u-rank {
    font-size: 0.7rem;
    color: #fff;
    background: #c0392b;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}
.u-avatar {
    width: 120px;
    height: 120px;
    border: 3px solid #222;
    margin: 0 auto 15px;
    object-fit: cover;
    border-radius: 6px;
}

.u-stats {
    text-align: left;
    font-size: 0.7rem;
    color: #777;
    line-height: 1.6;
    border-top: 1px solid #222;
    padding-top: 10px;
    margin-top: 10px;
}
.u-stats b {
    color: #999;
}

/* Message Right */
.post-content {
    padding: 25px;
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}
.post-content h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    font-size: 1.4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.post-inlinecheck {
    margin-right: auto;
}

.post-foot {
    border-top: 1px solid #222;
    padding: 10px 20px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* --- SIDEBAR WIDGETS --- */
.widget {
    margin-bottom: 25px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid #222;
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-std);
    overflow: hidden;
}
.widget-head {
    background: #111111;
    padding: 12px 15px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gold-primary);
    border: 1px solid #222;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.widget-body {
    padding: 15px;
    font-size: 0.85rem;
    color: #aaa;
}

/* Server IP */
.server-ip-box {
    background: #000;
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
    font-family: 'Press Start 2P', monospace;  /* pixel-like MC style */
    font-size: 11px;
    color: var(--gold-primary);
    cursor: pointer;
    border-radius: 4px;
    letter-spacing: 0;
}

.server-ip-box:hover {
    background: #111;
    border-color: var(--gold-dim);
}

/* Footer layout */
.footer {
    background: transparent;           /* no panel, let the world show through */
    padding: 25px 0 30px 0;
    text-align: center;
    font-size: 11px;
    color: #dddddd;                    /* lighter for readability */
    border-top: none;                  /* no hard line */
    margin-top: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* keeps text readable over the terrain */
}
.footer-links {
    margin-bottom: 6px;
}
.footer-links a {
    color: var(--gold-primary);
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
.footer-divider {
    margin: 0 6px;
    color: #444;
}
.footer-copy a {
    color: var(--gold-primary);
}

/* --- UROS CUSTOM TWEAKS V23 --- */

/* Logo image in header */
.logo-image {
    max-width: 690px;
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Staff dropdown lists */
.staff-dropdown-content ul,
.staff-dropdown-content li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.staff-dropdown-content a {
    display: block;
    padding: 4px 10px;
    text-decoration: none;
}
.staff-dropdown-content a:hover {
    background: rgba(255,255,255,0.06);
}
.staff-dropdown-content a[href*="modcp.php"] {
    color: #4da3ff;
}
.staff-dropdown-content a[href*="admin"] {
    color: #ff6b6b;
}

/* Old lastpost wrapper (not used for new avatar layout but safe to keep) */
.lastpost-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lastpost-wrap img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Minecraft server status widget */
.mc-status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background: #777;
}
#mc-status-text {
    font-size: 11px;
}
.mc-online {
    color: #2ecc71;
}
.mc-offline {
    color: #e74c3c;
}
.mc-online-dot {
    background: #2ecc71;
}
.mc-offline-dot {
    background: #e74c3c;
}
.mc-player-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}
.mc-player-bar {
    width: 100%;
    background: #222;
    height: 4px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}
#mc-player-bar-inner {
    background: #2ecc71;
    height: 100%;
    width: 0%;
}

/* Breadcrumb navigation styling */
.navigation {
    background: rgba(0, 0, 0, 0.45);
    padding: 8px 14px;
    border-radius: 4px;
    border-left: 3px solid var(--gold-primary);
    margin: 0 0 16px 0;
    font-size: 13px;
}
.navigation a {
    color: #dddddd;
    text-decoration: none;
}
.navigation a:hover {
    color: var(--gold-primary);
}
.navigation .active {
    color: #ffffff;
    font-weight: 600;
}

/* Forum list: last-post avatar + text */
.lastpost-with-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lastpost-with-avatar .lastpost-avatar img,
.lastpost-with-avatar .lastpost-avatar .avatarep_img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.lastpost-with-avatar .lastpost-text {
    line-height: 1.2;
}

/* Do not override group colours on last-post username */
.lastpost-with-avatar .smalltext a {
    color: inherit;
    text-decoration: none;
}

/* Latest activity widget (with avatars) */
.latest-activity-list {
    padding: 0;
}

.latest-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
}

.latest-activity-item + .latest-activity-item {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.latest-activity-avatar {
    flex: 0 0 auto;
}

.latest-activity-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.latest-activity-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: block;
}

.latest-activity-main {
    flex: 1 1 auto;
    min-width: 0;
}

.latest-activity-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-activity-title:hover {
    color: var(--gold-primary);
}

.latest-activity-meta {
    font-size: 11px;
    opacity: 0.8;
}

.latest-activity-replies {
    min-width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 6px;
}

/* Moderation tools bar (thread tools & inline moderation) */
.mod-tools-bar {
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid #222;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.mod-tools-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #aaaaaa;
    margin-right: 6px;
}

.mod-tools-select {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #333;
    color: #dddddd;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.mod-tools-bar .button {
    padding: 4px 10px;
    font-size: 10px;
}

/* Thread title + pinned badge */
.t-title-wrap {
    display: flex;
    flex-direction: column;   /* badge on top, title underneath */
    align-items: flex-start;
    gap: 4px;
}

/* Pinned badge – hidden by default */
.thread-pin-badge {
    display: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gold-primary);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(240, 199, 94, 0.5);
    background: rgba(0, 0, 0, 0.45);
}

/* Show badge + highlight row for sticky threads (sticky1 from template) */
.thread-row.sticky1 .thread-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.thread-row.sticky1 {
    background: rgba(30, 24, 10, 0.97);
    border-bottom: 1px solid rgba(240, 199, 94, 0.35);
}

/* Section headers for Pinned / Other Threads */
.trow_sep,
.thread-section-sep {
    background: #101010;
    padding: 6px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f0c75e; /* gold text */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
}

.thread-section-pinned {
    color: var(--gold-primary);
}

.thread-section-normal {
    color: #cccccc;
}

.thread-section-sep i {
    margin-right: 6px;
    font-size: 12px;
}

/* Thread moderation options dropdown */
#moderator_options select,
select[name="action"] {
    background: #050505;
    border: 1px solid #333;
    color: #ddd;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

#moderator_options span.smalltext {
    margin-right: 6px;
}

/* Inline subforum list under each forum on the index */
.subforums-inline {
    display: inline-flex;      /* sit on one line */
    flex-wrap: nowrap;
    align-items: center;
    font-size: 0;              /* hide commas / stray text */
}

/* Just in case any <br> slipped in somewhere, ignore them */
.subforums-inline br {
    display: none !important;
}

/* Each child forum link */
.subforums-inline a {
    font-size: 11px;           /* restore readable size */
    color: #c0c0c0;
    text-decoration: none;
}

/* Gold dot separator between forums */
.subforums-inline a::after {
    content: "  \2022  ";        /* space + • + space */
    color: var(--gold-primary);
}

/* No dot after the last one */
.subforums-inline a:last-of-type::after {
    content: "";
}

.subforums-inline a:hover {
    color: var(--gold-primary);
}


.forumdisplay-subforums-header {
    background: #101010;
    padding: 6px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
}
/* Limit TinyMCE dropdown height & allow scrolling */
.tox .tox-menu.tox-collection--list {
    max-height: 220px;      /* adjust if you want taller/shorter */
    overflow-y: auto;
}

/* Safety for grouped lists (fontselect uses these) */
.tox .tox-collection__group {
    max-height: 220px;
    overflow-y: auto;
}
/* === UROS NAV REFINEMENTS (OVERRIDES) === */

/* Keep the bar aligned with the main 1200px container */
.nav-bar {
    max-width: 1200px;          /* same as #container */
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
    justify-content: space-between;
}

/* Main links row – less gap */
.nav-links {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 18px;
}

/* Top-level items */
.nav-links .nav-item,
.nav-links .nav-parent-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    height: 100%;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-primary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;           /* prevent Rules & Guidelines from stacking */
}

/* Icon colours */
.nav-links .nav-item i,
.nav-links .nav-parent-link i {
    color: var(--gold-primary);
}

/* Hover / active highlight */
.nav-links .nav-item:hover,
.nav-links .nav-parent-link:hover,
.nav-item.nav-item-dropdown:hover > .nav-parent-link {
    background: rgba(255,255,255,0.03);
    color: #fff;
    border-bottom-color: var(--gold-primary);
}

/* Make the label text slightly brighter on hover */
.nav-links .nav-item:hover .nav-label,
.nav-links .nav-parent-link:hover .nav-label {
    color: #ffffff;
}

/* Right side – search + user controls */
.user-panel {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Quick search – a bit taller and centred vertically */
.nav-quick-search {
    display: flex;
    align-items: center;
    background: #050505;
    border-radius: 999px;
    border: 1px solid #333;
    padding: 0 8px;
    height: 30px;
}

.nav-search-button {
    border: none;
    background: transparent;
    padding: 0 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-button i {
    color: var(--gold-primary);
    font-size: 12px;
}

.nav-search-input {
    background: transparent;
    border: none;
    color: #eee;
    padding: 0 6px;
    font-size: 11px;
    width: 180px;
}

.nav-search-input::placeholder {
    color: #777;
}

.nav-search-input:focus {
    outline: none;
}

/* === Dropdowns === */
.nav-item.nav-item-dropdown {
    position: relative;
}

.nav-item.nav-item-dropdown .nav-parent-link {
    padding-right: 18px;          /* space for caret */
}

.nav-caret {
    font-size: 9px;
    margin-left: 4px;
}

/* Dropdown container – same width as the button */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;                     /* make it follow parent width */
    min-width: 0;
    background: #111111;
    border-left: 1px solid var(--gold-primary);
    border-right: 1px solid var(--gold-primary);
    border-bottom: 1px solid var(--gold-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0;
    z-index: 150;
}

/* Show dropdown on hover */
.nav-item.nav-item-dropdown:hover .nav-dropdown-menu {
    display: flex;
}

/* Dropdown items – stacked, centred, no huge gaps */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 6px;
    font-size: 11px;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.nav-dropdown-menu a i {
    font-size: 11px;
    color: var(--gold-primary);
}

.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.04);
    color: #fff;
}

/* Make every top nav label consistent */
.nav-label {
    display: inline-block;
}
/* Left nav links – pull closer to left edge a bit */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;                 /* global spacing instead of big margins */
    margin-left: 10px;        /* smaller left gap from nav-bar edge */
}

/* Main nav items */
.nav-links .nav-item {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold-primary);
    white-space: nowrap;      /* prevents “Rules & Guides” from stacking */
}

/* remove big right margins if you still have them anywhere */
.nav-links .nav-item:not(.nav-parent-link) {
    margin-right: 0;
}
/* Parent for dropdowns */
.nav-item-dropdown {
    position: relative;
}

/* Parent link (the visible button) */
.nav-parent-link {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    height: 40px;
}

/* Dropdown panel */
.nav-item-dropdown .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;                /* same width as parent button */
    background: #111;               /* same as nav bar */
    border-left: 1px solid #d4a850; /* gold outline */
    border-right: 1px solid #d4a850;
    border-bottom: 1px solid #d4a850;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    padding: 4px 0;
    display: none;
    z-index: 9900;
}

/* Show on hover */
.nav-item-dropdown:hover .nav-dropdown-menu {
    display: block;
}

/* Links inside dropdown – centered, neat spacing */
.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 6px 14px;
    font-size: 11px;
    color: #f5f5f5;
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a i {
    width: 14px;
    text-align: center;
}

.nav-dropdown-menu a span {
    flex: 1;
}

.nav-dropdown-menu a:hover {
    background: #1a1a1a;
    color: #ffd36b;
}
/* --- NAV BAR FIXES --- */

/* 1. Stop the bar from overflowing the page */
.nav-bar {
    width: 100% !important;
    max-width: 1200px !important; /* Forces it to match main container width */
    margin: 0 auto !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
}

/* 2. Remove the gap between menu items */
.nav-links {
    gap: 0 !important;
}

/* 3. Make 'Rules' and 'Extras' (Dropdowns) behave like normal links */
/* This targets the DIV wrapper of the dropdown */
.nav-links div.nav-item {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 4. Apply consistent spacing to the actual clickable text */
/* This targets 'Home', 'Forums', etc AND 'Rules & Guides', 'Extras' */
.nav-links .nav-item, 
.nav-links .nav-parent-link {
    padding: 0 15px !important; /* Even spacing for everyone */
    margin: 0 !important;
    font-size: 11px !important;
}