/* 
  Genius AI Support - Premium Glassmorphic Styles
  Designed for The Genius Agency
*/

:root {
  --ai-primary: #f5c542;
  --ai-bg: rgba(13, 17, 23, 0.85);
  --ai-border: rgba(245, 197, 66, 0.2);
  --ai-text: #ffffff;
  --ai-muted: rgba(255, 255, 255, 0.5);
  --ai-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

#genius-ai-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.ai-launcher {
  width: 60px;
  height: 60px;
  background: var(--ai-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(245, 197, 66, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  outline: none;
}

.ai-launcher:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(245, 197, 66, 0.4);
}

.ai-launcher svg {
  width: 28px;
  height: 28px;
  color: #000;
}

.ai-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  height: 450px;
  background: var(--ai-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ai-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--ai-shadow);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.ai-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.ai-header {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-header-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.ai-header-info p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--ai-primary);
  font-weight: 600;
  text-transform: uppercase;
}

.ai-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.ai-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  animation: msgAppear 0.4s ease-out forwards;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  color: #eee;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-msg.user {
  background: var(--ai-primary);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.ai-input-area {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-input-wrap {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.ai-input-wrap:focus-within {
  border-color: var(--ai-primary);
  background: rgba(255, 255, 255, 0.08);
}

.ai-input-wrap input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 4px;
  outline: none;
}

.ai-send-btn {
  background: var(--ai-primary);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ai-send-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.ai-typing {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 10px;
}

.ai-typing span {
  width: 6px;
  height: 6px;
  background: var(--ai-primary);
  border-radius: 50%;
  animation: typing 1.4s infinite;
  opacity: 0.3;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-4px); opacity: 1; }
}

/* Custom Scrollbar */
.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 10px; }
