/* Navigation Styles - Optimized with Magic UI MCP */

/* Main Navigation */
.main-nav {
    background: #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 110px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

/* Logo - Positioned left */
.logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    height: 102px;
    flex-shrink: 0;
    margin-right: 2rem;
}

.logo-s { color: #ff6b6b; }
.logo-i { color: #4ecdc4; }
.logo-t { color: #45b7d1; }
.logo-e1 { color: #96ceb4; }
.logo-m { color: #feca57; }
.logo-a { color: #ff9ff3; }
.logo-p { color: #54a0ff; }
.logo-y { color: #5f27cd; }
.logo-dot { color: #00d2d3; }
.logo-a2 { color: #ff9f43; }
.logo-i2 { color: #10ac84; }

/* Navigation Links - Centered, no borders */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.nav-links a:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.nav-links a.active {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.12);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

/* Unified button styles - no borders */
.nav-links .btn,
.nav-links .btn-primary,
.nav-links .btn-secondary {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.02em;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.nav-links .btn::before,
.nav-links .btn-primary::before,
.nav-links .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links .btn:hover::before,
.nav-links .btn-primary:hover::before,
.nav-links .btn-secondary:hover::before {
    left: 100%;
}

.nav-links .btn:hover,
.nav-links .btn-primary:hover,
.nav-links .btn-secondary:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.nav-links .btn.active,
.nav-links .btn-primary.active,
.nav-links .btn-secondary.active {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.12);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

/* Desktop Navigation - Centered */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* User Section */
.nav-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: 2rem;
}

/* Avatar Container - Enhanced with Magic UI */
.nav-avatar-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(66,133,244,0.2), rgba(52,168,83,0.2));
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    box-shadow: 0 4px 16px rgba(66,133,244,0.2), 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    min-width: 44px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nav-avatar-container:hover, .nav-avatar-container:focus {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(66,133,244,0.3), 0 4px 8px rgba(0,0,0,0.15);
    border-color: rgba(66,133,244,0.5);
    outline: none;
}

/* Avatar Image */
.nav-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

/* Avatar Fallback */
.nav-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 50%;
}

/* Dropdown Styles - No borders */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.dropdown-toggle:hover {
    background: rgba(78, 205, 196, 0.08);
    color: #4ecdc4;
    transform: translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 0.75rem 0;
    min-width: 200px;
    display: none;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    margin: 0 0.5rem;
    border: none;
}

.dropdown-menu a:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    transform: translateX(4px);
}

/* Mobile Navigation - Enhanced */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-nav.active {
    display: block;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-section-title {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    border: none;
    background: transparent;
}

.menu-item:hover {
    background: rgba(78, 205, 196, 0.1);
    color: #4ecdc4;
    transform: translateX(8px);
}

.menu-item.active {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-text {
    font-weight: 500;
}

.menu-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0.75rem 0;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    flex: 1;
}

.user-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #ccc;
    font-size: 0.9rem;
}

.logout-item {
    color: #ff6b6b !important;
    border: none;
}

.logout-item:hover {
    background: rgba(255, 107, 107, 0.1) !important;
    color: #ff6b6b !important;
    transform: translateX(8px);
}

/* Responsive Design */
@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        justify-content: flex-end;
    }
}

@media (min-width: 901px) {
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .desktop-nav {
        display: flex !important;
    }
}
