/* Navigation System - Main Menu & Dropdowns */

/* Navigation Container */
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 22px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--apple-white, #ffffff);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo .logo-icon {
    font-size: 28px;
    display: inline-block;
    animation: logoGlow 2s ease infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
        transform: rotate(0deg) scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
        transform: rotate(5deg) scale(1.1);
    }
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-dropdown {
    position: relative;
}

/* Navigation Links */
.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

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

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg,
        rgba(138, 43, 226, 0.4),
        rgba(0, 191, 255, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.nav-link.has-dropdown::after {
    content: '⚡';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-link.has-dropdown::after {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.9);
    margin-top: 10px;
    background: linear-gradient(135deg,
        rgba(20, 0, 40, 0.98) 0%,
        rgba(0, 10, 30, 0.98) 100%);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 12px 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Dropdown Items */
.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    margin: 4px 0;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg,
        rgba(138, 43, 226, 0.3),
        rgba(0, 191, 255, 0.2));
    color: #ffffff;
    padding-left: 35px;
    transform: translateX(5px);
}

.dropdown-item:hover::before {
    left: 15px;
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(138, 43, 226, 0.5),
        transparent);
    margin: 8px 0;
}

/* Navigation CTA Button */
.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent);
    transition: left 0.5s ease;
}

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 7px 20px rgba(102, 126, 234, 0.5),
        0 3px 10px rgba(118, 75, 162, 0.5);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Icon Buttons */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.nav-icon-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.nav-icon-btn:hover {
    color: #ffffff;
    transform: rotate(10deg) scale(1.1);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
}

.nav-icon-btn:hover::after {
    width: 100%;
    height: 100%;
}

/* Notification Badge */
.nav-icon-btn[title="Notifications"]::before {
    content: '3';
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ff0844, #ff5e62);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    animation: pulse 2s ease infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .nav-logo .logo-icon {
        font-size: 24px;
    }
}