/* Premium Scuba Promotion Popup */
.scuba-popup {
  position: fixed;
  top: 0;
  right: -500px; /* Start off-screen to the right */
  bottom: 0;
  width: min(320px, 90vw);
  max-width: 90vw;
  z-index: 9999;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scuba-popup.show {
  right: 20px; /* Slide in and stay at the right */
  opacity: 1;
  pointer-events: all;
}

.scuba-popup-content {
  position: relative;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 20px;
  padding: 0;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 215, 0, 0.1),
    0 0 50px rgba(255, 215, 0, 0.15);
  overflow: hidden;
  transform: scale(0.9);
  transition: all 0.3s ease;
  animation: floating 6s ease-in-out infinite;
}

.scuba-popup.show .scuba-popup-content {
  transform: scale(1);
}

.scuba-popup-content:hover {
  transform: scale(1.02);
  box-shadow:
    0 35px 70px -12px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 215, 0, 0.2),
    0 0 80px rgba(255, 215, 0, 0.25);
}

/* Floating animation for premium feel */
@keyframes floating {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    box-shadow:
      0 25px 50px -12px rgba(0, 0, 0, 0.8),
      0 0 0 1px rgba(255, 215, 0, 0.1),
      0 0 50px rgba(255, 215, 0, 0.15);
  }
  25% {
    transform: translateY(-6px) rotate(0.3deg);
    box-shadow:
      0 30px 60px -12px rgba(0, 0, 0, 0.9),
      0 0 0 1px rgba(255, 215, 0, 0.15),
      0 0 60px rgba(255, 215, 0, 0.2);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
    box-shadow:
      0 35px 70px -12px rgba(0, 0, 0, 1.0),
      0 0 0 1px rgba(255, 215, 0, 0.2),
      0 0 70px rgba(255, 215, 0, 0.25);
  }
  75% {
    transform: translateY(-6px) rotate(-0.3deg);
    box-shadow:
      0 30px 60px -12px rgba(0, 0, 0, 0.9),
      0 0 0 1px rgba(255, 215, 0, 0.15),
      0 0 60px rgba(255, 215, 0, 0.2);
  }
}

/* Golden accent border */
.scuba-popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-primary) 25%,
    #ffffff 50%,
    var(--color-primary) 75%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.scuba-popup-image {
  width: 100%;
  height: auto;
  max-height: min(500px, 60vh);
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 20px 20px 0 0;
  background: transparent;
  display: block;
}

.scuba-popup-image:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Close button with premium styling */
.scuba-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.scuba-popup-close:hover {
  background: var(--color-primary);
  color: black;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Info section */
.scuba-popup-info {
  padding: 15px;
  color: white;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 0 0 20px 20px;
  text-align: center;
}

.scuba-popup-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scuba-popup-subtitle {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #ccc;
  margin: 0 0 12px 0;
  font-weight: 400;
}

.scuba-spotify-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(145deg, #1DB954, #1ed760);
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 25px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(29, 185, 84, 0.3);
}

.scuba-spotify-link:hover {
  background: linear-gradient(145deg, #1ed760, #1DB954);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 185, 84, 0.5);
  text-decoration: none;
  color: white;
}

/* Spotify icon */
.spotify-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Responsive design */
@media (max-width: 768px) {
  .scuba-popup {
    width: min(280px, 85vw);
    right: -400px;
  }

  .scuba-popup.show {
    right: 10px;
  }

  .scuba-popup-content {
    border-radius: 15px;
  }

  .scuba-popup-image {
    height: auto;
    max-height: min(400px, 50vh);
    border-radius: 15px 15px 0 0;
  }

  .scuba-popup-info {
    padding: 12px;
    border-radius: 0 0 15px 15px;
  }
}

/* Entrance animation delay for dramatic effect */
.scuba-popup.entrance-animation {
  animation: premiumEntrance 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes premiumEntrance {
  0% {
    right: -500px;
    opacity: 0;
  }
  70% {
    right: 15px;
    opacity: 0.9;
  }
  85% {
    opacity: 0.95;
  }
  95% {
    opacity: 0.98;
  }
  100% {
    right: 20px;
    opacity: 1;
  }
}