/* Universal Glory Games Header Styles */

/* Sticky Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #2e1065 100%);
    border-bottom: 2px solid #84ff00;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(132, 255, 0, 0.2);
}

/* Left Side - Logo & Home */
.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #84ff00;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(132, 255, 0, 0.5);
}

.logo:hover {
    color: #bef264;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #d8b4fe;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 0.8rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    color: #84ff00;
    background: rgba(132, 255, 0, 0.1);
}

.nav-menu a.active {
    color: #84ff00;
    background: rgba(132, 255, 0, 0.15);
}

/* Right Side - Cart, User Profile & Notifications */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Cart Widget Styles */
.cart-widget {
    position: relative;
    display: inline-block;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #84ff00;
    font-size: 1.2rem;
}

.cart-icon:hover {
    background: rgba(132, 255, 0, 0.1);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: linear-gradient(45deg, #a855f7, #8b5cf6);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(168, 85, 247, 0.4);
    min-width: 20px;
    text-align: center;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(132, 255, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 10px;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(132, 255, 0, 0.2);
}

.cart-dropdown-header h3 {
    color: #84ff00;
    font-size: 1.1rem;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    color: #a855f7;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
}

.cart-items-preview {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item-preview {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.cart-item-preview:last-child {
    margin-bottom: 0;
}

.preview-image {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.preview-details {
    flex: 1;
}

.preview-name {
    color: #84ff00;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.preview-price {
    color: #a855f7;
    font-size: 0.8rem;
}

.preview-quantity {
    color: #fff;
    font-size: 0.8rem;
    background: rgba(132, 255, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
}

.cart-dropdown-footer {
    padding: 1rem;
    border-top: 1px solid rgba(132, 255, 0, 0.2);
}

.cart-total {
    color: #84ff00;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.cart-actions {
    display: flex;
    gap: 0.5rem;
}

.cart-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.cart-actions .btn-primary {
    background: linear-gradient(45deg, #84ff00, #a0ff20);
    color: #000;
}

.cart-actions .btn-primary:hover {
    background: linear-gradient(45deg, #a0ff20, #84ff00);
    transform: translateY(-2px);
}

.cart-actions .btn-secondary {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid #a855f7;
}

.cart-actions .btn-secondary:hover {
    background: #a855f7;
    color: #fff;
    transform: translateY(-2px);
}

.empty-cart-message {
    text-align: center;
    padding: 2rem 1rem;
    color: #a855f7;
}

.empty-cart-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.mini-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(168, 85, 247, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.mini-profile:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #84ff00, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
    font-size: 1.2rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-level {
    color: #84ff00;
    font-size: 0.8rem;
    font-weight: bold;
}

.profile-tokens {
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 600;
}

/* User Authentication Sections */
.user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guest-section {
    display: flex;
    align-items: center;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #84ff00 0%, #66cc00 100%);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #66cc00 0%, #84ff00 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(132, 255, 0, 0.3);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.logout-btn i {
    font-size: 1rem;
    opacity: 1;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
    color: #ff4444;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.notification-bell:hover {
    transform: scale(1.1);
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #84ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #84ff00;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(132, 255, 0, 0.1);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
}

.mobile-nav-menu a {
    color: #d8b4fe;
    text-decoration: none;
    font-weight: 500;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(132, 255, 0, 0.2);
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-menu a:hover {
    color: #84ff00;
    background: rgba(132, 255, 0, 0.1);
    border-color: #84ff00;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-left {
        gap: 1rem;
    }
    
    .mini-profile {
        padding: 0.3rem 0.8rem;
        gap: 0.8rem;
    }
    
    .profile-pic {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .profile-info {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .mini-profile {
        padding: 0.2rem 0.6rem;
        gap: 0.6rem;
    }

    .profile-pic {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .profile-info {
        font-size: 0.8rem;
    }

    .notification-bell {
        font-size: 1.2rem;
    }
}
