/* Navigation Bar Styles */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 0.9rem 0;
}

.navbar.scrolled {
    background: rgba(10, 11, 30, 0.95);
    box-shadow: var(--shadow-glass);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Logo & Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1001;
}

.logo {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px var(--accent-purple));
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.logo.sunglasses::after {
    content: '🕶️';
    position: absolute;
    font-size: 20px;
    margin-left: -35px;
    margin-top: -5px;
    animation: bounce 0.5s ease;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* News Ticker */
.news-ticker {
    justify-self: center;
    width: clamp(250px, 30vw, 400px);
    height: 30px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-self: end;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 20px;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--glass-border);
}

.ticker-content {
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes tickerScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    justify-self: end;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--accent-pink);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--accent-pink);
}

/* Mobile Menu Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .news-ticker {
        width: clamp(200px, 25vw, 300px);
        font-size: 0.75rem;
    }
    
    .nav-container {
        gap: 1rem;
    }
}

@media (max-width: 968px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        gap: 0;
    }
    
    .news-ticker {
        display: none;
    }
    
    /* Show ticker at bottom on tablet */
    .mobile-ticker-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 35px;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        overflow: hidden;
        z-index: 999;
        padding: 0 1rem;
    }
    
    .mobile-ticker-bottom .ticker-content {
        font-size: 0.75rem;
        animation: tickerScroll 25s linear infinite;
        color: var(--text-secondary);
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
        animation: slideInLeft 0.3s ease;
    }
    
    .nav-link {
        font-size: 1.5rem;
        padding: 1rem 2rem;
    }
    
    .logo {
        width: 35px;
        height: 35px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        width: 30px;
        height: 30px;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
}

/* News Ticker Mobile Alternative */
@media (max-width: 768px) {
    .mobile-ticker {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--glass-border);
        display: flex;
        align-items: center;
        overflow: hidden;
        z-index: 999;
    }
    
    .mobile-ticker .ticker-content {
        font-size: 0.7rem;
        animation: tickerScroll 25s linear infinite;
    }

}
