/* 亮色调主题 - GameCompanion */

/* 亮色调CSS变量 */
:root.light-theme {
  /* 主色调 - 调整为更适合亮色背景的颜色 */
  --primary-500: #0066cc;
  --primary-400: #3399ff;
  --primary-300: #66b3ff;
  --primary-gradient: linear-gradient(135deg, #0066cc 0%, #3399ff 100%);
  
  /* 强调色 */
  --accent-500: #ff6b35;
  --accent-400: #ff8c42;
  --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
  
  /* 背景色 - 亮色调 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  
  /* 文字颜色 - 深色文字适合亮背景 */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-light: #ffffff;
  --text-muted: #94a3b8;
  
  /* 边框颜色 */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;
  
  /* 阴影 - 适合亮色背景 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 基础样式重写 - 强制覆盖深色主题 */
.light-theme,
.light-theme body {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* 确保所有容器和内容区域都有正确的背景和文字颜色 */
.light-theme #content,
.light-theme main,
.light-theme .main-content,
.light-theme section {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
}

/* 强制覆盖所有可能的深色背景 */
.light-theme .modern-hero,
.light-theme .hero,
.light-theme .rank-section,
.light-theme .boss-section,
.light-theme .team-section,
.light-theme .events-section,
.light-theme .feedback-section,
.light-theme .join-section,
.light-theme .join-hero,
.light-theme .search-results,
.light-theme .platform-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  color: var(--text-primary) !important;
}

/* 文字元素强制设置颜色 */
.light-theme h1, 
.light-theme h2, 
.light-theme h3,
.light-theme h4, 
.light-theme h5, 
.light-theme h6 {
  color: var(--text-primary) !important;
}

.light-theme p,
.light-theme span,
.light-theme div,
.light-theme li {
  color: var(--text-secondary) !important;
}

/* 特殊文字元素 */
.light-theme .section-subtitle,
.light-theme .hero-subtitle,
.light-theme .description {
  color: var(--text-secondary) !important;
}

/* 顶部导航栏 */
.light-theme .topbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.light-theme .logo {
  color: var(--primary-500) !important;
}

.light-theme .nav-link {
  color: var(--text-secondary) !important;
}

.light-theme .nav-link:hover,
.light-theme .nav-link.active {
  color: var(--primary-500) !important;
}

.light-theme .search-form input {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-light);
  color: var(--text-primary) !important;
}

.light-theme .search-form input::placeholder {
  color: var(--text-muted) !important;
}

.light-theme .search-form input:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.light-theme .search-form button {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
}

.light-theme .nav-btn.primary {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
}

.light-theme .nav-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 英雄区域背景修复 */
.light-theme .hero-background {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
}

.light-theme .hero-title {
  color: var(--text-primary) !important;
}

.light-theme .gradient-text {
  background: var(--primary-gradient) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(0, 102, 204, 0.3);
}

.light-theme .hero-badge {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-light);
  color: var(--primary-500) !important;
}

