/* assets/css/sitebot.css */
/* Smart-Present SiteBot Widget (modern, responsive, no dependencies) */

.spbot{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  font-family: inherit;
}

@media (max-width: 520px){
  .spbot{ right: 12px; bottom: 12px; }
}

.spbot__toggle{
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  color: var(--text, #fff);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand, #2B77FF) 90%, #000),
    color-mix(in srgb, var(--brand, #2B77FF) 65%, #000)
  );
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), filter .2s cubic-bezier(.2,.7,.2,1);
}
.spbot__toggle:hover{ transform: translateY(-1px); filter: brightness(1.05); }

.spbot__panel{
  width: min(390px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 120px));
  margin-bottom: 12px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: color-mix(in srgb, var(--bg, #070A12) 86%, #000);
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.spbot__panel[aria-hidden="true"]{ display:none; }

.spbot__head{
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(8,10,18,.55);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.spbot__title{ font-weight: 900; font-size: 14px; letter-spacing: .01em; color: var(--text, #fff); }
.spbot__sub{ font-size: 12px; color: var(--muted, rgba(255,255,255,.68)); }

.spbot__headlink{
  display:inline-flex;
  align-items:center;
  padding:.55rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  font-weight: 900;
  color: var(--text, #fff);
  text-decoration: none;
}

.spbot__body{
  padding: 12px;
  overflow: auto;
  background:
    radial-gradient(520px 380px at 20% 0%, rgba(43,119,255,.22), transparent 60%),
    radial-gradient(480px 360px at 85% 10%, rgba(134,178,255,.16), transparent 65%);
}

.spbot__msg{ display:flex; margin: 10px 0; }
.spbot__bubble{
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.35;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color: var(--text, #fff);
}
.spbot__msg.user{ justify-content:flex-end; }
.spbot__msg.user .spbot__bubble{
  background: linear-gradient(180deg, rgba(43,119,255,.22), rgba(43,119,255,.12));
  border-color: color-mix(in srgb, var(--brand, #2B77FF) 35%, rgba(255,255,255,.12));
}

.spbot__body a{ color: var(--brand-2, #86B2FF); font-weight: 900; text-decoration: none; }
.spbot__body a:hover{ text-decoration: underline; }

.spbot__foot{
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: color-mix(in srgb, var(--bg, #070A12) 80%, #000);
}

.spbot__quick{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.spbot__quick button{
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  color: var(--text, #fff);
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s cubic-bezier(.2,.7,.2,1);
}
.spbot__quick button:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--brand, #2B77FF) 35%, rgba(255,255,255,.12));
}

.spbot__form{ display:flex; gap: 8px; }
.spbot__input{
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  background: rgba(255,255,255,.06);
  color: var(--text, #fff);
  outline: none;
}
.spbot__send{
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(90deg, var(--brand-2, #86B2FF), var(--brand, #2B77FF));
  color: #fff;
  font-weight: 950;
}

.spbot__hint{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted, rgba(255,255,255,.68));
}

.spbot__chips{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.spbot__chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(43,119,255,.10);
  font-size: 12px;
  font-weight: 950;
  color: var(--text, #fff);
}

.spbot__chipbtn{
  cursor: pointer;
}

.spbot__small{
  margin-top: 8px;
  color: var(--muted, rgba(255,255,255,.68));
  font-size: 12px;
}

.spbot__links{
  margin-top: 8px;
  display:flex;
  gap: 8px;
  align-items:center;
  color: var(--muted, rgba(255,255,255,.68));
  font-size: 12px;
}
.spbot__links span{ opacity: .7; }

.spbot__typing{
  opacity: .85;
}
