/**
 * PCTechComVn — FAB Dock CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 0)
 *
 * Floating Action Buttons: Phone, Zalo, Messenger.
 * Position: fixed, right side.
 * JS: fab-dock.js xử lý delay show và auto-hide ở Hero.
 */

.fab-dock {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: var(--z-fab);
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fab-dock.visible {
  opacity: 1;
  transform: translateX(0);
}

.fab-dock.at-hero {
  opacity: 0.3;
  transform: translateX(20px);
}

.fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border-radius: 28px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.fab:hover {
  transform: translateY(-3px);
}

.fab-icon {
  width: var(--fab-w);
  height: var(--fab-w);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
  flex-shrink: 0;
}

.fab-label {
  padding: 0 16px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.fab:hover .fab-label {
  max-width: 150px;
  opacity: 1;
  padding: 0 16px 0 0;
}

/* Phone */
.fab-phone {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 4px 16px rgba(232, 135, 10, 0.45);
}
.fab-phone .fab-icon {
  animation: fabBounce 2s ease-in-out infinite;
}
.fab-phone::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(232, 135, 10, 0.4);
  animation: fabRing 2s ease-out infinite;
  z-index: -1;
}

/* Zalo */
.fab-zalo {
  background: var(--zalo);
  box-shadow: 0 4px 16px rgba(0, 104, 255, 0.35);
}

/* Messenger */
.fab-messenger {
  background: linear-gradient(135deg, #0084ff, #00c6ff);
  box-shadow: 0 4px 16px rgba(0, 132, 255, 0.35);
}

/* Mobile: ẩn FAB dock, dùng sticky CTA thay thế */
@media (max-width: 768px) {
  .fab-dock {
    display: none;
  }
  .fab-label {
    display: none;
  }
}
