/**
 * WIA Books Auth - 프로필 드롭다운 스타일
 */

/* 프로필 드롭다운 컨테이너 */
.wia-user-profile-dropdown {
    position: relative;
    display: inline-block;
}

/* GP 테마 overflow 클리핑 해제 (실제 부모 요소 타겟팅) */
.menu-bar-items:has(.wia-user-profile-dropdown),
.inside-navigation:has(.wia-user-profile-dropdown),
.main-navigation:has(.wia-user-profile-dropdown) {
    overflow: visible !important;
}

/* 프로필 버튼 */
.wia-user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ffcc 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #0a0a0a;
    font-weight: 600;
}

.wia-user-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* 아바타 */
.wia-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* 닉네임 */
.wia-user-nickname {
    font-size: 13px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 드롭다운 화살표 */
.wia-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
    color: #000000;
}

.wia-user-profile-dropdown.open .wia-dropdown-arrow {
    transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.wia-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.wia-user-profile-dropdown.open .wia-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 드롭다운 내부 중복 프로필 버튼 숨김 */
.wia-user-dropdown-menu .wia-user-profile-btn {
    display: none !important;
}

/* 메뉴 아이템 */
.wia-user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #e2e8f0 !important;
    text-decoration: none !important;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wia-user-dropdown-menu a:last-child {
    border-bottom: none;
}

.wia-user-dropdown-menu a:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff !important;
}

.wia-user-dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.wia-user-dropdown-menu a:hover i {
    color: #00d4ff;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .wia-user-nickname {
        display: none;
    }
    .wia-dropdown-arrow {
        display: none;
    }
    .wia-user-profile-btn {
        padding: 6px 10px;
    }
    .wia-user-dropdown-menu {
        right: -20px;
    }
}
