/* ========================================
   织网 (WebWeave) - 成员前台样式
   ======================================== */

/* === 个人门户 === */
.member-portal {
  padding: 30px;
}

/* === 个人圣所头部 === */
.personal-sanctum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 46, 0.8));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  box-shadow: var(--holy-glow-soft);
}

.user-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-container {
  position: relative;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--divine-gold);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.avatar-halo {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 3px solid var(--divine-gold);
  opacity: 0.6;
  animation: rotate-slow 10s linear infinite;
  pointer-events: none;
}

.user-info h2 {
  margin: 0;
  font-size: 1.8rem;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--error-red);
  color: var(--holy-white);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid var(--holy-white);
}

/* === 三列布局 === */
.portal-three-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .portal-three-columns {
    grid-template-columns: 1fr;
  }
}

/* === 任务圣碑 === */
.mission-stela {
  text-align: center;
  padding: 40px 20px;
  cursor: pointer;
  transition: all var(--duration-normal);
}

.mission-stela:hover {
  transform: scale(1.05);
  box-shadow: var(--holy-glow-medium);
}

/* === 成就圣坛 === */
.achievement-altar {
  text-align: center;
  padding: 40px 20px;
  cursor: pointer;
  transition: all var(--duration-normal);
}

.achievement-altar:hover {
  transform: scale(1.05) rotateZ(5deg);
  box-shadow: var(--holy-glow-medium);
}

.achievement-preview {
  cursor: pointer;
  transition: transform var(--duration-normal);
}

.achievement-preview:hover {
  transform: scale(1.2);
}

/* === 贡献圣典 === */
.contribution-tome {
  text-align: center;
  padding: 40px 20px;
  cursor: pointer;
  transition: all var(--duration-normal);
}

.contribution-tome:hover {
  transform: scale(1.05);
  box-shadow: var(--holy-glow-medium);
}

/* === 任务列表 === */
.today-quests-section {
  margin-top: 40px;
}

.quest-scroll-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quest-scroll-card {
  background: linear-gradient(to bottom, #f5e3b8, #e6d3a7);
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  padding: 25px;
  cursor: pointer;
  transition: all var(--duration-normal);
  position: relative;
  overflow: hidden;
}

.quest-scroll-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.6s ease;
}

.quest-scroll-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--holy-glow-medium), var(--shadow-elevated);
}

.quest-scroll-card:hover::before {
  left: 100%;
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 15px;
}

.quest-icon {
  font-size: 1.5rem;
  margin-right: 10px;
}

.quest-status {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
}

.quest-status.in_progress {
  background: var(--level-in-progress);
  color: var(--holy-black);
}

.quest-status.pending {
  background: var(--level-unlocked);
  color: var(--holy-white);
}

.quest-status.completed {
  background: var(--success-green);
  color: var(--holy-white);
}

.quest-progress {
  margin: 15px 0;
}

.quest-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* === 勋章墙 === */
.medal-sanctuary {
  padding: 30px;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 46, 0.8));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--holy-glow-soft);
}

.medal-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
}

/* === 天使羽翼进度条 === */
.angel-wings-progress {
  margin-top: 30px;
  text-align: center;
  padding: 20px;
}

.wings-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: relative;
}

.wing {
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(184, 134, 11, 0.2));
  border: 2px solid var(--sacred-gold);
  border-radius: 50% 0 0 50%;
  position: relative;
  animation: wing-flap 3s ease-in-out infinite;
}

.wing-left {
  transform: scaleX(-1);
  border-radius: 0 50% 50% 0;
}

.wing-right {
  border-radius: 50% 0 0 50%;
}

.level-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--divine-gold), var(--sacred-gold));
  border: 4px solid var(--holy-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--holy-black);
  box-shadow: var(--holy-glow-medium);
  z-index: 1;
}

@keyframes wing-flap {
  0%, 100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(15deg);
  }
}

/* === 任务大厅 === */
.task-board {
  padding: 30px;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* === 成就墙 === */
.achievement-wall {
  padding: 30px;
}

.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.achievement-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  padding: 20px;
}

.achievement-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(26, 26, 46, 0.8));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal);
}

.achievement-item.earned {
  border-color: var(--divine-gold);
  box-shadow: var(--holy-glow-soft);
}

.achievement-item.locked {
  opacity: 0.6;
  filter: grayscale(0.5);
}

.achievement-item:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--holy-glow-medium);
}

.achievement-item.locked:hover {
  opacity: 0.8;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .personal-sanctum-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .portal-three-columns {
    grid-template-columns: 1fr;
  }
  
  .medal-wall {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
  
  .achievement-display {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .wall-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}
