/* ========================================
   织网 (WebWeave) - 通知系统样式
   ======================================== */

/* === 通知中心 === */
.notification-center {
  padding: 20px;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 46, 0.9));
  border: 2px solid var(--sacred-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--holy-glow-medium);
}

.notification-header {
  position: sticky;
  top: 0;
  background: linear-gradient(145deg, rgba(10, 10, 10, 0.95), rgba(26, 26, 46, 0.9));
  z-index: 10;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

/* === 通知列表 === */
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* === 通知项 === */
.notification-item {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(184, 134, 11, 0.1), rgba(184, 134, 11, 0.05));
  border: 2px solid rgba(184, 134, 11, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal);
  position: relative;
  overflow: hidden;
}

.notification-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sacred-gold);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.notification-item.unread {
  border-color: var(--divine-gold);
  background: linear-gradient(to bottom, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.notification-item.unread::before {
  opacity: 1;
  background: var(--divine-gold);
}

.notification-item:hover {
  transform: translateX(5px);
  box-shadow: var(--holy-glow-soft);
  border-color: var(--divine-gold);
}

.notification-item.read {
  opacity: 0.8;
}

/* === 通知图标 === */
.notification-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: linear-gradient(145deg, rgba(184, 134, 11, 0.3), rgba(184, 134, 11, 0.1));
  border: 2px solid var(--sacred-gold);
  flex-shrink: 0;
}

.notification-icon.icon-success {
  background: linear-gradient(145deg, rgba(46, 204, 113, 0.3), rgba(46, 204, 113, 0.1));
  border-color: var(--success-green);
}

.notification-icon.icon-error {
  background: linear-gradient(145deg, rgba(139, 0, 0, 0.3), rgba(139, 0, 0, 0.1));
  border-color: var(--error-red);
}

.notification-icon.icon-points {
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.3), rgba(255, 215, 0, 0.1));
  border-color: var(--divine-gold);
}

.notification-icon.icon-achievement {
  background: linear-gradient(145deg, rgba(255, 140, 0, 0.3), rgba(255, 140, 0, 0.1));
  border-color: var(--warning-orange);
}

/* === 未读标记 === */
.unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--divine-gold);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* === 通知徽章（头部） === */
.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--error-red);
  color: var(--holy-white);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
  border: 2px solid var(--holy-white);
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
}

.notification-badge.pulse {
  animation: badge-pulse 1.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.6);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.9);
  }
}

/* === 通知内容 === */
.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 8px;
}

.notification-title h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .notification-center {
    max-width: 100%;
    padding: 15px;
  }
  
  .notification-item {
    padding: 15px;
    flex-direction: column;
  }
  
  .notification-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .notification-actions {
    flex-direction: row !important;
    margin-left: 0 !important;
    margin-top: 10px;
  }
}
