/* ═══════════════════════════════════════════════════════
   Astra Child — Floating Star Button (left-bottom)
   ═══════════════════════════════════════════════════════ */

:root {
  --fsb-size: 64px;
  --fsb-star: #FFD700;
  --fsb-glow: rgba(184, 134, 11, 0.45);
}

.floating-star-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  width: var(--fsb-size);
  height: var(--fsb-size);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;

  /* Brand gradient shimmer */
  background: linear-gradient(
    135deg,
    var(--med-primary, #2c5aa0) 0%,
    #1a1a4e 25%,
    var(--med-primary, #2c5aa0) 50%,
    #4a90d9 75%,
    var(--med-primary, #2c5aa0) 100%
  );
  background-size: 300% 300%;
  animation: fsb-shimmer 4s ease infinite;
}

.floating-star-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.floating-star-btn:active {
  transform: scale(0.96);
}

/* Gold star SVG */
.floating-star-btn svg {
  width: calc(var(--fsb-size) * 0.45);
  height: calc(var(--fsb-size) * 0.45);
  fill: var(--fsb-star);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}

.floating-star-btn:hover svg {
  transform: rotate(72deg) scale(1.15);
}

/* Shimmer animation */
@keyframes fsb-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse ring */
.floating-star-btn.fsb-pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--fsb-star);
  opacity: 0;
  animation: fsb-pulse-ring 2.4s ease-out infinite;
  pointer-events: none;
}

.floating-star-btn.fsb-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--fsb-glow);
  animation: fsb-pulse-shadow 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes fsb-pulse-ring {
  0%   { transform: scale(0.85); opacity: 0.7; }
  60%  { opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@keyframes fsb-pulse-shadow {
  0%   { box-shadow: 0 0 0 0 var(--fsb-glow); }
  70%  { box-shadow: 0 0 0 18px rgba(184,134,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(184,134,11,0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-star-btn {
    animation: none;
    background: var(--med-primary, #2c5aa0);
  }
  .floating-star-btn.fsb-pulse::before,
  .floating-star-btn.fsb-pulse::after {
    animation: none;
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .floating-star-btn {
    bottom: 16px;
    left: 16px;
  }
}
