/* =========================================================================
   CTA ROTATOR - LIKE • SHARE • SUBSCRIBE
   ========================================================================= */

.cta-wrapper {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Let clicks pass through */
  z-index: 50;
}

body.view-cta .cta-wrapper {
  display: flex !important;
}

/* Base Stage and Scaler */
.cta-stage-scaler {
  position: relative;
  z-index: 2;
  transform-origin: center center;
  will-change: transform;
}

.cta-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrappers */
.cta-position-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-motion-wrapper,
.cta-rotation-wrapper,
.cta-action-wrapper,
.cta-content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

/* Base Card Design */
.cta-card-inner {
  display: flex;
  align-items: center;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px 12px 16px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  gap: 16px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  backdrop-filter: blur(10px);
}

.cta-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.cta-card-icon-svg {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-card-icon-svg svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.cta-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.cta-card-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-card-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* Theme: Cyberpunk */
.cta-theme-cyberpunk .cta-card-inner {
  background: rgba(10, 5, 25, 0.85);
  border: 2px solid #0ff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #f0f, 0 0 20px rgba(0, 255, 255, 0.3);
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
}
.cta-theme-cyberpunk .cta-icon-box {
  background: #0ff;
  color: #000;
  border-radius: 0;
}
.cta-theme-cyberpunk .cta-card-title { color: #fff; }
.cta-theme-cyberpunk .cta-card-subtitle { color: #f0f; }

/* Theme: Minimalist */
.cta-theme-minimalist .cta-card-inner {
  background: #ffffff;
  border: none;
  border-radius: 8px;
  color: #111;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-family: 'Inter', sans-serif;
}
.cta-theme-minimalist .cta-icon-box {
  background: #f0f0f0;
  color: #111;
}
.cta-theme-minimalist .cta-card-subtitle { color: #666; }

/* Theme: Esports */
.cta-theme-esports .cta-card-inner {
  background: linear-gradient(135deg, #1e1e24 0%, #0a0a0c 100%);
  border: 2px solid #ff4655;
  border-radius: 4px;
  transform: skewX(-10deg);
  font-family: 'Rajdhani', sans-serif;
  padding: 10px 30px;
}
.cta-theme-esports .cta-card-inner > * {
  transform: skewX(10deg);
}
.cta-theme-esports .cta-icon-box {
  background: #ff4655;
  color: #fff;
  border-radius: 4px;
}
.cta-theme-esports .cta-card-title { font-weight: 700; font-size: 22px; }

/* Theme: Retro 8-Bit */
.cta-theme-retro .cta-card-inner {
  background: #000;
  border: 4px solid #fff;
  border-radius: 0;
  font-family: 'Press Start 2P', monospace;
  box-shadow: 8px 8px 0 #ff00ff;
  padding: 16px 24px;
}
.cta-theme-retro .cta-icon-box {
  background: transparent;
  border: 2px solid #0ff;
  border-radius: 0;
  color: #0ff;
}
.cta-theme-retro .cta-card-title { font-size: 16px; color: #ff00ff; }
.cta-theme-retro .cta-card-subtitle { font-size: 10px; color: #0ff; margin-top: 8px; }

/* Theme: Glass Pill */
.cta-theme-glass .cta-card-inner {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(15, 23, 42, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
}

@supports not (backdrop-filter: blur(20px)) {
  .cta-theme-glass .cta-card-inner {
    background: rgba(15, 23, 42, 0.85);
  }
}

.cta-theme-glass .cta-icon-box {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.cta-theme-glass .cta-card-title {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  font-weight: 800;
}

.cta-theme-glass .cta-card-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Theme: Red Alert */
.cta-theme-val .cta-card-inner {
  background: #0f1923;
  border: 1px solid #ff4655;
  border-radius: 0;
  border-left: 6px solid #ff4655;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
}
.cta-theme-val .cta-icon-box {
  background: transparent;
  color: #ff4655;
  border-radius: 0;
}
.cta-theme-val .cta-card-title { font-weight: 700; letter-spacing: 1px; }

/* Theme: Golden Luxe */
.cta-theme-gold .cta-card-inner {
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  border: 1px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
  font-family: 'Montserrat', sans-serif;
}
.cta-theme-gold .cta-icon-box {
  background: linear-gradient(135deg, #d4af37, #aa7c11);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}
.cta-theme-gold .cta-card-title { color: #d4af37; }


/* =========================================================================
   Action Animations
   ========================================================================= */

/* LIKE: Thumb pop/bounce */
@keyframes ctaLikePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3) rotate(-10deg); }
  60% { transform: scale(0.9) rotate(5deg); }
  80% { transform: scale(1.1) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.cta-anim-like .cta-icon-box {
  animation: ctaLikePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* SHARE: Pulse/spread */
@keyframes ctaSharePulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(255,255,255,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.cta-anim-share .cta-icon-box {
  animation: ctaSharePulse 0.8s ease-out forwards;
}

/* SUBSCRIBE: Button press / bell */
@keyframes ctaSubPress {
  0% { transform: scale(1); }
  30% { transform: scale(0.85); }
  50% { transform: scale(1.1); }
  70% { transform: rotate(15deg); }
  85% { transform: rotate(-15deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.cta-anim-subscribe .cta-icon-box {
  animation: ctaSubPress 0.7s ease-in-out forwards;
}
