/* loginpopup.css - 사용자 정보 팝업 스타일 */

.user-popup {
  position: absolute;
  top: 60px; /* logo.webp 버튼 바로 아래 */
  right: 24px;
  width: 340px;
  background: linear-gradient(135deg, #181C24 0%, #232a36 100%);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(24,28,36,0.32);
  color: #fff;
  font-family: 'Inter', 'Pretendard', 'Noto Sans KR', sans-serif;
  z-index: 1002;
  padding: 32px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popup-fadein 0.18s cubic-bezier(.4,1.4,.6,1) 1;
}

@keyframes popup-fadein {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-popup .popup-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-popup .popup-profile-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #23232a;
  object-fit: cover;
  border: 2px solid #2d2d38;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-popup .popup-profile-img:hover {
  transform: scale(1.05);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.user-popup .popup-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-popup .popup-profile-name {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.user-popup .popup-profile-email {
  font-size: 0.98rem;
  color: #b0b0c3;
  word-break: break-all;
}

.user-popup .popup-divider {
  height: 1px;
  background: linear-gradient(90deg, #23232a 0%, #353545 100%);
  margin: 8px 0 0 0;
  border: none;
}

.user-popup .popup-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
  color: #b0b0c3;
  margin-top: 2px;
}

.user-popup .popup-detail-label {
  font-weight: 500;
  color: #b0b0c3;
}

.user-popup .popup-detail-value {
  color: #fff;
  font-weight: 400;
}

.user-popup .popup-signout {
  margin-top: 10px;
  padding: 3px 0;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid #2563eb;
  background: linear-gradient(90deg, #2563eb 0%, #1e293b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.09em;
  box-shadow: 0 1px 6px rgba(37,99,235,0.10);
  cursor: pointer;
  width: 100%;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.user-popup .popup-signout:hover {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border-color: #3b82f6;
  box-shadow: 0 2px 12px rgba(59,130,246,0.13);
}

/* ===================================================================
   프로필 이미지 확대 모달 스타일
   =================================================================== */

/* 프로필 이미지에 hover 효과 추가 */
.user-popup .popup-profile-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #23232a;
  object-fit: cover;
  border: 2px solid #2d2d38;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-popup .popup-profile-img:hover {
  transform: scale(1.05);
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* 프로필 이미지 확대 모달 */
.profile-image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: zoom-out;
}

.profile-image-modal.active {
  display: flex;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 모달 내부 컨테이너 */
.profile-modal-container {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: modal-zoom-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}

@keyframes modal-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 확대된 프로필 이미지 */
.profile-modal-image {
  max-width: min(600px, 85vw);
  max-height: min(600px, 70vh);
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  object-fit: contain;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* 닫기 버튼 - 완전한 원형 */
.profile-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 0;
  padding: 0;
  margin: 0;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  vertical-align: middle;
}

.profile-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: rotate(90deg) scale(1.08);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.profile-modal-close:active {
  transform: rotate(90deg) scale(0.95);
  background: rgba(0, 0, 0, 0.9);
}

/* 사용자 정보 캡션 */
.profile-modal-caption {
  text-align: center;
  color: #fff;
  font-family: 'Inter', 'Pretendard', sans-serif;
}

.profile-modal-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-modal-email {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
  .profile-modal-image {
    max-width: 90vw;
    max-height: 60vh;
    border-radius: 16px;
  }
  
  .profile-modal-close {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    font-size: 20px;
    border-width: 1.5px;
  }
  
  .profile-modal-name {
    font-size: 1.25rem;
  }
  
  .profile-modal-email {
    font-size: 0.9rem;
  }
}

/* 작은 모바일 */
@media (max-width: 480px) {
  .profile-modal-container {
    gap: 16px;
  }
  
  .profile-modal-image {
    max-width: 92vw;
    max-height: 55vh;
    border-radius: 12px;
  }
  
  .profile-modal-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    border-width: 1.5px;
  }
}
