/* ============================================================
   user-panel.css — VEVED 用戶面板 (V11 Large Modal + Sidebar)
   ============================================================ */

/* 覆蓋 auth-box 樣式，變成超大型彈窗 */
.user-panel-modal {
  display: flex !important;
  flex-direction: row;
  padding: 0 !important;
  width: 80% !important;
  max-width: 900px !important;
  height: 80vh !important;
  max-height: 700px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.75) !important;
}

/* 左側邊欄 (Sidebar) */
.up-sidebar {
  width: 260px;
  background: rgba(30, 30, 30, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* 左側邊欄頂部：個人名片區塊 (無痕色塊區分法) */
.up-profile-card {
  padding: 30px 20px 20px 20px;
  background: rgba(90, 110, 255, 0.08); /* 微微的藍紫透色 */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.up-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #7c6ff7, #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.up-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-avatar-fallback {
  font-size: 32px;
  color: #fff;
}

.up-nickname {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}

.up-email {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 側欄選單區塊 */
.up-nav {
  padding: 20px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(20, 20, 20, 0.4); /* 下方選單區純粹深灰透色 */
}

.up-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.up-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.up-nav-item.active {
  background: rgba(107, 140, 255, 0.2);
  color: #fff;
  font-weight: bold;
}

.up-nav-item.bottom {
  margin-top: auto;
}

/* 右側內容區 */
.up-content {
  flex: 1;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

.up-content-header {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.up-tab-pane {
  display: none;
}
.up-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* 關閉按鈕 (右上角) */
.up-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
}
.up-close-btn:hover {
  opacity: 1;
}

/* 欄位群組 */
.up-field-group {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.up-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.up-field:last-child {
  border-bottom: none;
}

.up-field-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.up-field-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
}

.up-field-action {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.up-field-action:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 警告文字 */
.up-warning-text {
  font-size: 0.8rem;
  color: #ff6b6b;
  margin-top: 5px;
}

/* 特殊按鈕 */
.up-btn-danger {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}
.up-btn-danger:hover {
  background: rgba(255, 107, 107, 0.3);
}

.up-btn-primary {
  background: #6b8cff;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}
.up-btn-primary:hover {
  opacity: 0.8;
}

/* Select */
.up-select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  outline: none;
  font-size: 0.9rem;
}

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

/* Edit Modal */
.up-edit-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.up-edit-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.up-edit-box {
  background: rgba(30, 30, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform 0.2s;
}
.up-edit-modal.show .up-edit-box {
  transform: translateY(0);
}
.up-edit-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 20px;
}
.up-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
