/* header.css - Premier Win Competitions Header Styles */

/* ============================================
   HEADER FOUNDATION
   ============================================ */
.nav-sticky {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Scroll effect */
.nav-sticky.scrolled {
    padding: 0.75rem 0;
    background: rgba(0, 0, 0, 0.99);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.9);
}

/* ============================================
   LOGO & BRANDING
   ============================================ */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-glow {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

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

.logo-glow:hover {
    transform: rotate(12deg) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
}

/* Logo image */
.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* Brand text */
.brand-text {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
    animation: goldFlow 3s linear infinite;
}

@keyframes goldFlow {
    to { background-position: 200% center; }
}

/* ============================================
   NAVIGATION LINKS
   ============================================ */
.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #FFD700;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: #FFD700;
}

.nav-link.active::before {
    width: 100%;
    background: #FFD700;
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* ============================================
   WALLET BUTTON
   ============================================ */
.wallet-button-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
    color: #FFD700;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wallet-button-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.wallet-button-header:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 165, 0, 0.2));
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.wallet-button-header:hover::before {
    width: 100%;
    height: 100%;
}

#walletBalance {
    font-weight: 700;
    min-width: 60px;
    display: inline-block;
}

/* ============================================
   USER DROPDOWN
   ============================================ */
.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 1.125rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

#userDropdown {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    margin-top: 0.5rem;
    overflow: hidden;
}

#userDropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

#userDropdown a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    padding-left: 1.5rem;
}

#userDropdown hr {
    border-color: rgba(255, 215, 0, 0.2);
    margin: 0;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.btn-primary-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary-gold::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.btn-primary-gold:hover::before {
    width: 100%;
    height: 100%;
}

.btn-secondary-gold {
    background: transparent;
    color: #FFD700;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.btn-secondary-gold:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

/* ============================================
   MOBILE MENU
   ============================================ */
@media (max-width: 1023px) {
    .nav-sticky {
        padding: 0.75rem 0;
    }
    
    .brand-text {
        display: none;
    }
    
    .logo-glow {
        width: 40px;
        height: 40px;
    }
}

/* Mobile wallet button */
.mobile-wallet-button {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    padding: 0.5rem 0.875rem;
    min-width: 90px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #FFD700;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-wallet-button:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.2));
}

/* Mobile menu dropdown */
#mobileMenu {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.98), rgba(10, 10, 10, 0.98));
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover, 
.mobile-nav-link:active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.mobile-nav-link i {
    color: #FFD700;
    width: 20px;
    text-align: center;
}

/* Hamburger menu */
.hamburger-btn {
    color: #FFD700;
    font-size: 1.5rem;
    padding: 0.5rem;
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes navGlow {
    0%, 100% { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); }
    50% { box-shadow: 0 4px 40px rgba(255, 215, 0, 0.1); }
}

/* Add subtle glow animation on hover */
.nav-sticky:hover {
    animation: navGlow 2s ease-in-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .mobile-wallet-button {
        min-width: 80px;
        padding: 0.375rem 0.625rem;
        font-size: 0.75rem;
    }
    
    #walletBalanceMobile {
        font-size: 0.75rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}