/* GLOBAL HEADER - GLASS DESIGN WITH RADIAL GLOW */

.header-glow {
    display: none;
}

.maintenance-schedule-banner {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1003;
    width: 100%;
    min-height: var(--header-offset);
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(251, 146, 60, 0.18), rgba(74, 163, 255, 0.12)),
        rgba(5, 16, 31, 0.94);
    border-bottom: 1px solid rgba(251, 191, 36, 0.22);
    color: #fef3c7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.maintenance-schedule-banner-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: var(--header-offset);
    font-size: 0.82rem;
    font-weight: 900;
}

.maintenance-schedule-banner-inner span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-bg-blur {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background:
        radial-gradient(ellipse at 18% 0%, rgba(74, 163, 255, 0.12) 0%, transparent 44%),
        radial-gradient(ellipse at 82% 0%, rgba(16, 185, 129, 0.07) 0%, transparent 38%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.56), rgba(7, 12, 22, 0.42));
    backdrop-filter: blur(18px) saturate(135%);
    z-index: 1000;
    border-bottom: 1px solid rgba(125, 175, 255, 0.14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    transition: top 0.3s ease;
}

.header-bg-blur::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 175, 255, 0.42), transparent);
}

.navbar {
    position: fixed;
    top: var(--header-offset);
    left: 0;
    width: 100%;
    z-index: 1001;
    background: transparent !important;
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: var(--nav-height) !important;
    transition: top 0.3s ease;
}

/* BRAND */
.navbar-brand {
    width: 164px;
    min-width: 142px;
    height: 68px;
    padding: 0;
    margin-right: 18px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(0 0 14px rgba(74, 163, 255, 0.25)) drop-shadow(0 7px 12px rgba(0, 0, 0, 0.45));
}

.navbar-brand:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

/* NAV LINKS */
.nav-link {
    color: #c5d9f0 !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 3px;
    transition: all 0.2s ease;
    padding: 9px 13px;
    border-radius: 999px;
    position: relative;
    border: 1px solid transparent;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #60a5fa;
    border-radius: 2px;
    transition: width 0.2s ease;
}

.nav-link:hover {
    background: rgba(74, 163, 255, 0.12);
    border-color: rgba(74, 163, 255, 0.18);
    color: #ffffff !important;
}

.nav-link:hover::after {
    width: 20px;
}

