/* AUTO-PREVIEW DEMO SYSTEM (DECOUPLED) */

/* Virtual Floating Cursor Pointer */
#demo-virtual-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  z-index: 999999;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  transform: translate3d(-100px, -100px, 0);
  opacity: 0;
}

#demo-virtual-cursor .cursor-icon {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.75));
  transform: rotate(-15deg);
}

/* Click Ripple Ring Animation */
.demo-click-ripple {
  position: fixed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ff2a5f;
  background: rgba(255, 42, 95, 0.25);
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 1;
  animation: demoRipple 0.5s ease-out forwards;
}

@keyframes demoRipple {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Feature Explainer Tooltip Bubble */
.demo-tooltip-bubble {
  position: fixed;
  z-index: 999995;
  background: #000000 !important;
  border: 1.5px solid #ff2a5f;
  color: #ffffff !important;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 210px;
  font-family: var(--rl-font), 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 42, 95, 0.5);
  pointer-events: none;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Top Demo Banner Bar & Skip Button (Hidden) */
#demo-control-bar {
  display: none !important;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 999990;
  background: rgba(12, 12, 18, 0.92);
  border: 1.5px solid rgba(255, 42, 95, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 42, 95, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  letter-spacing: 1px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#demo-control-bar.active {
  transform: translateX(-50%) translateY(0);
}

.demo-step-badge {
  background: linear-gradient(135deg, #ff2a5f, #ff6b00);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.demo-step-text {
  font-size: 0.95rem;
  color: #f1f5f9;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.5px;
}

.btn-skip-demo {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 12px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-skip-demo:hover {
  background: #ff2a5f;
  border-color: #ff2a5f;
  color: #ffffff;
}

/* Landing Page Small Watch Demo Trigger Button (Same size as LIVE PREVIEW) */
.btn-watch-demo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-family: var(--rl-font), 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 10px;
  transition: all 0.2s ease;
}

.btn-watch-demo-trigger:hover {
  background: transparent !important;
  color: #ffffff !important;
  border: none !important;
  opacity: 0.85;
}
