/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-base);
    background: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Homepage specific header */
.home-page .header {
    background: transparent;
    box-shadow: none;
}

.home-page .header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Header Top */
.header-top {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    z-index: 101;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 102;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 103;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 104;
}

.status-label {
    color: var(--text-muted);
}

.status-value {
    color: var(--text-color);
    font-weight: 500;
}

.status-value.online {
    color: var(--success-color);
}

.status-value.offline {
    color: var(--danger-color);
}

.server-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    position: relative;
    z-index: 103;
}

/* Header Main */
.header-main {
    padding: 15px 0;
    position: relative;
    z-index: 101;
}

.header.scrolled .header-main {
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 102;
}

.header-logo {
    display: block;
    width: 150px;
    transition: width var(--transition-base);
    position: relative;
    z-index: 103;
}

.header.scrolled .header-logo {
    width: 150px;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

/* Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 103;
}

.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 104;
}

.nav-item {
    position: relative;
    z-index: 105;
}

.nav-link {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    transition: color var(--transition-base);
    position: relative;
    z-index: 106;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    z-index: 107;
}

.nav-link.active:hover::after {
    transform: scaleX(1);
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 103;
}

.header-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    position: relative;
    z-index: 104;
}

.header-button.login {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.header-button.login:hover {
    background: var(--primary-color);
    color: #fff;
}

.header-button.register {
    background: var(--primary-color);
    color: #fff;
}

.header-button.register:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 103;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-dark);
    padding: 20px;
    z-index: 200;
    transition: right var(--transition-base);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 201;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 202;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 201;
}

.mobile-nav-item {
    margin-bottom: 15px;
    position: relative;
    z-index: 202;
}

.mobile-nav-link {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 203;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-main {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-buttons {
        display: none;
    }

    .header-logo {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-main {
        padding: 15px 0;
    }

    .header-logo {
        width: 120px;
    }

    .header-logo img {
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
}
