/* ═══════════════════════════════════════════════════════════
   THEME SYSTEM - Система тем для всех страниц
   ═══════════════════════════════════════════════════════════ */

/* CSS Variables for themes */
:root {
  --bg-primary: #080808;
  --bg-secondary: #0e0e0e;
  --bg-tertiary: #0a0a0a;
  --bg-card: #0e0e0e;
  --bg-card-hover: #131313;
  --border-color: #1c1c1c;
  --border-hover: #2a2a2a;
  --text-primary: #fff;
  --text-secondary: #999;
  --text-tertiary: #666;
  --accent: #fff;
  --shadow: rgba(0,0,0,0.4);
}

body.light-theme {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8f8;
  --border-color: #e0e0e0;
  --border-hover: #c0c0c0;
  --text-primary: #0a0a0a;
  --text-secondary: #555;
  --text-tertiary: #888;
  --accent: #0a0a0a;
  --shadow: rgba(0,0,0,0.1);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: rotate(20deg);
}

.theme-toggle svg {
  position: absolute;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-theme .theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}
