/* Theme Variables - Modern Rescale-Inspired */
:root {
  /* Light Theme Colors */
  --bg-primary: #fafbfc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-hover: rgba(255, 255, 255, 0.85);
  --text-primary: #0d1117;
  --text-secondary: #656d76;
  --text-muted: #8b949e;
  --border-color: rgba(255, 255, 255, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --accent-primary: #2563eb;
  --accent-secondary: #7c3aed;
  --accent-success: #059669;
  --accent-warning: #d97706;
  --accent-error: #dc2626;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* Liquid Shape Colors */
  --liquid-1: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  --liquid-2: linear-gradient(45deg, #a8edea, #fed6e3);
  --liquid-3: linear-gradient(45deg, #ffecd2, #fcb69f);
  
  /* Transition */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Colors */
[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-glass: rgba(22, 27, 34, 0.8);
  --bg-glass-hover: rgba(22, 27, 34, 0.9);
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #656d76;
  --border-color: rgba(240, 246, 252, 0.12);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-error: #ef4444;
  
  /* Dark Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* Dark Liquid Shape Colors */
  --liquid-1: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  --liquid-2: linear-gradient(45deg, #667eea, #764ba2);
  --liquid-3: linear-gradient(45deg, #f093fb, #f5576c);
}

/* Theme Toggle Button Styles */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.theme-toggle:hover {
  background: var(--bg-glass-hover);
  transform: scale(1.1);
}

.theme-toggle i {
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.theme-toggle .dark-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .light-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .dark-icon {
  display: block;
}

/* Language Toggle Styles */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 80px;
  z-index: 1000;
  display: flex;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow-color);
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 8px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: white;
}

/* Responsive Design for Theme Controls */
@media (max-width: 768px) {
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }
  
  .language-toggle {
    top: 15px;
    right: 70px;
  }
  
  .lang-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}