/**
 * ARIA CHAT INTERFACE STYLES
 *
 * Modern, professional chat interface
 * BMB brand colors, smooth animations, AGI feel
 *
 * Created: December 8, 2025
 * Owner: Business OMNI
 */

/* ========== CHAT TRIGGER BUTTON ========== */
.aria-chat-trigger {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

.aria-chat-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.4);
}

.aria-chat-trigger i {
  font-size: 20px;
}

.aria-trigger-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ========== CHAT MODAL OVERLAY ========== */
.aria-chat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.aria-chat-overlay.aria-active {
  opacity: 1;
  visibility: visible;
}

/* ========== CHAT MODAL ========== */
.aria-chat-modal {
  background: white;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  height: 85vh;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aria-chat-overlay.aria-active .aria-chat-modal {
  transform: scale(1);
  opacity: 1;
}

/* ========== CHAT HEADER ========== */
.aria-chat-header {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 20px 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.aria-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.aria-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  position: relative;
}

.aria-avatar-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: ariaPulse 2s infinite;
}

@keyframes ariaPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

.aria-header-text h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.aria-status {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.aria-header-actions {
  display: flex;
  gap: 8px;
}

.aria-btn-icon {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.aria-btn-icon:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ========== MESSAGES CONTAINER ========== */
.aria-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aria-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.aria-chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.aria-chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

/* ========== QUICK ACTIONS ========== */
.aria-quick-actions {
  display: flex;
  gap: 12px;
  padding: 0 24px 16px;
  background: #f9fafb;
  flex-wrap: wrap;
}

.aria-quick-btn {
  flex: 1;
  min-width: 120px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
}

.aria-quick-btn:hover {
  border-color: #0066ff;
  color: #0066ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.aria-quick-btn i {
  font-size: 16px;
}

/* ========== INPUT AREA ========== */
.aria-chat-input-container {
  border-top: 1px solid #e2e8f0;
  background: white;
  padding: 16px 24px;
  border-radius: 0 0 20px 20px;
}

.aria-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.aria-chat-input {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
  min-height: 48px;
  max-height: 120px;
}

.aria-chat-input:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.aria-chat-input::placeholder {
  color: #94a3b8;
}

.aria-send-btn {
  background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.aria-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.aria-send-btn i {
  font-size: 18px;
}

.aria-input-footer {
  margin-top: 8px;
  text-align: center;
}

.aria-powered-by {
  font-size: 11px;
  color: #94a3b8;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .aria-chat-overlay {
    padding: 0;
  }

  .aria-chat-modal {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .aria-chat-header {
    border-radius: 0;
    padding: 16px 20px;
  }

  .aria-chat-messages {
    padding: 16px;
  }

  .aria-quick-actions {
    padding: 0 16px 12px;
  }

  .aria-quick-btn {
    min-width: 100px;
    padding: 10px 12px;
    font-size: 13px;
  }

  .aria-chat-input-container {
    padding: 12px 16px;
    border-radius: 0;
  }

  .aria-chat-trigger {
    bottom: 20px;
    right: 20px;
    padding: 14px 20px;
    font-size: 14px;
  }

  .aria-chat-trigger span {
    display: none;
  }
}

@media (max-width: 480px) {
  .aria-quick-actions {
    flex-direction: column;
  }

  .aria-quick-btn {
    width: 100%;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes ariaFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.aria-chat-messages > * {
  animation: ariaFadeIn 0.3s ease-out;
}
