/* FloatingButtons Component Styles */

/* Emergency Floating Button */
.floating-emergency {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--brand-primary);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--brand-primary);
}

.floating-emergency:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  color: var(--white);
}

.floating-emergency i {
  font-size: 1rem;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.chat-toggle:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chat-toggle i {
  font-size: 24px;
}

.chat-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  animation: pulse 2s infinite;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Chat Popup */
.chat-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.chat-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--brand-secondary);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-company {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.chat-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat-content {
  padding: 20px;
}

.chat-greeting {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.greeting-avatar {
  width: 40px;
  height: 40px;
  background: var(--brand-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.greeting-text h4 {
  color: var(--gray-800);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.greeting-text p {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.4;
}

.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.chat-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.chat-option:hover {
  background: var(--brand-secondary);
  color: var(--white);
  transform: translateX(4px);
}

.chat-option i {
  width: 16px;
  text-align: center;
}

.chat-hours {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.chat-hours p {
  color: var(--gray-600);
  font-size: 12px;
  margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .floating-emergency {
    display: none; /* Hide on mobile - use sticky bottom bar instead */
  }
  
  .chat-widget {
    bottom: 80px;
    right: 1rem;
  }
  
  .chat-toggle {
    width: 50px;
    height: 50px;
  }
  
  .chat-toggle i {
    font-size: 20px;
  }
  
  .chat-badge {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .chat-popup {
    width: calc(100vw - 2rem);
    right: -0.5rem;
    max-width: 280px;
  }
  
  .chat-widget {
    bottom: 80px;
    right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .chat-popup {
    width: calc(100vw - 1rem);
    right: -0.25rem;
  }
  
  .chat-content {
    padding: 15px;
  }
  
  .chat-options {
    gap: 6px;
  }
  
  .chat-option {
    padding: 10px 12px;
  }
} 