/* Universal Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 30px rgba(139, 0, 0, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 10px rgba(139, 0, 0, 0.5));
}

.nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
}

.nav-link:hover {
    color: #FF4444;
    background: rgba(139, 0, 0, 0.1);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.nav-link:hover svg {
    transform: translateY(-2px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 8px;
    border: 1px solid rgba(139, 0, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-menu a svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.dropdown-menu a:hover {
    background: rgba(139, 0, 0, 0.2);
    transform: translateX(4px);
    color: #FF4444;
}

.dropdown-menu a:hover svg {
    opacity: 1;
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.discord-btn {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.15);
    border: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 12px;
    color: #5865F2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.discord-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(88, 101, 242, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.discord-btn:hover::before {
    width: 100px;
    height: 100px;
}

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: #5865F2;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-red) 0%, #A00000 100%);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.15);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-login:hover::before {
    width: 300px;
    height: 300px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #A00000 0%, var(--primary-red) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid rgba(139, 0, 0, 0.4);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(139, 0, 0, 0.3);
    border-color: var(--primary-red);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-item {
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(139, 0, 0, 0.2);
    border-color: rgba(139, 0, 0, 0.4);
    transform: translateX(4px);
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
}

.mobile-dropdown-content {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
    padding-left: 20px;
}

.mobile-dropdown-content.active {
    display: flex;
}

.mobile-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-dropdown-link:hover {
    background: rgba(139, 0, 0, 0.2);
    color: var(--white);
    transform: translateX(4px);
}

.mobile-dropdown-link svg {
    width: 16px;
    height: 16px;
}

.mobile-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

.mobile-discord-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: rgba(88, 101, 242, 0.15);
    border: 2px solid rgba(88, 101, 242, 0.4);
    border-radius: 10px;
    color: #5865F2;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-discord-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: #5865F2;
}

.mobile-login-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-red) 0%, #A00000 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-login-btn:hover {
    background: linear-gradient(135deg, #A00000 0%, var(--primary-red) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .nav {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav,
    .header-actions .discord-btn,
    .header-actions .btn-login {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 18px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }
}
