/* ==========================================================================
   GLOWMX PERMANENT FLOATING SOCIAL & CONTACT DOCK
   Identical, Minimal, Icon-Only Vertical Pill Bar on Both Themes
   Gold/Charcoal on Default | Subtle Orange Border Accents on Halloween
   ========================================================================== */

#glowmx-social-dock {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998 !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  width: auto !important;
  max-width: 54px !important;
  padding: 8px 6px 8px 8px;
  background: rgba(23, 22, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(185, 145, 50, 0.35);
  border-right: none;
  border-radius: 14px 0 0 14px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  pointer-events: auto !important;
}

.glowmx-dock-item {
  position: relative;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(185, 145, 50, 0.08);
  border: 1px solid rgba(185, 145, 50, 0.3);
  color: #d4b45d;
  transition: all 0.25s ease;
  text-decoration: none;
  pointer-events: auto !important;
  box-sizing: border-box;
  overflow: visible;
}

.glowmx-dock-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.25s ease;
}

.glowmx-dock-item:hover {
  background: #b99132;
  color: #ffffff;
  border-color: #d4b45d;
  transform: translateX(-3px);
  box-shadow: 0 0 14px rgba(185, 145, 50, 0.55);
}

.glowmx-dock-item:hover svg {
  transform: scale(1.1);
}

/* Tooltips: Strictly Hidden By Default on All Themes (Never Expands Pill Bar) */
.glowmx-dock-item .dock-tooltip,
body.halloween-theme .glowmx-dock-item .dock-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #171616;
  color: #f4eee5;
  border: 1px solid rgba(185, 145, 50, 0.4);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  font-family: inherit;
  z-index: 9999 !important;
}

/* Tooltips: Smooth Appearance ONLY on Hover */
.glowmx-dock-item:hover .dock-tooltip,
body.halloween-theme .glowmx-dock-item:hover .dock-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(-50%) translateX(0) !important;
}

/* WhatsApp Witch Hat Badge - Strictly Mini SVG on Icon Corner */
.glowmx-dock-item .witch-hat-badge {
  display: none;
  position: absolute;
  top: -7px;
  right: -5px;
  width: 17px;
  height: 17px;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  animation: hatWiggle 3.6s ease-in-out infinite;
}

@keyframes hatWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

/* ---------- Halloween Theme: Same Slim Geometry, Subtle Festive Accents ---------- */
body.halloween-theme #glowmx-social-dock {
  background: rgba(18, 12, 26, 0.94);
  border-color: rgba(255, 117, 24, 0.45);
  width: auto !important;
  max-width: 54px !important;
}

body.halloween-theme .glowmx-dock-item {
  width: 40px !important;
  height: 40px !important;
  background: rgba(255, 117, 24, 0.1);
  border-color: rgba(255, 117, 24, 0.35);
  color: #ff9e58;
}

body.halloween-theme .glowmx-dock-item:hover {
  background: #FF7518;
  color: #FFFFFF;
  border-color: #FF8A3D;
  box-shadow: 0 0 14px rgba(255, 117, 24, 0.6);
}

body.halloween-theme .glowmx-dock-item .dock-tooltip {
  background: #180d28;
  border-color: rgba(255, 117, 24, 0.45);
}

body.halloween-theme .glowmx-dock-item .witch-hat-badge {
  display: block !important;
}

/* ---------- Mobile Responsiveness (< 768px) ---------- */
@media (max-width: 768px) {
  #glowmx-social-dock {
    padding: 4px 3px 4px 4px;
    gap: 5px;
    max-width: 42px !important;
    border-radius: 10px 0 0 10px;
  }
  .glowmx-dock-item,
  body.halloween-theme .glowmx-dock-item {
    width: 32px !important;
    height: 32px !important;
    border-radius: 7px;
  }
  .glowmx-dock-item svg {
    width: 15px;
    height: 15px;
  }
  .glowmx-dock-item .dock-tooltip,
  body.halloween-theme .glowmx-dock-item .dock-tooltip {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .glowmx-dock-item .witch-hat-badge {
    width: 13px;
    height: 13px;
    top: -5px;
    right: -3px;
  }
}
