/* WordSoul 全局样式 */

/* 导航按钮样式 */
.nav-btn {
  color: #8888a8;
  background: transparent;
}
.nav-btn:hover {
  color: #e8e8f0;
  background: #252540;
}
.nav-btn.active {
  color: #fff;
  background: #7c5cfc;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: #333355;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c5cfc;
}

/* 词语卡片 */
.word-card {
  background: #252540;
  border: 2px solid #333355;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}
.word-card:hover {
  border-color: #7c5cfc;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.2);
}
.word-card.selected {
  border-color: #00d4aa;
  background: rgba(0, 212, 170, 0.1);
}
.word-card.eliminated {
  opacity: 0.3;
  transform: scale(0.9);
}

/* 输入框样式 */
.soul-input {
  background: #1a1a2e;
  border: 1px solid #333355;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #e8e8f0;
  width: 100%;
  transition: border-color 0.2s;
}
.soul-input:focus {
  outline: none;
  border-color: #7c5cfc;
}
.soul-input::placeholder {
  color: #8888a8;
}

/* 按钮样式 */
.soul-btn {
  background: #7c5cfc;
  color: #fff;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.soul-btn:hover {
  background: #6b4ce0;
  transform: translateY(-1px);
}
.soul-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.soul-btn-secondary {
  background: #252540;
  border: 1px solid #333355;
  color: #e8e8f0;
}
.soul-btn-secondary:hover {
  background: #333355;
}

/* 标签样式 */
.word-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #252540;
  border: 1px solid #333355;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.word-tag:hover {
  border-color: #7c5cfc;
}
.word-tag .remove {
  cursor: pointer;
  opacity: 0.5;
}
.word-tag .remove:hover {
  opacity: 1;
  color: #ff6b9d;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}
.animate-pulse {
  animation: pulse 2s infinite;
}
.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

/* 对战区域 */
.battle-arena {
  background: linear-gradient(135deg, #1a1a2e 0%, #252540 100%);
  border: 2px solid #333355;
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.battle-arena::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.3) 0%, transparent 70%);
  border-radius: 50%;
}

/* 进度条 */
.progress-bar {
  height: 6px;
  background: #1a1a2e;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c5cfc, #00d4aa);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* 配置面板 */
.settings-panel {
  background: #1a1a2e;
  border: 1px solid #333355;
  border-radius: 16px;
  padding: 1.5rem;
}
.settings-section {
  margin-bottom: 1.5rem;
}
.settings-section:last-child {
  margin-bottom: 0;
}
.settings-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e8e8f0;
  margin-bottom: 0.5rem;
}
.settings-hint {
  font-size: 0.75rem;
  color: #8888a8;
  margin-top: 0.25rem;
}

/* 响应式 */
@media (max-width: 640px) {
  .battle-arena {
    padding: 1rem;
    border-radius: 16px;
  }
  .word-card {
    padding: 1.5rem;
  }
}
