/* ============================================
   THEME DEFINITIONS
   ============================================ */

/* GitHub Dark Theme (Default) */
[data-theme="github-dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --text-heading: #f0f6fc;
  --text-muted: #484f58;
  --link-color: #58a6ff;
  --link-hover: #79c0ff;
  --accent-color: #238636;
  --accent-text: #ffffff;
  --accent-glow: rgba(35, 134, 54, 0.3);
  --border-color: #30363d;
  --code-bg: #161b22;
  --code-text: #79c0ff;
  --pre-bg: #161b22;
  --pre-text: #c9d1d9;
  --blockquote-bg: #161b22;
  --nav-bg: rgba(13, 17, 23, 0.95);
  --card-bg: #161b22;
  --btn-bg: #21262d;
  --btn-hover-bg: #30363d;
  --dropdown-bg: #161b22;
  --input-bg: #0d1117;
  --table-header-bg: #161b22;
  --table-row-alt: rgba(110, 118, 129, 0.1);
  --diagram-bg: #0d1117;
}

/* Dracula Theme */
[data-theme="dracula"] {
  --bg-primary: #282a36;
  --bg-secondary: #1e1f29;
  --text-primary: #f8f8f2;
  --text-secondary: #6272a4;
  --text-heading: #ff79c6;
  --text-muted: #44475a;
  --link-color: #8be9fd;
  --link-hover: #50fa7b;
  --accent-color: #bd93f9;
  --accent-text: #282a36;
  --accent-glow: rgba(189, 147, 249, 0.3);
  --border-color: #44475a;
  --code-bg: #1e1f29;
  --code-text: #50fa7b;
  --pre-bg: #1e1f29;
  --pre-text: #f8f8f2;
  --blockquote-bg: #1e1f29;
  --nav-bg: rgba(40, 42, 54, 0.95);
  --card-bg: #1e1f29;
  --btn-bg: #44475a;
  --btn-hover-bg: #6272a4;
  --dropdown-bg: #1e1f29;
  --input-bg: #282a36;
  --table-header-bg: #1e1f29;
  --table-row-alt: rgba(68, 71, 90, 0.3);
  --diagram-bg: #1e1f29;
}

/* Nord Theme */
[data-theme="nord"] {
  --bg-primary: #2e3440;
  --bg-secondary: #3b4252;
  --text-primary: #eceff4;
  --text-secondary: #d8dee9;
  --text-heading: #88c0d0;
  --text-muted: #4c566a;
  --link-color: #81a1c1;
  --link-hover: #88c0d0;
  --accent-color: #5e81ac;
  --accent-text: #eceff4;
  --accent-glow: rgba(94, 129, 172, 0.3);
  --border-color: #4c566a;
  --code-bg: #3b4252;
  --code-text: #a3be8c;
  --pre-bg: #3b4252;
  --pre-text: #eceff4;
  --blockquote-bg: #3b4252;
  --nav-bg: rgba(46, 52, 64, 0.95);
  --card-bg: #3b4252;
  --btn-bg: #434c5e;
  --btn-hover-bg: #4c566a;
  --dropdown-bg: #3b4252;
  --input-bg: #2e3440;
  --table-header-bg: #3b4252;
  --table-row-alt: rgba(76, 86, 106, 0.2);
  --diagram-bg: #3b4252;
}

/* Monokai Theme */
[data-theme="monokai"] {
  --bg-primary: #272822;
  --bg-secondary: #1e1f1c;
  --text-primary: #f8f8f2;
  --text-secondary: #a6a69e;
  --text-heading: #f92672;
  --text-muted: #49483e;
  --link-color: #66d9ef;
  --link-hover: #a6e22e;
  --accent-color: #a6e22e;
  --accent-text: #272822;
  --accent-glow: rgba(166, 226, 46, 0.3);
  --border-color: #49483e;
  --code-bg: #1e1f1c;
  --code-text: #e6db74;
  --pre-bg: #1e1f1c;
  --pre-text: #f8f8f2;
  --blockquote-bg: #1e1f1c;
  --nav-bg: rgba(39, 40, 34, 0.95);
  --card-bg: #1e1f1c;
  --btn-bg: #3e3d32;
  --btn-hover-bg: #49483e;
  --dropdown-bg: #1e1f1c;
  --input-bg: #272822;
  --table-header-bg: #1e1f1c;
  --table-row-alt: rgba(73, 72, 62, 0.3);
  --diagram-bg: #1e1f1c;
}

/* Tokyo Night Theme */
[data-theme="tokyo-night"] {
  --bg-primary: #1a1b26;
  --bg-secondary: #16161e;
  --text-primary: #a9b1d6;
  --text-secondary: #565f89;
  --text-heading: #7aa2f7;
  --text-muted: #3b4261;
  --link-color: #7dcfff;
  --link-hover: #bb9af7;
  --accent-color: #9ece6a;
  --accent-text: #1a1b26;
  --accent-glow: rgba(158, 206, 106, 0.3);
  --border-color: #3b4261;
  --code-bg: #16161e;
  --code-text: #bb9af7;
  --pre-bg: #16161e;
  --pre-text: #a9b1d6;
  --blockquote-bg: #16161e;
  --nav-bg: rgba(26, 27, 38, 0.95);
  --card-bg: #16161e;
  --btn-bg: #24283b;
  --btn-hover-bg: #3b4261;
  --dropdown-bg: #16161e;
  --input-bg: #1a1b26;
  --table-header-bg: #16161e;
  --table-row-alt: rgba(59, 66, 97, 0.2);
  --diagram-bg: #16161e;
}

