/* Ethan OS — 皮肤 × 交互模式 · themes.css */

:root {
  --bg-deep: #0b0703;
  --bg-mid: #141006;
  --bg-light: #261508;
  --glass: rgba(255, 136, 0, 0.06);
  --glass-strong: rgba(11, 7, 3, 0.9);
  --glass-border: rgba(255, 136, 0, 0.22);
  --surface: rgba(255, 59, 31, 0.05);
  --surface-2: rgba(0, 0, 0, 0.42);
  --text: #fff2ed;
  --muted: rgba(255, 178, 71, 0.78);
  --muted-2: rgba(232, 137, 24, 0.48);
  --border: rgba(255, 0, 21, 0.18);
  --border-strong: rgba(255, 59, 31, 0.32);
  --accent: #ff8800;
  --accent-dim: rgba(255, 136, 0, 0.14);
  --accent-text: #0b0703;
  --accent-red: #ff0015;
  --accent-secondary: #ffb347;
  --white-btn: #ffc04a;
  --success: #4caf50;
  --warning: #ffa726;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 136, 0, 0.06);
  --shadow-dock: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 0, 21, 0.08);
  --font-display: "Share Tech Mono", "Courier New", monospace;
  --font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --crt-glow: 0 0 12px rgba(255, 136, 0, 0.35);
  --app-bg-gradient:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(255, 136, 0, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(255, 0, 21, 0.08), transparent 50%),
    linear-gradient(168deg, #261508 0%, #141006 35%, #0b0703 72%, #050301 100%);
  --space-unit: 1;
}

[data-skin="olive"] {
  --bg-deep: #1a2418;
  --bg-mid: #2a3828;
  --bg-light: #3d5035;
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(35, 48, 32, 0.72);
  --glass-border: rgba(255, 255, 255, 0.11);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(0, 0, 0, 0.22);
  --text: #f0f2eb;
  --muted: rgba(240, 242, 235, 0.68);
  --muted-2: rgba(240, 242, 235, 0.42);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent: #d4e157;
  --accent-dim: rgba(212, 225, 87, 0.18);
  --accent-text: #1a2418;
  --accent-red: #c8e06a;
  --accent-secondary: #a8d4a8;
  --white-btn: #f2f4ec;
  --success: #8bc48a;
  --warning: #e8c96a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-dock: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font-display: "Newsreader", "Noto Serif SC", Georgia, serif;
  --crt-glow: none;
  --app-bg-gradient:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(212, 225, 87, 0.12), transparent 52%),
    radial-gradient(ellipse 65% 45% at 95% 25%, rgba(90, 110, 75, 0.35), transparent 50%),
    linear-gradient(168deg, #455a3a 0%, #2f3d2a 28%, #1a2418 72%, #141c12 100%);
}

[data-skin="olive"] .brand-mark {
  border-radius: 50%;
  background: var(--glass);
  border-color: var(--glass-border);
  box-shadow: none;
}

