/* Skorpio Studios Chatbot */

.sks-trigger {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f4630a;
  border: none;
  cursor: pointer;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(244,99,10,0.45);
  z-index: 99999;
  transition: transform 0.2s, box-shadow 0.2s;
  line-height: 1;
}
.sks-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(244,99,10,0.6);
}

.sks-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #0d0d0d;
  border: 1px solid rgba(244,99,10,0.3);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  z-index: 99998;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.22s, transform 0.22s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.sks-window.sks-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.sks-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-bottom: 1px solid rgba(244,99,10,0.2);
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.sks-avatar {
  width: 38px;
  height: 38px;
  background: rgba(244,99,10,0.15);
  border: 1.5px solid rgba(244,99,10,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.sks-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sks-info strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}
.sks-info span {
  color: #6ee7b7;
  font-size: 0.72rem;
}
.sks-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.sks-close:hover { color: #fff; }

.sks-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(244,99,10,0.3) transparent;
}
.sks-msgs::-webkit-scrollbar { width: 4px; }
.sks-msgs::-webkit-scrollbar-thumb { background: rgba(244,99,10,0.3); border-radius: 4px; }

.sks-msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
}
.sks-msg.sks-bot {
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  color: #e0e0e0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.sks-msg.sks-user {
  background: #f4630a;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.sks-msg.sks-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 16px;
  align-self: flex-start;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
}
.sks-msg.sks-typing span {
  width: 7px;
  height: 7px;
  background: #f4630a;
  border-radius: 50%;
  display: inline-block;
  animation: sks-bounce 1.2s infinite;
}
.sks-msg.sks-typing span:nth-child(2) { animation-delay: 0.2s; }
.sks-msg.sks-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes sks-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.sks-qr {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 10px;
}
.sks-q {
  background: rgba(244,99,10,0.1);
  border: 1px solid rgba(244,99,10,0.3);
  color: #f4630a;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.sks-q:hover { background: rgba(244,99,10,0.22); }

.sks-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sks-input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 0.84rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.sks-input:focus { border-color: rgba(244,99,10,0.5); }
.sks-input::placeholder { color: #555; }
.sks-send {
  background: #f4630a;
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sks-send:hover { background: #d95500; }

@media (max-width: 480px) {
  .sks-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 90px;
  }
  .sks-trigger {
    right: 16px;
    bottom: 20px;
  }
}