/* One Dark Theme */
[data-theme="one-dark"] {
  --bg-primary: #282c34;
  --bg-secondary: #21252b;
  --text-primary: #abb2bf;
  --text-secondary: #5c6370;
  --text-heading: #61afef;
  --text-muted: #3e4451;
  --link-color: #61afef;
  --link-hover: #c678dd;
  --accent-color: #98c379;
  --accent-text: #282c34;
  --accent-glow: rgba(152, 195, 121, 0.3);
  --border-color: #3e4451;
  --code-bg: #21252b;
  --code-text: #e5c07b;
  --pre-bg: #21252b;
  --pre-text: #abb2bf;
  --blockquote-bg: #21252b;
  --nav-bg: rgba(40, 44, 52, 0.95);
  --card-bg: #21252b;
  --btn-bg: #3e4451;
  --btn-hover-bg: #4b5263;
  --dropdown-bg: #21252b;
  --input-bg: #282c34;
  --table-header-bg: #21252b;
  --table-row-alt: rgba(62, 68, 81, 0.3);
  --diagram-bg: #21252b;
}

/* ============================================
   LIGHT THEMES
   ============================================ */

/* GitHub Light Theme */
[data-theme="github-light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --text-primary: #24292f;
  --text-secondary: #57606a;
  --text-heading: #24292f;
  --text-muted: #8c959f;
  --link-color: #0969da;
  --link-hover: #1f7fd6;
  --accent-color: #1f883d;
  --accent-text: #ffffff;
  --accent-glow: rgba(31, 136, 61, 0.2);
  --border-color: #d0d7de;
  --code-bg: #f6f8fa;
  --code-text: #0550ae;
  --pre-bg: #f6f8fa;
  --pre-text: #24292f;
  --blockquote-bg: #f6f8fa;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --btn-bg: #f6f8fa;
  --btn-hover-bg: #eaeef2;
  --dropdown-bg: #ffffff;
  --input-bg: #ffffff;
  --table-header-bg: #f6f8fa;
  --table-row-alt: rgba(175, 184, 193, 0.1);
  --diagram-bg: #f6f8fa;
}

/* Solarized Light Theme */
[data-theme="solarized-light"] {
  --bg-primary: #fdf6e3;
  --bg-secondary: #eee8d5;
  --text-primary: #657b83;
  --text-secondary: #93a1a1;
  --text-heading: #073642;
  --text-muted: #93a1a1;
  --link-color: #268bd2;
  --link-hover: #2aa198;
  --accent-color: #859900;
  --accent-text: #fdf6e3;
  --accent-glow: rgba(133, 153, 0, 0.2);
  --border-color: #eee8d5;
  --code-bg: #eee8d5;
  --code-text: #cb4b16;
  --pre-bg: #eee8d5;
  --pre-text: #657b83;
  --blockquote-bg: #eee8d5;
  --nav-bg: rgba(253, 246, 227, 0.95);
  --card-bg: #fdf6e3;
  --btn-bg: #eee8d5;
  --btn-hover-bg: #ddd6c1;
  --dropdown-bg: #fdf6e3;
  --input-bg: #fdf6e3;
  --table-header-bg: #eee8d5;
  --table-row-alt: rgba(147, 161, 161, 0.1);
  --diagram-bg: #eee8d5;
}

/* Paper Theme */
[data-theme="paper"] {
  --bg-primary: #f9f9f9;
  --bg-secondary: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-heading: #1a1a1a;
  --text-muted: #999999;
  --link-color: #4a90d9;
  --link-hover: #2b6cb0;
  --accent-color: #4a90d9;
  --accent-text: #ffffff;
  --accent-glow: rgba(74, 144, 217, 0.2);
  --border-color: #e5e5e5;
  --code-bg: #f5f5f5;
  --code-text: #c7254e;
  --pre-bg: #f5f5f5;
  --pre-text: #333333;
  --blockquote-bg: #f5f5f5;
  --nav-bg: rgba(249, 249, 249, 0.95);
  --card-bg: #ffffff;
  --btn-bg: #f0f0f0;
  --btn-hover-bg: #e5e5e5;
  --dropdown-bg: #ffffff;
  --input-bg: #ffffff;
  --table-header-bg: #f5f5f5;
  --table-row-alt: rgba(0, 0, 0, 0.03);
  --diagram-bg: #f5f5f5;
}

/* Sepia Theme */
[data-theme="sepia"] {
  --bg-primary: #f4ecd8;
  --bg-secondary: #ebe3cf;
  --text-primary: #5b4636;
  --text-secondary: #7a6652;
  --text-heading: #3c2f22;
  --text-muted: #9a8b7c;
  --link-color: #8b5e3c;
  --link-hover: #6b4423;
  --accent-color: #a67c52;
  --accent-text: #ffffff;
  --accent-glow: rgba(166, 124, 82, 0.2);
  --border-color: #d9ceb8;
  --code-bg: #ebe3cf;
  --code-text: #7a4426;
  --pre-bg: #ebe3cf;
  --pre-text: #5b4636;
  --blockquote-bg: #ebe3cf;
  --nav-bg: rgba(244, 236, 216, 0.95);
  --card-bg: #ebe3cf;
  --btn-bg: #e2d8c4;
  --btn-hover-bg: #d9ceb8;
  --dropdown-bg: #f4ecd8;
  --input-bg: #f4ecd8;
  --table-header-bg: #ebe3cf;
  --table-row-alt: rgba(91, 70, 54, 0.05);
  --diagram-bg: #ebe3cf;
}
