/**
 * Epic Marks Chatbot - Launcher Button Styles
 * Minimal CSS loaded on all pages
 */

/* Default CSS variables (overridden by WordPress config) */
:root {
  --em-primary: #73CDD6;
  --em-secondary: #333333;
  --em-radius: 16px;
}

/* Launcher button */
.em-chatbot-launcher {
  position: fixed;
  bottom: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--em-primary, #73CDD6);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.em-chatbot-launcher:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.em-chatbot-launcher:active {
  transform: scale(0.98);
}

.em-chatbot-launcher svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Position variants */
.em-chatbot-launcher--right {
  right: 20px;
}

.em-chatbot-launcher--left {
  left: 20px;
}

/* Hide launcher when chat is open */
.em-chatbot-launcher--hidden {
  display: none;
}

/* Notification badge (for unread messages) */
.em-chatbot-launcher__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: em-chatbot-pulse 2s infinite;
}

@keyframes em-chatbot-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Chat window container (loaded dynamically) */
#em-chatbot-root {
  position: fixed;
  z-index: 10000;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .em-chatbot-launcher {
    bottom: 16px;
    width: 56px;
    height: 56px;
  }

  .em-chatbot-launcher--right {
    right: 16px;
  }

  .em-chatbot-launcher--left {
    left: 16px;
  }
}
