/* Floating Support Component Styles for Static Pages */
.floating-support-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .floating-support-container {
    bottom: 15px;
    right: 15px;
  }
}

.floating-support-button {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1001;
  border: none;
  outline: none;
}

.floating-support-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.floating-support-button:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

/* Enhanced tooltip styles */
.floating-support-button[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #1e293b;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1002;
  opacity: 0;
  animation: tooltipFadeIn 0.3s ease forwards;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-support-button[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 62px;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: #1e293b;
  z-index: 1002;
  opacity: 0;
  animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
  to {
    opacity: 1;
  }
}

.floating-support-button .icon {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.floating-support-button.rotated .icon {
  transform: rotate(180deg);
}

/* Pulse animation for attention */
.floating-support-button::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  z-index: -1;
  animation: pulse 2s infinite;
  opacity: 0.7;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

.support-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.support-menu.show {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .support-menu {
    width: calc(100vw - 30px);
    right: -15px;
    bottom: 70px;
  }
}

.menu-header {
  padding: 20px 20px 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.menu-header .icon {
  font-size: 20px;
  line-height: 1;
  display: inline-block;
}

.menu-header span {
  font-weight: 600;
  color: #1e293b;
  font-size: 16px;
  margin: 0;
}

.menu-options {
  padding: 12px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #334155;
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 14px;
  font-family: inherit;
}

.menu-item .icon {
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  transition: color 0.2s ease;
  flex-shrink: 0;
  display: inline-block;
}

.menu-item span {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.menu-item:hover {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

.menu-item:hover .icon {
  color: #6366f1;
}

.menu-item:active {
  background: rgba(99, 102, 241, 0.12);
}

.menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 8px 20px;
}

.quick-contact {
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748b;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item .icon {
  font-size: 14px;
  line-height: 1;
  color: #94a3b8;
  flex-shrink: 0;
  display: inline-block;
}

.contact-item span {
  font-weight: 500;
  margin: 0;
}

.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: -1;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Animations and interactions */
.floating-support-container.expanded .floating-support-button::before {
  animation: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .floating-support-button {
    border: 2px solid white;
  }

  .support-menu {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .floating-support-button,
  .support-menu,
  .menu-item,
  .floating-support-button .icon {
    transition: none;
  }

  .floating-support-button::before {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .support-menu {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
  }

  .menu-header {
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .menu-header span {
    color: #f1f5f9;
  }

  .menu-item {
    color: #cbd5e1;
  }

  .menu-item .icon {
    color: #94a3b8;
  }

  .menu-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
  }

  .menu-item:hover .icon {
    color: #a5b4fc;
  }

  .menu-divider {
    background: rgba(255, 255, 255, 0.1);
  }

  .quick-contact {
    background: rgba(99, 102, 241, 0.1);
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .contact-item {
    color: #94a3b8;
  }

  .contact-item .icon {
    color: #64748b;
  }
}