/**
 * Sticky Button Styles
 */

.sticky-report-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: var(--color-copper); /* Copper fill */
  color: var(--color-sky-blue);
  border-radius: 0;
  font-family: var(--font-interstate);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 2px solid var(--color-gold); /* Gold border */
  min-width: 180px;
  max-width: 280px;
  overflow: visible; /* Changed to visible to show glow effect */
  opacity: 0;
  transform: translateY(100px);
  pointer-events: none;
}

.sticky-report-button.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.sticky-report-button:hover {
  background-color: var(--color-copper); /* Keep copper background */
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sticky-report-button:active {
  background-color: var(--color-copper);
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.1s ease;
}

.sticky-report-button-text {
  margin-right: 10px;
  white-space: nowrap;
  position: relative;
}

/* Underline animation */
.sticky-report-button-text::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-sky-blue);
  transition: width 0.3s ease;
}

.sticky-report-button:hover .sticky-report-button-text::after {
  width: 100%;
  transition: width 0.4s ease;
}

.sticky-report-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Subtle glow animation */
.sticky-report-button::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 2px;
  background: linear-gradient(45deg, var(--color-gold), rgba(247, 158, 69, 0.5), var(--color-gold));
  background-size: 200% 200%;
  z-index: -1;
  animation: glowAnimation 4s ease-in-out infinite;
  opacity: 0.6;
  filter: blur(3px);
}

@keyframes glowAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUpButton {
  from {
    opacity: 0;
    transform: translateY(100px);
    pointer-events: none;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
}

/* Docked button styling */
.sticky-report-button.docked {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(0) scale(1.05);
  z-index: 1001;
}

.sticky-report-button.docked:hover {
  transform: translateY(-3px) scale(1.05);
}

.sticky-report-button.docked::after {
  opacity: 0.8;
  filter: blur(5px);
}

@media (max-width: 768px) {
  .sticky-report-button {
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    min-width: 160px;
    transform: scale(0.85);
    transform-origin: bottom right;
  }
  
  .sticky-report-button.visible {
    transform: scale(0.85) translateY(0);
  }
  
  .sticky-report-button.docked {
    transform: scale(0.95);
    transform-origin: center center;
  }
  
  .sticky-report-button.docked:hover {
    transform: translateY(-3px) scale(0.95);
  }
}