.light-theme .btn-primary {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.light-theme .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.light-theme .btn-secondary {
  background: var(--bg-card) !important;
  border: 2px solid var(--border-medium);
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
}

.light-theme .btn-secondary:hover {
  background: var(--bg-secondary) !important;
  border-color: var(--primary-400);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

/* 页面标题效果 */
.light-theme .page-title {
  background: var(--primary-gradient) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(0, 102, 204, 0.3);
  position: relative;
  display: inline-block;
}

.light-theme .page-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
  opacity: 0.6;
}

/* section标题 */
.light-theme .section-title {
  background: var(--primary-gradient) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.light-theme .section-title i {
  color: var(--primary-500) !important;
  margin-right: 10px;
}

/* 卡片组件修复 */
.light-theme .floating-card,
.light-theme .game-item,
.light-theme .player-card,
.light-theme .boss-item,
.light-theme .event-card,
.light-theme .team-card,
.light-theme .advantage-card,
.light-theme .access-item,
.light-theme .feedback-record,
.light-theme .stat-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light);
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.light-theme .floating-card h3,
.light-theme .game-item h3,
.light-theme .player-card h3,
.light-theme .boss-item h3,
.light-theme .event-card h3,
.light-theme .team-card h3,
.light-theme .advantage-card h3,
.light-theme .access-item h3 {
  color: var(--text-primary) !important;
}

.light-theme .floating-card p,
.light-theme .game-item p,
.light-theme .player-card p,
.light-theme .boss-item p,
.light-theme .event-card p,
.light-theme .team-card p,
.light-theme .advantage-card p,
.light-theme .access-item p {
  color: var(--text-secondary) !important;
}

/* 统计数据修复 */
.light-theme .stat-number {
  background: var(--primary-gradient) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 700;
  font-size: 1.8rem;
}

.light-theme .stat-label {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

/* 游戏图标修复 */
.light-theme .game-icon {
  background: var(--primary-gradient) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

/* 模态框修复 */
.light-theme .modal {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(5px);
}

.light-theme .modal-content {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xl);
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.light-theme .modal-content h3,
.light-theme .modal-content h2,
.light-theme .modal-content h1 {
  color: var(--text-primary) !important;
}

.light-theme .modal-content p {
  color: var(--text-secondary) !important;
}

.light-theme .modal-close {
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
}

.light-theme .modal-close:hover {
  color: var(--text-primary) !important;
  background: var(--bg-secondary);
}

/* 表单元素修复 */
.light-theme .form-group input,
.light-theme select,
.light-theme textarea {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-light);
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.light-theme .form-group input::placeholder,
.light-theme textarea::placeholder {
  color: var(--text-muted) !important;
}

.light-theme .form-group input:focus,
.light-theme select:focus,
.light-theme textarea:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  background: var(--bg-card) !important;
}

.light-theme .form-group label {
  color: var(--text-primary) !important;
}

/* 标签页修复 */
.light-theme .tab-list button,
.light-theme .rank-tab,
.light-theme .feedback-tab,
.light-theme .boss-tab,
.light-theme .filter-option {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-light);
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.light-theme .tab-list button.active,
.light-theme .rank-tab.active,
.light-theme .feedback-tab.active,
.light-theme .boss-tab.active,
.light-theme .filter-option.active {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-400);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

/* VIP徽章修复 */
.light-theme .vip-badge,
.light-theme .level-badge {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

.light-theme .vip-badge.gold,
.light-theme .vip-badge.diamond {
  background: linear-gradient(135deg, #f59e0b, #eab308) !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* 状态指示器修复 */
.light-theme .status.online {
  color: #10b981 !important;
  font-weight: 600;
}

.light-theme .status.offline {
  color: var(--text-secondary) !important;
}

/* 页脚修复 */
.light-theme footer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(0, 102, 204, 0.02) 100%) !important;
  border-top: 1px solid var(--border-light);
  position: relative;
}

.light-theme .footer-logo {
  color: var(--primary-500) !important;
  font-weight: 700;
}

.light-theme .footer-description,
.light-theme footer p {
  color: var(--text-secondary) !important;
  line-height: 1.6;
}

/* 轮播图修复 */
.light-theme .carousel {
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.light-theme .carousel-btn {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--primary-500) !important;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.light-theme .carousel-btn:hover {
  background: var(--bg-card) !important;
  color: var(--primary-400) !important;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

/* 搜索建议修复 */
.light-theme .search-suggestions {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
}

.light-theme .search-suggestion-item {
  color: var(--text-primary) !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 4px;
}

.light-theme .search-suggestion-item:hover {
  background: var(--bg-secondary) !important;
  color: var(--primary-500) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .light-theme .topbar {
    background: rgba(255, 255, 255, 0.98) !important;
  }
  
  .light-theme .page-title {
    font-size: 1.8rem;
  }
  
  .light-theme .section-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* 确保浮动卡片在亮色主题下可见 */
.light-theme .floating-cards-section {
  background: transparent !important;
}

.light-theme .floating-card i {
  color: var(--primary-500) !important;
}

.light-theme .floating-card span {
  color: var(--text-primary) !important;
}

/* 修复任何可能被遗漏的文字颜色 */
.light-theme * {
  color: inherit;
}

.light-theme .text-white {
  color: var(--text-primary) !important;
}

/* 特殊组件的额外修复 */
.light-theme .podium-item,
.light-theme .vip-item {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

.light-theme .podium-item h3,
.light-theme .vip-item h3 {
  color: var(--text-primary) !important;
}

.light-theme .podium-item p,
.light-theme .vip-item p {
  color: var(--text-secondary) !important;
}

/* 滚动条修复 */
.light-theme ::-webkit-scrollbar {
  width: 8px;
}

.light-theme ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}

.light-theme ::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.light-theme ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-500));
  transform: scale(1.1);
}

/* 最终覆盖确保所有内容可见 */
.light-theme {
  --text-color: var(--text-primary);
  --bg-color: var(--bg-primary);
} 