/* Light theme (default) */
:root {
  --bg-color: #f1f3f4;
  --content-bg: #fff;
  --text-color: #000;
  --text-secondary: #ccc;
  --border-color: #e0e0e0;
  --border-light: #b5b5b5;
  --shadow-color: rgba(0,0,0,.3);
  --blockquote-border: #eee;
  --blockquote-text: #666;
  --figure-bg: #f1f3f4;
  --figure-border: #e0e0e0;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-color: #1a1a1a;
  --content-bg: #2d2d2d;
  --text-color: #e0e0e0;
  --text-secondary: #888;
  --border-color: #404040;
  --border-light: #555;
  --shadow-color: rgba(0,0,0,.6);
  --blockquote-border: #555;
  --blockquote-text: #aaa;
  --figure-bg: #3a3a3a;
  --figure-border: #555;
}

/* Apply CSS variables */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

#content-outer {
  background: var(--content-bg);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 0 3px -1px var(--shadow-color);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-item {
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s ease;
}

.recent-post-item .time {
  color: var(--text-secondary);
}

#post .time {
  color: var(--text-secondary);
}

#post .content blockquote {
  border-left: 3px solid var(--blockquote-border);
  color: var(--blockquote-text);
  transition: border-color 0.3s ease, color 0.3s ease;
}

#post .content figure {
  background-color: var(--figure-bg);
  border: 1px solid var(--figure-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Theme toggle button styles */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--content-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow-color);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.theme-toggle .icon {
  transition: transform 0.3s ease;
}

/* Responsive design */
@media screen and (max-width: 480px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
