/* PocketHustle Premium Design System */
/* World-class modern enhancements with orange/black theme */

/* Enhanced Color Palette */
:root {
  /* Sophisticated Orange Gradient Variations */
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa552 100%);
  --gradient-secondary: linear-gradient(135deg, #ff4500 0%, #ff6b35 50%, #ff8c42 100%);
  --gradient-accent: linear-gradient(135deg, #ffa552 0%, #ffb366 50%, #ffc080 100%);
  --gradient-dark: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  
  /* Glassmorphism Colors */
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 107, 53, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  /* Noise Texture */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  
  /* Enhanced Shadows with Color */
  --shadow-glass: 0 8px 32px rgba(255, 107, 53, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 60px rgba(255, 107, 53, 0.4), 0 0 120px rgba(255, 107, 53, 0.2);
  --shadow-3d: 0 20px 40px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.3);
  
  /* Spring Animations */
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Premium Keyframe Animations */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes border-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float-3d {
  0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
  25% { transform: translateY(-10px) rotateX(2deg) rotateY(2deg); }
  75% { transform: translateY(-5px) rotateX(-1deg) rotateY(-1deg); }
}

@keyframes glow-pulse-slow {
  0%, 100% { box-shadow: var(--shadow), 0 0 20px rgba(255, 107, 53, 0.3); }
  50% { box-shadow: var(--shadow-lg), var(--shadow-glow); }
}

@keyframes slide-in-stagger {
  from { 
    opacity: 0; 
    transform: translateY(30px) scale(0.95);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer-slow {
  0% { background-position: -2000px 0; }
  100% { background-position: 2000px 0; }
}

@keyframes noise-flicker {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.06; }
}

/* Premium Base Enhancements */
body {
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--noise);
  pointer-events: none;
  z-index: -1;
  animation: noise-flicker 8s ease-in-out infinite;
}

/* Glassmorphism Components */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 107, 53, 0.5), 
    transparent
  );
  animation: shimmer-slow 3s linear infinite;
}

/* Animated Gradient Borders */
.gradient-border {
  position: relative;
  border: 2px solid transparent;
  background: 
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--brand), var(--brand2), var(--brand3)) border-box;
  border-radius: var(--radius);
}

/* Premium Card Variations */
.card-premium {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-spring);
}

.card-premium:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
}

.card-premium .card-media {
  position: relative;
  overflow: hidden;
}

.card-premium .card-media::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.card-premium:hover .card-media::before {
  animation: shimmer-slow 0.6s ease-out;
  opacity: 1;
}

/* Glass Button Enhancement */
.btn.glass {
  background: rgba(255, 107, 53, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.btn.glass::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.3), transparent);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.btn.glass:hover::before {
  width: 300px;
  height: 300px;
}

/* Premium Navigation */
.nav-link.premium {
  position: relative;
  overflow: hidden;
}

.nav-link.premium::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s var(--ease-spring), left 0.3s var(--ease-spring);
  transform: translateX(-50%);
}

.nav-link.premium:hover::after,
.nav-link.premium.is-active::after {
  width: 80%;
}

/* 3D Hero Section */
.hero-3d {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.hero-3d .hero-media {
  transform: translateZ(50px);
  transition: transform 0.6s var(--ease-spring);
}

.hero-3d:hover .hero-media {
  transform: translateZ(100px) rotateX(2deg);
}

/* Premium KPI Cards */
.kpi-premium {
  position: relative;
  overflow: hidden;
}

.kpi-premium::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.kpi-premium:hover::before {
  opacity: 0.3;
}

.kpi-premium .kpi-value {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s var(--ease-spring);
}

.kpi-premium:hover .kpi-value {
  transform: scale(1.1);
}

/* Interactive Feature Cards */
.feature-interactive {
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
}

.feature-interactive .feature-icon {
  transition: transform 0.6s var(--ease-elastic);
}

.feature-interactive:hover .feature-icon {
  transform: scale(1.1) rotateZ(5deg);
}

.feature-interactive::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  filter: blur(20px);
}

.feature-interactive:hover::before {
  opacity: 0.4;
}

/* Premium Progress Bars */
.progress-premium {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.progress-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--noise);
  opacity: 0.1;
  pointer-events: none;
}

.progress-premium .progress-fill {
  position: relative;
  background: var(--gradient-primary);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.progress-premium .progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
  animation: shimmer-slow 2s linear infinite;
}

/* Floating Elements */
.float-element {
  animation: float-3d 6s ease-in-out infinite;
}

.float-element:nth-child(odd) {
  animation-delay: -3s;
}

/* Glow on Hover */
.glow-hover {
  transition: all 0.3s var(--ease-spring);
}

.glow-hover:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Staggered Animation Classes */
.stagger-item {
  opacity: 1;
  animation: slide-in-stagger 0.6s var(--ease-spring) both;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(7) { animation-delay: 0.35s; }
.stagger-item:nth-child(8) { animation-delay: 0.4s; }
.stagger-item:nth-child(9) { animation-delay: 0.45s; }
.stagger-item:nth-child(10) { animation-delay: 0.5s; }

/* Premium Toast Notifications */
.toast-premium {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.toast-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer-slow 2s ease-out;
}

/* Interactive Option Cards */
.option-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--ease-spring);
}

.option-premium::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.2), transparent);
  transition: width 0.6s, height 0.6s;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.option-premium:hover::before {
  width: 400px;
  height: 400px;
}

/* Premium Loading Spinner */
.loading-premium {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 107, 53, 0.1);
  border-top: 3px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  position: relative;
}

.loading-premium::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 3px solid transparent;
  border-top: 3px solid var(--brand2);
  border-radius: 50%;
  animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite reverse;
}

/* Scroll-triggered Animations */
.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s var(--ease-spring);
}

.scroll-animate.animate-in {
  opacity: 0;
  transform: translateY(50px);
}

.scroll-animate.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Hover States */
.hover-lift-premium {
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
}

.hover-lift-premium:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-3d);
}

/* Interactive Text Gradients */
.text-gradient-premium {
  background: var(--gradient-primary);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease-in-out infinite;
}

/* Premium Form Elements */
.input-premium,
.select-premium {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-spring);
}

.input-premium:focus,
.select-premium:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2), var(--shadow-glow);
  transform: translateY(-2px);
}

/* Responsive Premium Adjustments */
@media (max-width: 768px) {
  .glass-panel {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .card-premium:hover {
    transform: translateY(-5px);
  }
  
  .feature-interactive:hover .feature-icon {
    transform: scale(1.05);
  }
}

/* Accessibility - Respect Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  
  .float-element {
    animation: none;
  }
  
  .text-gradient-premium {
    animation: none;
  }
  
  .loading-premium::after {
    animation: none;
  }
}
