/* ==========================================================================
   SoPromote.com - Modern YouTube Growth & Video Promotion Platform
   Styles & Custom Animations
   ========================================================================== */

:root {
  --primary-red: #ff0033;
  --primary-red-hover: #e0002d;
  --primary-coral: #ff4757;
  --accent-purple: #6366f1;
  --accent-cyan: #06b6d4;
  --success-green: #10b981;
  --dark-bg: #090d16;
  --dark-card: #111827;
  --dark-card-border: rgba(255, 255, 255, 0.08);
  --light-bg: #f8fafc;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  color: #1e293b;
  background-color: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-panel-dark {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glow & Shimmer Effects */
.glow-red {
  box-shadow: 0 0 35px -5px rgba(255, 0, 51, 0.35);
}

.glow-subtle {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(30deg);
  animation: shimmer 4s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  20% { transform: translateX(100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Custom Range Slider */
.growth-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  transition: all 0.2s ease;
}

.growth-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff0033;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.growth-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(255, 0, 51, 0.65);
}

.growth-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff0033;
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.5);
  transition: transform 0.15s ease;
}

/* Live Pulse Animation */
.pulse-indicator {
  position: relative;
  display: inline-flex;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Mockup Display Frames */
.phone-mockup {
  border: 10px solid #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  background: #ffffff;
}

.desktop-mockup {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  background: #ffffff;
}

/* Tooltip & Popups */
.tooltip-box {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
}

.tooltip-trigger:hover .tooltip-box {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Tab active highlight line */
.tab-active {
  color: #ff0033 !important;
  border-bottom: 2px solid #ff0033 !important;
  background: rgba(255, 0, 51, 0.04);
}

/* Analytics Graph Path Animation */
.graph-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawGraph 2s ease forwards;
}

@keyframes drawGraph {
  to {
    stroke-dashoffset: 0;
  }
}

/* Live Floating Notification */
#social-proof-toast {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  opacity: 0;
}

#social-proof-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Custom Gradient Texts */
.text-gradient-red {
  background: linear-gradient(135deg, #ff0033 0%, #ff4b2b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Currency badge animation */
.currency-btn.active {
  background-color: #ff0033;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.35);
}

/* Sticky conversion bar on mobile */
.mobile-sticky-cta {
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
}

/* Print / utility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
