/**
 * AI Easy Way - Concierge Mockup Styles
 * Chat/Voice demo component styling
 */

/* === Concierge Container === */
.concierge-mockup {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 580px;
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #dee1e6;
}

/* === Header === */
.concierge-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #0052ff;
  color: #ffffff;
}

.concierge-avatar {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.concierge-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.concierge-name {
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.concierge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: 0.9;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #05b169;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.concierge-voice-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.concierge-voice-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === Messages Area === */
.concierge-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f7f7f7;
}

/* === Message Bubbles === */
.concierge-message {
  max-width: 85%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.concierge-message.visible {
  opacity: 1;
  transform: translateY(0);
}

.message-user {
  align-self: flex-end;
}

.message-bot {
  align-self: flex-start;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-family: 'Clash Display', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.message-content p {
  margin: 0;
  color: inherit;
}

.message-content p + p {
  margin-top: 8px;
}

.message-content strong {
  font-weight: 600;
}

.message-user .message-content {
  background: #0052ff;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.message-bot .message-content {
  background: #ffffff;
  color: #0a0b0d;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-time {
  display: block;
  font-size: 11px;
  color: #7c828a;
  margin-top: 4px;
  padding: 0 4px;
}

.message-user .message-time {
  text-align: right;
}

/* === Typing Indicator === */
.concierge-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.concierge-typing span {
  width: 8px;
  height: 8px;
  background: #7c828a;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite;
}

.concierge-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.concierge-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* === Quick Replies === */
.concierge-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid #eef0f3;
}

.quick-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f7f7f7;
  border: 1px solid #dee1e6;
  border-radius: 100px;
  font-family: 'Clash Display', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #0a0b0d;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-reply-btn:hover {
  background: #0052ff;
  border-color: #0052ff;
  color: #ffffff;
}

.quick-reply-btn:hover svg {
  stroke: #ffffff;
}

.quick-reply-btn svg {
  stroke: #5b616e;
  transition: stroke 0.2s ease;
}

/* === Input Area === */
.concierge-input-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid #eef0f3;
}

.concierge-input {
  flex: 1;
  padding: 12px 16px;
  background: #f7f7f7;
  border: 1px solid #dee1e6;
  border-radius: 100px;
  font-family: 'Clash Display', sans-serif;
  font-size: 15px;
  color: #0a0b0d;
  outline: none;
  transition: border-color 0.2s ease;
}

.concierge-input::placeholder {
  color: #7c828a;
}

.concierge-input:focus {
  border-color: #0052ff;
}

.concierge-send-btn {
  width: 44px;
  height: 44px;
  background: #0052ff;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.concierge-send-btn:hover {
  background: #003ecc;
}

/* === Booking Options === */
.concierge-booking-options {
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  margin-top: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.concierge-booking-options p {
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  color: #5b616e;
  margin-bottom: 12px;
}

.booking-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-btn {
  padding: 10px 16px;
  background: #f7f7f7;
  border: 1px solid #dee1e6;
  border-radius: 8px;
  font-family: 'Clash Display', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-btn:hover {
  background: #0052ff;
  border-color: #0052ff;
  color: #ffffff;
}

/* === Voice Overlay === */
.concierge-voice-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 82, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 10;
}

.voice-indicator {
  text-align: center;
  color: #ffffff;
}

.voice-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
  margin-bottom: 16px;
}

.voice-waves span {
  width: 4px;
  height: 20px;
  background: #ffffff;
  border-radius: 2px;
  animation: voice-wave 1s infinite ease-in-out;
}

.voice-waves span:nth-child(1) { animation-delay: 0s; }
.voice-waves span:nth-child(2) { animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { animation-delay: 0.2s; }
.voice-waves span:nth-child(4) { animation-delay: 0.3s; }
.voice-waves span:nth-child(5) { animation-delay: 0.4s; }

@keyframes voice-wave {
  0%, 100% {
    height: 20px;
  }
  50% {
    height: 50px;
  }
}

.voice-indicator p {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
}

.voice-cancel-btn {
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
  font-family: 'Clash Display', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.voice-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* === Staff Task Notification === */
.staff-task-notification {
  position: absolute;
  top: 80px;
  right: 16px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #05b169;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  z-index: 20;
  max-width: 220px;
}

.staff-task-notification.visible {
  opacity: 1;
  transform: translateX(0);
}

.task-notification-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #05b169;
  font-family: 'Clash Display', sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.task-notification-body {
  font-family: 'Clash Display', sans-serif;
}

.task-notification-body strong {
  display: block;
  font-size: 12px;
  color: #7c828a;
  margin-bottom: 4px;
}

.task-notification-body p {
  font-size: 14px;
  color: #0a0b0d;
  margin: 0;
}

/* === Demo Wrapper === */
.concierge-demo-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

/* === Responsive === */
@media (max-width: 640px) {
  .concierge-mockup {
    height: 520px;
    border-radius: 16px;
  }

  .concierge-quick-replies {
    padding: 10px 16px;
  }

  .quick-reply-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .concierge-input-area {
    padding: 12px 16px;
  }
}
