/* Solarized Dark Theme - Desktop Version */
/* Design Philosophy: Deep ocean tones, elegant contrast, comfortable desktop reading */

:root {
  /* Solarized Base Colors */
  --base03:  #002b36;
  --base02:  #073642;
  --base01:  #586e75;
  --base00:  #657b83;
  --base0:   #839496;
  --base1:   #93a1a1;
  --base2:   #eee8d5;
  --base3:   #fdf6e3;
  
  /* Solarized Accent Colors */
  --yellow:  #b58900;
  --orange:  #cb4b16;
  --red:     #dc322f;
  --magenta: #d33682;
  --violet:  #6c71c4;
  --blue:    #268bd2;
  --cyan:    #2aa198;
  --green:   #859900;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", "STSong", "Lora", "Georgia", serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #a8b5b7;
  background-color: var(--base03);
  padding: 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--base1);
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.4;
}

h1 {
  font-size: 2rem;
  border-bottom: 1px solid var(--base01);
  padding-bottom: 0.5em;
  margin-top: 0;
}

h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1.2em;
  text-align: justify;
}

a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--blue);
}

ul, ol {
  margin-bottom: 1.2em;
  padding-left: 2em;
}

li { margin-bottom: 0.4em; }

blockquote {
  border-left: 3px solid var(--yellow);
  margin: 1.5em 0;
  padding: 0.8em 1.5em;
  background-color: var(--base02);
  color: var(--base1);
  font-style: italic;
}

blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", "Consolas", monospace;
  font-size: 0.9em;
  background-color: var(--base02);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--base1);
}

pre {
  background-color: var(--base02);
  color: var(--base0);
  padding: 1.2em 1.5em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5em 0;
  line-height: 1.5;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.85em;
}

/* Syntax Highlighting */
.hljs-keyword { color: var(--green); }
.hljs-string { color: var(--cyan); }
.hljs-number { color: var(--magenta); }
.hljs-comment { color: var(--base01); font-style: italic; }
.hljs-function { color: var(--blue); }
.hljs-variable { color: var(--orange); }
.hljs-type { color: var(--yellow); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

th, td {
  border: 1px solid var(--base01);
  padding: 0.6em 1em;
  text-align: left;
}

th {
  background-color: var(--base02);
  color: var(--base1);
  font-weight: 600;
}

hr {
  border: none;
  border-top: 1px solid var(--base01);
  margin: 2em 0;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1em 0;
}

strong { font-weight: 600; color: var(--base1); }
em { font-style: italic; }

/* Conversation Mode */
.chat-user {
  color: #D4A574;
}

.chat-user p,
.chat-user li,
.chat-user blockquote {
  color: #D4A574;
}

.chat-label {
  font-weight: 600;
  margin: 1.8em 0 0.4em 0;
  font-size: 0.92em;
}

.chat-label-user {
  color: #D4A574;
}

.chat-label-assistant {
  color: var(--base1);
}

.chat-divider {
  border: none;
  border-top: 1px dashed var(--base01);
  margin: 1.8em 0;
}

::selection {
  background-color: var(--yellow);
  color: var(--base03);
}
