/* Floating Chat Styles */
.floating-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.chat-toggle:active {
  transform: scale(0.95);
}

.chat-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-chat.is-open .chat-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.chat-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  min-width: 140px;
  transform: translateX(20px);
  animation: slideInRight 0.3s ease forwards;
}

.floating-chat.is-open .chat-option:nth-child(1) {
  animation-delay: 0.1s;
}

.floating-chat.is-open .chat-option:nth-child(2) {
  animation-delay: 0.2s;
}

.floating-chat.is-open .chat-option:nth-child(3) {
  animation-delay: 0.3s;
}

.floating-chat.is-open .chat-option:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes slideInRight {
  to {
    transform: translateX(0);
  }
}

.chat-option:hover {
  transform: translateX(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.chat-option i {
  font-size: 20px;
  width: 20px;
  text-align: center;
}

.chat-option.whatsapp {
  border-left: 4px solid #25d366;
}

.chat-option.whatsapp i {
  color: #25d366;
}

.chat-option.telegram {
  border-left: 4px solid #0088cc;
}

.chat-option.telegram i {
  color: #0088cc;
}

.chat-option.kakaotalk {
  border-left: 4px solid #fee500;
}

.chat-option.kakaotalk i {
  color: #3c1e1e;
}

.chat-option.wechat {
  border-left: 4px solid #07c160;
}

.chat-option.wechat i {
  color: #07c160;
}

/* QR Modal Styles */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.qr-modal.show {
  display: flex;
}

.qr-modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: #333;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 10px 0;
  border-radius: 10px;
}

.qr-modal-content p {
  margin: 15px 0 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-chat {
    bottom: 15px;
    right: 15px;
  }
  
  .chat-toggle {
    width: 55px;
    height: 55px;
    font-size: 22px;
  }
  
  .chat-option {
    padding: 10px 14px;
    font-size: 13px;
    min-width: 120px;
  }
  
  .chat-option i {
    font-size: 18px;
  }
  
  .qr-modal-content {
    padding: 20px;
    max-width: 280px;
  }
  
  .qr-code {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .floating-chat {
    bottom: 10px;
    right: 10px;
  }
  
  .chat-toggle {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .chat-option {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 110px;
    gap: 8px;
  }
  
  .chat-option i {
    font-size: 16px;
  }
  
  .qr-modal-content {
    padding: 15px;
    max-width: 260px;
  }
  
  .qr-code {
    width: 160px;
    height: 160px;
  }
}

/* Animation for chat toggle when options are open */
.floating-chat.is-open .chat-toggle {
  transform: rotate(45deg);
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.floating-chat.is-open .chat-toggle:hover {
  transform: rotate(45deg) scale(1.1);
}

/* Pulse animation for attention */
@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}

.chat-toggle.pulse {
  animation: pulse 2s infinite;
}