/* 공통 네비게이션바 CSS - index.html, profile.html, warpzone.html 전용 */

/* 네비게이션 바 기본 스타일 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 3px solid #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
    margin: 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(59, 130, 246, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

/* 로고 스타일 */
.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 2px 2px 0px #bfdbfe;
    transform: rotate(-2deg);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(0deg);
    text-shadow: 3px 3px 0px #bfdbfe, 0 0 10px rgba(96, 165, 250, 0.5);
}

.logo i {
    animation: bounce 2s infinite;
    color: #60a5fa;
    font-size: 2.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* 네비게이션 링크 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    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(59, 130, 246, 0.4), transparent);
    transition: left 0.5s;
}

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

.nav-links a:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* 사용자 정보 드롭다운 */
.user-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: #eff6ff;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #3b82f6;
}

.profile-initial {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 160px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
}

.user-dropdown a:hover {
    background: #f3f4f6;
    color: #1e40af;
}

/* 모바일 메뉴 토글 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #1e40af;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #eff6ff;
}

/* 모바일 메뉴 */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 3px solid #3b82f6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
    display: none;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.mobile-menu a:hover {
    background: #eff6ff;
    padding-left: 2.5rem;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* 모바일 인증 섹션 */
.mobile-auth-section {
    display: none;
    align-items: center;
    margin-right: 0.5rem;
    margin-left: auto;
}

.mobile-auth-section a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.mobile-auth-section a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.mobile-auth-section .mobile-user-container {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-auth-section .user-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mobile-auth-section .user-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 모바일 사용자 드롭다운 */
.mobile-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

.mobile-user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-user-dropdown a,
.mobile-user-dropdown button {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem;
    border: none;
    background: none;
    width: calc(100% - 0.5rem);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
}

.mobile-user-dropdown a:hover,
.mobile-user-dropdown button:hover {
    background: #f3f4f6;
    color: #1e40af;
}

.mobile-user-dropdown button {
    color: #ef4444;
}

.mobile-user-dropdown button:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
        max-height: 0;
    }
    
    .mobile-auth-section {
        display: flex;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
}

/* 아주 작은 모바일 화면 */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .mobile-auth-section a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
} 