/* ==========================================================================
   Slikyface Universal Support Action Widget & Styles
   Premium Black & Lime Theme + Adapted Period Tracker Pink Theme
   ========================================================================== */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-support-widget {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: #0d160c;
  border: 1px solid #283e20;
  border-radius: 999px;
  padding: 3px 5px 3px 10px;
  gap: 7px;
  box-shadow: 0 0 14px rgba(184, 255, 54, 0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
  vertical-align: middle;
  height: 34px;
  box-sizing: border-box;
}

.site-support-widget:hover {
  border-color: rgba(184, 255, 54, 0.65);
  background: #132212;
  box-shadow: 0 0 18px rgba(184, 255, 54, 0.22);
  transform: translateY(-1px);
}

.support-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #eaf8dd;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.01em;
  padding: 2px 2px;
  transition: color 0.15s ease;
  line-height: 1;
}

.support-btn:hover {
  color: #b8ff36;
  text-decoration: none !important;
}

.site-support-widget:hover .support-btn {
  color: #b8ff36;
}

.support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8ff36;
  flex-shrink: 0;
}

.support-icon svg {
  display: block;
}

.support-divider {
  width: 1px;
  height: 14px;
  background: rgba(184, 255, 54, 0.25);
  margin: 0 1px;
}

.support-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(184, 255, 54, 0.1);
  border: 1px solid rgba(184, 255, 54, 0.25);
  border-radius: 999px;
  width: 24px;
  height: 24px;
  color: #b8ff36;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.support-copy-btn:hover {
  background: #b8ff36;
  color: #081007;
  border-color: #b8ff36;
  transform: scale(1.08);
}

.support-copy-btn:active {
  transform: scale(0.95);
}

.support-copy-btn.copied {
  background: #b8ff36 !important;
  color: #081007 !important;
  border-color: #b8ff36 !important;
}

/* Tooltip on hover */
.support-copy-btn .copy-tooltip {
  visibility: hidden;
  position: absolute;
  bottom: calc(100% + 8px);
  right: -6px;
  background: #081007;
  color: #eaf8dd;
  border: 1px solid #344f28;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.support-copy-btn:hover .copy-tooltip,
.support-copy-btn:focus-visible .copy-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   Pink Theme Adaption for Period Tracker Interface
   ========================================================================== */

.site-support-widget.theme-pink {
  background: #170d14;
  border-color: #472134;
  box-shadow: 0 0 14px rgba(251, 111, 146, 0.08);
}

.site-support-widget.theme-pink:hover {
  border-color: rgba(251, 111, 146, 0.7);
  background: #23121e;
  box-shadow: 0 0 18px rgba(251, 111, 146, 0.25);
}

.site-support-widget.theme-pink .support-btn {
  color: #fae1e7;
}

.site-support-widget.theme-pink .support-btn:hover,
.site-support-widget.theme-pink:hover .support-btn {
  color: #fb6f92;
}

.site-support-widget.theme-pink .support-icon {
  color: #fb6f92;
}

.site-support-widget.theme-pink .support-divider {
  background: rgba(251, 111, 146, 0.25);
}

.site-support-widget.theme-pink .support-copy-btn {
  background: rgba(251, 111, 146, 0.12);
  border-color: rgba(251, 111, 146, 0.3);
  color: #fb6f92;
}

.site-support-widget.theme-pink .support-copy-btn:hover,
.site-support-widget.theme-pink .support-copy-btn.copied {
  background: #fb6f92 !important;
  color: #170a12 !important;
  border-color: #fb6f92 !important;
}

.site-support-widget.theme-pink .support-copy-btn .copy-tooltip {
  background: #180913;
  color: #fae1e7;
  border-color: #55273d;
}

/* ==========================================================================
   Global Floating Support Toast
   ========================================================================== */

.support-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-25px);
  background: #0d170c;
  border: 1px solid #3d5e2e;
  color: #f7faf5;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(184, 255, 54, 0.2);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: min(92vw, 480px);
}

.support-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.support-toast.theme-pink {
  background: #1c0e16;
  border-color: #5c273e;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 20px rgba(251, 111, 146, 0.22);
}

.support-toast .toast-btn-copy {
  background: #b8ff36;
  border: none;
  color: #081007;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.support-toast.theme-pink .toast-btn-copy {
  background: #fb6f92;
  color: #1a0b12;
}

.support-toast .toast-btn-copy:hover {
  filter: brightness(1.15);
  transform: scale(1.04);
}

/* ==========================================================================
   Responsive Adaptations (Keep navigation uncluttered on phones)
   ========================================================================== */

@media (max-width: 768px) {
  .topbar-actions {
    gap: 8px;
  }
  .site-support-widget {
    height: 32px;
    padding: 2px 4px 2px 8px;
    gap: 5px;
  }
  .support-btn {
    font-size: 11px;
    gap: 6px;
  }
  .support-copy-btn {
    width: 22px;
    height: 22px;
  }
  .support-copy-btn svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 540px) {
  .support-label-full {
    display: none;
  }
  .support-label-short {
    display: inline;
  }
}

@media (min-width: 541px) {
  .support-label-full {
    display: inline;
  }
  .support-label-short {
    display: none;
  }
}

@media (max-width: 380px) {
  /* Ultra-compact mode for sub-380px screens to prevent any header wrapping */
  .site-support-widget {
    padding: 2px 4px 2px 7px;
    gap: 4px;
  }
  .support-btn {
    font-size: 10px;
    gap: 4px;
  }
}
