/* Dark Theme for Supplements.men */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #333333;
  --text-secondary: #666666;
}

[data-theme='dark'] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #252525;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
}

[data-theme='dark'] body,
[data-theme='dark'] .site-content {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

[data-theme='dark'] .site-header,
[data-theme='dark'] header {
  background-color: #0d0d0d;
}

[data-theme='dark'] .site-footer,
[data-theme='dark'] footer {
  background-color: #0d0d0d;
}

[data-theme='dark'] article,
[data-theme='dark'] .entry-content {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

[data-theme='dark'] h1, [data-theme='dark'] h2, [data-theme='dark'] h3,
[data-theme='dark'] h4, [data-theme='dark'] h5, [data-theme='dark'] h6 {
  color: var(--text-primary);
}

[data-theme='dark'] a {
  color: #6bc76b;
}

[data-theme='dark'] input, [data-theme='dark'] textarea {
  background-color: #333;
  border-color: #444;
  color: #e8e8e8;
}

/* Theme toggle button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle svg { width: 24px; height: 24px; fill: #333; }

[data-theme='dark'] .theme-toggle {
  background-color: #333;
  border-color: #555;
}
[data-theme='dark'] .theme-toggle svg { fill: #fff; }

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
[data-theme='dark'] .theme-toggle .sun-icon { display: block; }
[data-theme='dark'] .theme-toggle .moon-icon { display: none; }

body, .site-content, header, footer, article {
  transition: background-color 0.3s ease, color 0.3s ease;
}
