/* Premium Features - Analytics & Floating Contact Dock */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Floating Contact Dock */
.premium-floating-dock {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column-reverse; /* Stack upwards */
  gap: 15px;
  z-index: 9999;
  pointer-events: none; /* Let clicks pass through the container */
}

.premium-dock-item {
  pointer-events: auto; /* Re-enable clicks for items */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

/* Specific Brand Colors on Hover */
.premium-dock-item.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
  transform: translateY(-5px) scale(1.05);
}

.premium-dock-item.telegram:hover {
  background: #0088cc;
  border-color: #0088cc;
  box-shadow: 0 10px 20px rgba(0, 136, 204, 0.4);
  transform: translateY(-5px) scale(1.05);
}

.premium-dock-item.email:hover {
  background: var(--accent-color, #ea384c);
  border-color: var(--accent-color, #ea384c);
  box-shadow: 0 10px 20px rgba(234, 56, 76, 0.4);
  transform: translateY(-5px) scale(1.05);
}

/* Icons styling */
.premium-dock-item svg {
  width: 24px;
  height: 24px;
  fill: var(--text-color, #fff);
  transition: fill 0.3s ease;
}

.premium-dock-item:hover svg {
  fill: #fff; /* Ensure icons stay white when hovered */
}

/* For dark themes where default text-color is dark, we need the svg to be dark initially and turn white on hover */
body.theme-about .premium-dock-item svg,
body.theme-services .premium-dock-item svg,
body.theme-blog .premium-dock-item svg {
  fill: #121212;
}

body.theme-about .premium-dock-item:hover svg,
body.theme-services .premium-dock-item:hover svg,
body.theme-blog .premium-dock-item:hover svg {
  fill: #fff;
}

/* Dark theme background for dock items for better contrast when not hovered */
body.theme-about .premium-dock-item,
body.theme-services .premium-dock-item,
body.theme-blog .premium-dock-item {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}


/* Tooltip */
.premium-dock-tooltip {
  position: absolute;
  right: 70px; /* Push to the left of the button */
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #121212;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Tooltip arrow */
.premium-dock-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #121212;
}

.premium-dock-item:hover .premium-dock-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .premium-floating-dock {
    bottom: 20px;
    right: 20px;
  }
  .premium-dock-tooltip {
    display: none; /* Hide tooltips on mobile to prevent clutter */
  }
  .premium-dock-item {
    width: 48px;
    height: 48px;
  }
}