[data-skin="eva-00"] {
  --bg-deep: #001006;
  --bg-mid: #001828;
  --bg-light: #002944;
  --glass: rgba(77, 163, 255, 0.07);
  --glass-strong: rgba(0, 16, 32, 0.88);
  --glass-border: rgba(77, 163, 255, 0.28);
  --text: #d8ecff;
  --muted: rgba(154, 216, 255, 0.78);
  --muted-2: rgba(100, 181, 246, 0.45);
  --accent: #64b5f6;
  --accent-dim: rgba(77, 163, 255, 0.12);
  --accent-text: #001006;
  --accent-red: #2f6bb7;
  --accent-secondary: #9ad8ff;
  --white-btn: #e8f5ff;
  --crt-glow: 0 0 14px rgba(77, 163, 255, 0.4);
  --app-bg-gradient:
    radial-gradient(ellipse 70% 45% at 30% -5%, rgba(77, 163, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(47, 107, 183, 0.12), transparent 50%),
    linear-gradient(168deg, #002944 0%, #001828 40%, #001006 100%);
}

[data-skin="eva-01"] {
  --bg-deep: #0a0612;
  --bg-mid: #120820;
  --bg-light: #1a1030;
  --glass: rgba(179, 136, 255, 0.07);
  --glass-strong: rgba(10, 6, 18, 0.9);
  --glass-border: rgba(179, 136, 255, 0.25);
  --text: #ede7ff;
  --muted: rgba(200, 170, 255, 0.75);
  --muted-2: rgba(140, 100, 220, 0.45);
  --accent: #b388ff;
  --accent-dim: rgba(179, 136, 255, 0.12);
  --accent-text: #0a0612;
  --accent-red: #76ff03;
  --accent-secondary: #ce93d8;
  --white-btn: #e1bee7;
  --crt-glow: 0 0 14px rgba(118, 255, 3, 0.25), 0 0 20px rgba(179, 136, 255, 0.2);
  --app-bg-gradient:
    radial-gradient(ellipse 65% 50% at 20% -8%, rgba(179, 136, 255, 0.15), transparent 52%),
    radial-gradient(ellipse 45% 35% at 85% 90%, rgba(118, 255, 3, 0.08), transparent 50%),
    linear-gradient(168deg, #1a1030 0%, #120820 45%, #0a0612 100%);
}

[data-skin="eva-nerv"] {
  --bg-deep: #120608;
  --bg-mid: #1a080a;
  --bg-light: #280c10;
  --glass: rgba(255, 48, 48, 0.07);
  --glass-strong: rgba(18, 6, 8, 0.92);
  --glass-border: rgba(255, 0, 51, 0.28);
  --text: #ffe8e8;
  --muted: rgba(255, 179, 163, 0.78);
  --muted-2: rgba(255, 90, 90, 0.45);
  --accent: #ff3030;
  --accent-dim: rgba(255, 48, 48, 0.12);
  --accent-text: #120608;
  --accent-red: #ff0033;
  --accent-secondary: #ffb3a3;
  --white-btn: #ffdddd;
  --crt-glow: 0 0 16px rgba(255, 0, 51, 0.35);
  --app-bg-gradient:
    radial-gradient(ellipse 75% 45% at 50% -5%, rgba(255, 48, 48, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 100%, rgba(255, 0, 51, 0.1), transparent 50%),
    linear-gradient(168deg, #280c10 0%, #1a080a 40%, #120608 100%);
}

[data-skin="retro-amber"] {
  --bg-deep: #0b0703;
  --bg-mid: #0f0a04;
  --bg-light: #1a1006;
  --glass: rgba(232, 137, 24, 0.05);
  --glass-strong: rgba(11, 7, 3, 0.94);
  --glass-border: rgba(232, 137, 24, 0.3);
  --text: #e88918;
  --muted: rgba(255, 173, 50, 0.85);
  --muted-2: rgba(232, 137, 24, 0.55);
  --accent: #ffad32;
  --accent-dim: rgba(232, 137, 24, 0.1);
  --accent-text: #0b0703;
  --accent-red: #ff6b5f;
  --accent-secondary: #ffc04a;
  --white-btn: #fff0d0;
  --success: #6dff9c;
  --crt-glow: 0 0 8px rgba(232, 137, 24, 0.55), 0 0 24px rgba(255, 173, 50, 0.2);
  --font-display: "Share Tech Mono", "Courier New", monospace;
  --font-body: "Share Tech Mono", "Courier New", "PingFang SC", monospace;
  --radius: 2px;
  --radius-lg: 4px;
  --app-bg-gradient: linear-gradient(180deg, #0f0a04 0%, #0b0703 100%);
}

.app-bg { background: var(--app-bg-gradient); }

[data-mode="glass"] .crt-overlay { opacity: 0; visibility: hidden; }
[data-mode="glass"] .welcome,
[data-mode="glass"] .composer-row,
[data-mode="glass"] .dock-pill { backdrop-filter: blur(24px) saturate(1.25); }

[data-mode="crt"] .crt-overlay { opacity: 0.35; visibility: visible; }
[data-mode="crt"] .briefing-greet,
[data-mode="crt"] .welcome h1 { text-shadow: var(--crt-glow); }

[data-mode="terminal"] {
  --radius: 3px;
  --radius-lg: 5px;
  --font-display: "Share Tech Mono", "Courier New", monospace;
  --font-body: "Share Tech Mono", "Courier New", "PingFang SC", monospace;
}
[data-mode="terminal"] .crt-overlay { opacity: 0.22; }
[data-mode="terminal"] .welcome,
[data-mode="terminal"] .composer-row,
[data-mode="terminal"] .dock-pill,
[data-mode="terminal"] .status-pill { backdrop-filter: none; background: var(--glass-strong); }
[data-mode="terminal"] .brand-mark { border-radius: 2px; }

[data-mode="neon"] .crt-overlay { opacity: 0.12; }
[data-mode="neon"] .hub-tab.active,
[data-mode="neon"] .see-pill.active { box-shadow: 0 0 20px rgba(255, 136, 0, 0.45); }
[data-mode="neon"] .briefing-greet,
[data-mode="neon"] .brand-initial { text-shadow: 0 0 20px var(--accent); }

[data-density="compact"] {
  --dock-h: 64px;
  --composer-h: 68px;
}
[data-density="compact"] .topbar { padding-top: 14px; }
[data-density="compact"] .welcome { padding: 18px; }
[data-density="compact"] .see-pill { padding: 8px 12px; font-size: 12px; }

body.theme-transition,
body.theme-transition .app-bg { transition: background 0.4s ease, color 0.35s ease, border-color 0.35s ease; }

.theme-studio { max-width: 640px; margin: 0 auto 32px; }
.theme-studio-head h3 { font-family: var(--font-display); font-size: 20px; color: var(--text); margin: 0 0 6px; }
.theme-studio-hint { font-size: 12px; color: var(--muted-2); margin: 0; }
.theme-section { margin-bottom: 22px; }
.theme-section h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 10px; }
.theme-section--row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.theme-section--row h4 { margin: 0; }

.theme-swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme-swatch {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
  background: var(--glass); cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.12s;
}
.theme-swatch:active { transform: scale(0.98); }
.theme-swatch.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--crt-glow); }
.theme-swatch-colors { display: flex; gap: 4px; width: 100%; }
.theme-swatch-colors i { flex: 1; height: 28px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08); }
.theme-swatch-label { font-size: 14px; font-weight: 600; color: var(--text); }
.theme-swatch-sub { font-size: 10px; color: var(--muted-2); line-height: 1.35; }

.theme-mode-list { display: flex; flex-direction: column; gap: 8px; }
.theme-mode-pill {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2); cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.theme-mode-pill.active { border-color: var(--accent); background: var(--accent-dim); }
.theme-mode-name { font-size: 14px; font-weight: 600; color: var(--text); }
.theme-mode-desc { font-size: 11px; color: var(--muted-2); }

.theme-density-row { display: flex; gap: 8px; }
.theme-density-pill {
  padding: 8px 16px; border-radius: var(--radius-pill); border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.2); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.theme-density-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.theme-credit { font-size: 11px; color: var(--muted-2); margin: 8px 0 0; }
.theme-credit a { color: var(--accent); }
