/* =============================================
   ShopBot — Styles principaux
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Syne:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --surface2: #18181f;
  --surface3: #1e1e28;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #6c5ce7;
  --accent2: #a29bfe;
  --accent3: #fd79a8;
  --green: #00cec9;
  --amber: #fdcb6e;
  --text: #f0f0f8;
  --text2: #8888aa;
  --text3: #55556a;
  --radius: 14px;
  --radius-sm: 8px;
}

/* ---- Mode clair ---- */
[data-theme="light"] {
  --bg: #f4f4fa;
  --surface: #ffffff;
  --surface2: #ededf5;
  --surface3: #e3e3ee;
  --border: rgba(0,0,0,0.07);
  --border2: rgba(0,0,0,0.13);
  --accent: #6c5ce7;
  --accent2: #5a4bd1;
  --accent3: #d6336c;
  --green: #009e9a;
  --amber: #c98a00;
  --text: #16162a;
  --text2: #55557a;
  --text3: #9999bb;
}

/* ---- Bouton toggle thème ---- */
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent2); color: var(--accent2); }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  min-height: 100vh;
  display: flex;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 2px; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ---- Buttons ---- */
.btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover { background: var(--accent2); color: var(--bg); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { border-color: var(--accent2); color: var(--accent2); }

/* ---- Tags ---- */
.tag {
  font-size: 10px;
  font-family: 'DM Mono', monospace;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
}
.tag-faq    { background: rgba(0,206,201,0.12);   color: var(--green); }
.tag-lead   { background: rgba(162,155,254,0.15); color: var(--accent2); }
.tag-panier { background: rgba(253,121,168,0.12); color: var(--accent3); }
.tag-retour { background: rgba(253,203,110,0.12); color: var(--amber); }
.tag-reco   { background: rgba(108,92,231,0.15);  color: var(--accent2); }

/* ---- Section label ---- */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-bottom: 12px;
}

/* ---- Panel ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadeUp 0.4s both;
  animation-delay: 0.25s;
}
.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.panel-body { padding: 16px 20px; }

/* ---- Status dot ---- */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
.status-text { font-size: 12px; color: var(--green); font-family: 'DM Mono', monospace; }

/* ---- Toggle switch ---- */
.toggle-switch {
  margin-top: 10px;
  width: 32px; height: 18px;
  background: var(--surface3);
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.on { background: var(--accent); }
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch.on .toggle-knob { transform: translateX(14px); }

/* ---- Code block ---- */
.code-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent2);
  position: relative;
  margin-bottom: 12px;
  line-height: 1.6;
}
.copy-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  color: var(--text2);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }
