/* ===================================================================
   LAMINAK — "Sunset" Theme
   Warm amber and ember glow on deep charcoal. Golden hour vibes.
   =================================================================== */

/* ── Theme Variables ── */
body.theme-sunset {
  --bg:             #160f08;
  --bg-card:        #1e1509;
  --bg-input:       #271b0c;
  --bg-hover:       rgba(249, 115, 22, 0.08);
  --border:         rgba(180, 100, 30, 0.22);
  --text:           #fef3e2;
  --text-muted:     rgba(230, 170, 95, 0.5);
  --accent:         #f97316;
  --accent-hover:   #fb923c;
  --accent-dim:     rgba(249, 115, 22, 0.1);
  --user-bg:        rgba(249, 115, 22, 0.1);
  --assistant-bg:   rgba(22, 15, 8, 0.6);
  --success:        #86efac;
  --warning:        #fbbf24;
  --error:          #fb7185;
  --thinking-bg:    rgba(38, 26, 10, 0.7);
  --thinking-border: rgba(249, 115, 22, 0.15);
  --tool-bg:        rgba(22, 15, 8, 0.5);
  --tool-border:    rgba(180, 100, 30, 0.18);
  --bg-secondary:   #1e1509;
  --glass:          rgba(22, 15, 8, 0.88);
  --glass-border:   rgba(180, 100, 30, 0.2);
  --orb-idle:       radial-gradient(circle, #f97316 0%, #c2550a 40%, #7c2d06 100%);
  --orb-thinking:   radial-gradient(circle, #fbbf24 0%, #d97706 40%, #92400e 100%);
  --orb-speaking:   radial-gradient(circle, #fb923c 0%, #ea580c 40%, #9a3412 100%);
  --orb-listening:  radial-gradient(circle, #fcd34d 0%, #f59e0b 40%, #b45309 100%);
  --orb-error:      radial-gradient(circle, #fb7185 0%, #e11d48 40%, #9f1239 100%);
}

/* ── Background — ciel violet vivant ── */
body.theme-sunset {
  background: #08060f;
}

body.theme-sunset #app-shell {
  background: transparent !important;
}

body.theme-sunset::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    160deg,
    #08060f  0%,
    #150830  18%,
    #3a0d52  35%,
    #6e163a  52%,
    #b02858  68%,
    #d84060  80%,
    #e85030  90%,
    #f07820 100%
  );
  background-size: 300% 300%;
  animation: sunset-live 160s ease-in-out infinite alternate;
}

@keyframes sunset-live {
  0%   { background-position: 0%   0%;   filter: saturate(1.0) hue-rotate(0deg);   }
  25%  { background-position: 60%  30%;  filter: saturate(1.2) hue-rotate(-15deg); }
  50%  { background-position: 100% 65%;  filter: saturate(1.1) hue-rotate(12deg);  }
  75%  { background-position: 40%  90%;  filter: saturate(0.9) hue-rotate(-8deg);  }
  100% { background-position: 0%   100%; filter: saturate(1.0) hue-rotate(0deg);   }
}

/* ── Header ── */
body.theme-sunset header {
  background: rgba(8, 6, 15, 0.88);
  border-bottom: 1px solid rgba(200, 80, 140, 0.22);
  backdrop-filter: blur(8px);
}

body.theme-sunset .logo-icon {
  background: linear-gradient(135deg, #e8507a, #c084fc);
  color: #fff;
  border-radius: 8px;
}

/* ── Nav sidebar ── */
body.theme-sunset #app-nav {
  background: rgba(10, 7, 18, 0.85);
  border-right: 1px solid rgba(200, 80, 140, 0.2);
}

body.theme-sunset .nav-item.active {
  background: rgba(232, 80, 122, 0.1);
  color: #e8507a;
}

body.theme-sunset .nav-item:hover {
  background: rgba(232, 80, 122, 0.06);
}

body.theme-sunset .sidebar-footer {
  border-top: 1px solid rgba(200, 80, 140, 0.2);
}

/* ── Messages ── */
body.theme-sunset .msg.user .msg-body {
  background: rgba(232, 80, 122, 0.09);
  border: 1px solid rgba(232, 80, 122, 0.18);
}

body.theme-sunset .msg.assistant .msg-body {
  background: rgba(8, 6, 15, 0.55);
  border: 1px solid rgba(200, 80, 140, 0.15);
}

body.theme-sunset .msg.assistant .msg-avatar {
  background: linear-gradient(135deg, #b02050, #e8507a);
}

/* ── Input area ── */
body.theme-sunset .input-area {
  background: rgba(8, 6, 15, 0.92);
  border-top: 1px solid rgba(200, 80, 140, 0.2);
  backdrop-filter: blur(8px);
}

body.theme-sunset #msg-input {
  background: #18102a;
  border: 1px solid rgba(200, 80, 140, 0.25);
  border-radius: 14px;
}

body.theme-sunset #msg-input:focus {
  border-color: rgba(232, 80, 122, 0.45);
  box-shadow: 0 0 16px rgba(232, 80, 122, 0.08);
}

body.theme-sunset .send-btn {
  background: linear-gradient(135deg, #e8507a, #c084fc);
  color: #fff;
}
body.theme-sunset .send-btn:hover {
  background: linear-gradient(135deg, #f07090, #d090ff);
}

/* ── Model picker ── */
body.theme-sunset .model-picker-btn {
  background: #18102a;
  border-color: rgba(200, 80, 140, 0.25);
}
body.theme-sunset .model-picker-btn:hover {
  border-color: rgba(232, 80, 122, 0.45);
  color: #e8507a;
}
body.theme-sunset .model-picker-bubble {
  background: #100e1c;
  border-color: rgba(200, 80, 140, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
body.theme-sunset .model-picker-bubble::after {
  background: #100e1c;
  border-color: rgba(200, 80, 140, 0.25);
}

/* ── Suggestions ── */
body.theme-sunset .suggestion {
  background: #18102a;
  border: 1px solid rgba(200, 80, 140, 0.2);
  border-radius: 20px;
}
body.theme-sunset .suggestion:hover {
  background: rgba(232, 80, 122, 0.08);
  border-color: rgba(232, 80, 122, 0.35);
  color: #e8507a;
}

/* ── Thinking / tool blocks ── */
body.theme-sunset .thinking-block {
  background: rgba(28, 12, 32, 0.5);
  border-color: rgba(232, 80, 122, 0.1);
}
body.theme-sunset .tool-block {
  background: rgba(8, 6, 15, 0.45);
  border-color: rgba(200, 80, 140, 0.12);
}

/* ── Code blocks ── */
body.theme-sunset pre, body.theme-sunset code {
  background: #08060f;
  border: 1px solid rgba(200, 80, 140, 0.2);
}

/* ── Auth & connect ── */
body.theme-sunset .auth-card {
  background: #100e1c;
  border: 1px solid rgba(200, 80, 140, 0.25);
}
body.theme-sunset #connect-screen {
  background: #08060f;
}
body.theme-sunset #connect-screen .big-spinner {
  border-color: rgba(232, 80, 122, 0.12);
  border-top-color: #e8507a;
}

/* ── Scrollbars ── */
body.theme-sunset ::-webkit-scrollbar { width: 4px; }
body.theme-sunset ::-webkit-scrollbar-thumb {
  background: rgba(232, 80, 122, 0.2);
  border-radius: 2px;
}
body.theme-sunset ::-webkit-scrollbar-track { background: transparent; }