.nav-link.active {
    background: rgba(74, 163, 255, 0.18);
    border-color: rgba(74, 163, 255, 0.28);
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link.active::after {
    width: 24px;
    background: #60a5fa;
}

.nav-link i {
    font-size: 1rem;
    margin-right: 6px;
}

/* RIGHT-SIDE BUTTONS */
.auth-btn {
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    margin-left: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
}

.auth-btn.active {
    outline: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 0 0 3px rgba(96, 165, 250, 0.12),
        0 4px 14px rgba(74, 163, 255, 0.22);
}

/* LOGIN */
.btn-login {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4e4ff;
}

.btn-login:hover {
    background: rgba(74, 163, 255, 0.2);
    border-color: rgba(74, 163, 255, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

/* REGISTER */
.btn-register {
    background: linear-gradient(135deg, #4aa3ff, #2563eb);
    border: none;
    color: #fff;
    box-shadow: 0 2px 8px rgba(74, 163, 255, 0.25);
}

.btn-register:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 163, 255, 0.35);
}

.btn-register:focus,
.btn-register:active {
    filter: brightness(1.1);
    box-shadow: none;
    transform: none;
}

/* VOTE BUTTON */
.btn-nav-vote {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-nav-vote:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-nav-vote:focus,
.btn-nav-vote:active,
.btn-nav-vote:visited {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
    filter: brightness(1.1);
    box-shadow: none !important;
    transform: none !important;
}

/* VOTESHOP BUTTON */
.btn-nav-voteshop {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 8px 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-nav-voteshop:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-nav-voteshop:focus,
.btn-nav-voteshop:active,
.btn-nav-voteshop:visited {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    filter: brightness(1.1);
    box-shadow: none !important;
    transform: none !important;
}

/* DISCORD */
.btn-discord {
    background: #5865F2;
    border: none;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 12px;
    margin-left: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-discord:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* USER DROPDOWN */
.user-dropdown {
    margin-left: 8px;
}

.user-dropdown .dropdown-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    color: #d4e4ff;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.user-dropdown .dropdown-toggle:hover {
    background: rgba(74, 163, 255, 0.15);
    border-color: rgba(74, 163, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

.user-dropdown .dropdown-toggle::after {
    margin-left: 4px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 700;
}

.user-avatar-img {
    object-fit: cover;
}

.user-dropdown .dropdown-menu {
    background: rgba(12, 16, 28, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    margin-top: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    min-width: 180px;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown .dropdown-item {
    color: #c5d9f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(74, 163, 255, 0.15);
    color: #ffffff;
    transform: translateX(2px);
}

.user-dropdown .dropdown-item.active {
    background: rgba(74, 163, 255, 0.18);
    color: #ffffff;
}

.user-dropdown .dropdown-item i {
    color: #60a5fa;
    width: 16px;
    font-size: 0.9rem;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ff6b6b;
}

.user-dropdown .dropdown-item.text-danger i {
    color: #ff6b6b;
}

.user-dropdown .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 6px 0;
}

.dropdown-header {
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 8px 14px 6px;
}

/* GM Badge */
.gm-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 4px;
    letter-spacing: 0.5px;
}

/* MOBILE TOGGLER */
.header-bg-blur, .navbar {
    transition: top 0.3s ease;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
}

.navbar-toggler-icon {
    filter: brightness(1.5);
}

.navbar-toggler-icon-custom {
    font-size: 1.5rem;
    color: #c5d9f0;
}

/* PAGE STRUCTURE */
html, body {
    height: 100%;
}

body {
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
    margin-top: var(--content-margin);
}

footer {
    flex-shrink: 0;
}

/* RESPONSIVE - MOBILE */
@media (max-width: 991px) {
    .maintenance-schedule-banner-inner {
        width: min(100% - 20px, 1280px);
        justify-content: flex-start;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .maintenance-schedule-banner-inner::-webkit-scrollbar {
        display: none;
    }

    .navbar-collapse {
        background:
            linear-gradient(180deg, rgba(10, 15, 25, 0.78), rgba(7, 12, 22, 0.68)),
            rgba(7, 12, 22, 0.64);
        backdrop-filter: blur(18px) saturate(135%);
        border-radius: 16px;
        padding: 14px;
        margin-top: 10px;
        border: 1px solid rgba(125, 175, 255, 0.14);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    }

    .navbar-brand {
        width: 144px;
        height: 58px;
        margin-right: 10px;
    }

    .navbar-nav {
        margin-bottom: 12px;
    }

    .nav-link {
        padding: 10px 14px;
        border-radius: 10px;
    }

    .nav-link::after {
        display: none;
    }

    .nav-actions-mobile {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-actions-mobile .auth-btn,
    .nav-actions-mobile .btn-discord {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .user-dropdown {
        margin-left: 0;
    }

    .user-dropdown .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown .dropdown-menu {
        width: 100%;
    }

    .server-status {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 0.8rem;
        color: #10b981;
        font-weight: 600;
        padding: 10px;
        margin-bottom: 4px;
        background: rgba(16, 185, 129, 0.1);
        border-radius: 8px;
        border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .server-status.partial {
        color: #fbbf24;
        background: rgba(251, 191, 36, 0.1);
        border-color: rgba(251, 191, 36, 0.24);
    }

    .server-status.offline {
        color: #f87171;
        background: rgba(248, 113, 113, 0.1);
        border-color: rgba(248, 113, 113, 0.24);
    }

    .server-status.unknown {
        color: #a8bdd4;
        background: rgba(168, 189, 212, 0.08);
        border-color: rgba(168, 189, 212, 0.18);
    }

    .status-dot {
        width: 8px;
        height: 8px;
        background: #10b981;
        border-radius: 50%;
        animation: pulse 2s infinite;
    }

    .server-status.partial .status-dot {
        background: #fbbf24;
        animation-name: pulsePartial;
    }

    .server-status.offline .status-dot {
        background: #f87171;
        animation: none;
    }

    .server-status.unknown .status-dot {
        background: #a8bdd4;
        animation: none;
    }

    @keyframes pulse {
        0%, 100% { opacity: 1; box-shadow: 0 0 8px #10b981; }
        50% { opacity: 0.5; box-shadow: 0 0 4px #10b981; }
    }

    @keyframes pulsePartial {
        0%, 100% { opacity: 1; box-shadow: 0 0 8px #fbbf24; }
        50% { opacity: 0.5; box-shadow: 0 0 4px #fbbf24; }
    }

    .content-wrapper {
        margin-top: var(--content-margin);
    }
}

@media (min-width: 992px) {
    .nav-actions-mobile {
        display: none !important;
    }
    .server-status {
        display: none;
    }
}

@media (max-width: 420px) {
    .navbar-brand {
        width: 124px;
        height: 52px;
    }

    .navbar {
        padding-left: 2px;
        padding-right: 2px;
    }
}

