/* ============================================
   MODERN GAMING HEADER 2024
   Cyberpunk / Gaming Aesthetic
   ============================================ */

:root {
    --gh-bg-primary: #0a0a0f;
    --gh-bg-secondary: #12121a;
    --gh-bg-card: #1a1a24;
    --gh-border: #2d2d3d;
    --gh-border-accent: #3d3d52;
    --gh-text-primary: #ffffff;
    --gh-text-secondary: #a0a0b0;
    --gh-text-muted: #6b6b7b;
    --gh-accent: #f59e0b;
    --gh-accent-glow: rgba(245, 158, 11, 0.5);
    --gh-purple: #8b5cf6;
    --gh-cyan: #06b6d4;
    --gh-red: #ef4444;
    --gh-green: #10b981;
    --gh-header-height: 70px;
}

/* Header Container */
.gaming-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(8, 8, 12, 0.65);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.gaming-header::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(245, 158, 11, 0.7) 30%, 
        rgba(139, 92, 246, 0.9) 50%, 
        rgba(245, 158, 11, 0.7) 70%, 
        transparent 100%);
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Header Container */
.gaming-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--gh-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* ============================================
   LOGO SECTION
   ============================================ */
.gaming-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.gaming-logo:hover {
    background: rgba(245, 158, 11, 0.1);
}

.gaming-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gh-accent) 0%, #fbbf24 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.gaming-logo-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: logo-shine 3s infinite;
}

@keyframes logo-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.gaming-logo-text {
    display: flex;
    flex-direction: column;
}

.gaming-logo-title {
    font-family: 'Orbitron', 'Russo One', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gh-text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--gh-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gaming-logo-subtitle {
    font-size: 0.65rem;
    color: var(--gh-text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */
.gaming-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.gaming-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--gh-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
}

.gaming-nav-link:hover,
.gaming-nav-link.active {
    color: #fff;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.02));
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.05);
}

.gaming-nav-link.active::before {
    display: none;
}

.gaming-nav-link i {
    font-size: 0.9rem;
}

/* Cart Badge */
.gaming-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--gh-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--gh-bg-primary);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ============================================
   USER ACTIONS
   ============================================ */
.gaming-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Language Selector */
.gaming-lang {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.gaming-lang a {
    padding: 0.4rem 0.6rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
}

.gaming-lang a:hover,
.gaming-lang a.active {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gh-accent);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

/* Balance Display */
.gaming-balance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    color: var(--gh-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.gaming-balance i {
    font-size: 0.85rem;
}

/* Buttons */
.gaming-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.gaming-btn-primary {
    background: linear-gradient(135deg, var(--gh-accent) 0%, #fbbf24 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.gaming-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.gaming-btn-outline {
    background: transparent;
    border: 2px solid var(--gh-border-accent);
    color: var(--gh-text-secondary);
}

.gaming-btn-outline:hover {
    border-color: var(--gh-accent);
    color: var(--gh-accent);
    background: rgba(245, 158, 11, 0.1);
}

/* Custom Glow Buttons (Pro-Max) */
.gaming-btn-primary-glow {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-weight: 700;
    border: 1px solid rgba(245, 158, 11, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

.gaming-btn-primary-glow:hover {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    border-color: #fbbf24;
}

.gaming-btn-outline-glow {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
}

.gaming-btn-outline-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.hidden-mobile-text span {
    display: inline;
}
@media (max-width: 768px) {
    .hidden-mobile-text span {
        display: none !important;
    }
}

/* User Avatar */
.gaming-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gh-purple) 0%, var(--gh-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    border: 2px solid var(--gh-border);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.gaming-avatar:hover {
    border-color: var(--gh-accent);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.gaming-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--gh-accent);
    animation: avatar-rotate 2s linear infinite;
}

@keyframes avatar-rotate {
    to { transform: rotate(360deg); }
}

/* Notification Bell */
.gaming-notify {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gh-text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
}

.gaming-notify:hover {
    color: var(--gh-accent);
    background: rgba(245, 158, 11, 0.1);
}

.gaming-notify-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: var(--gh-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gh-bg-primary);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.gaming-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.gaming-mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--gh-text-secondary);
    border-radius: 2px;
    transition: all 0.3s;
}

.gaming-mobile-toggle:hover span {
    background: var(--gh-accent);
}

/* Mobile Menu Panel */
.gaming-mobile-menu {
    display: none;
    position: fixed;
    top: var(--gh-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 2rem;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.gaming-mobile-menu.active {
    display: flex;
}

.gaming-mobile-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--gh-text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.gaming-mobile-menu a:hover,
.gaming-mobile-menu a.active {
    color: var(--gh-accent);
    background: rgba(245, 158, 11, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .gaming-nav {
        display: none;
    }
    
    .gaming-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .gaming-header-inner {
        padding: 0 15px;
    }
    
    .gaming-logo-text {
        display: none;
    }
    
    .gaming-lang {
        display: none;
    }
    
    .gaming-balance {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .gaming-btn span {
        display: none;
    }
    
    .gaming-btn {
        padding: 0.6rem;
    }
}

/* User Dropdown */
.gaming-dropdown {
    position: relative;
}

.gaming-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: var(--gh-bg-card);
    border: 1px solid var(--gh-border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
}

.gaming-dropdown:hover .gaming-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gaming-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gh-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
}

.gaming-dropdown-menu a:hover {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gh-accent);
}

.gaming-dropdown-menu i {
    width: 20px;
    text-align: center;
}

.gaming-dropdown-menu .logout {
    border-top: 1px solid var(--gh-border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    color: var(--gh-red);
}

.gaming-dropdown-menu .logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--gh-red);
}
