/* Header styles for Premium LottoBoomaroo */

:root {
    --accent: #10B981;
    --light: #FFFFFF;
}

.main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    border-bottom-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-glow {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.logo-glow:hover::before {
    width: 120px;
    height: 120px;
}

.logo-glow:hover {
    transform: scale(1.05);
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-glow:hover .logo-img {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    transform: rotate(5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8B5CF6, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-glow:hover .logo-main {
    background: linear-gradient(135deg, #A78BFA, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-glow:hover .logo-sub {
    color: #8B5CF6;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #F59E0B;
    border-radius: 2px;
    animation: activeIndicator 0.3s ease-out;
}

/* Cart Link Styles */
.cart-link {
    position: relative;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--light);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
    animation: numberBounce 0.3s ease-out;
}

@keyframes activeIndicator {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 20px;
        opacity: 1;
    }
}

.nav-icon {
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-icon {
    transform: scale(1.2) rotate(5deg);
}

.nav-text {
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-text {
    transform: translateX(2px);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .main-nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .logo-main {
        font-size: 1.3rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.8rem;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.65rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-toggle span {
        width: 22px;
        height: 2.5px;
    }
}

/* Header Animation on Scroll */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-header.animate-in {
    animation: headerSlideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Effect */
.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Hover Effects for Logo */
.logo-glow:hover .logo-img {
    animation: logoPulse 2s infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
}

/* Navigation Link Hover Animation */
.nav-link:hover {
    animation: navLinkGlow 0.6s ease-out;
}

@keyframes navLinkGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}