/* ========================================
   PREMIUM MODERN DESIGN SYSTEM
   Ultra-luxury aesthetics with advanced effects
   ======================================== */

/* ===== 1. PREMIUM GLASS MORPHISM ===== */
.premium-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.premium-glass-bright {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 12px 40px 0 rgba(0, 0, 0, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* ===== 2. LUXURY GRADIENTS ===== */
.gradient-luxury-purple {
  background: linear-gradient(135deg, 
    #a855f7 0%, 
    #8b5cf6 25%, 
    #7c3aed 50%, 
    #6d28d9 75%, 
    #5b21b6 100%
  );
}

.gradient-luxury-blue {
  background: linear-gradient(135deg, 
    #60a5fa 0%, 
    #3b82f6 25%, 
    #2563eb 50%, 
    #1d4ed8 75%, 
    #1e40af 100%
  );
}

.gradient-luxury-cyan {
  background: linear-gradient(135deg, 
    #22d3ee 0%, 
    #06b6d4 25%, 
    #0891b2 50%, 
    #0e7490 75%, 
    #155e75 100%
  );
}

.gradient-luxury-orange {
  background: linear-gradient(135deg, 
    #fb923c 0%, 
    #f97316 25%, 
    #ea580c 50%, 
    #dc2626 75%, 
    #b91c1c 100%
  );
}

/* Animated gradient backgrounds */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-animated {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

/* ===== 3. ADVANCED SHADOWS ===== */
.shadow-premium {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.shadow-premium-lg {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.2),
    0 10px 10px -5px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.shadow-premium-xl {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.35),
    0 12px 20px -8px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.08);
}

/* Glow effects */
.glow-purple {
  box-shadow: 
    0 0 20px rgba(139, 92, 246, 0.3),
    0 0 40px rgba(139, 92, 246, 0.2),
    0 0 60px rgba(139, 92, 246, 0.1);
}

.glow-blue {
  box-shadow: 
    0 0 20px rgba(59, 130, 246, 0.3),
    0 0 40px rgba(59, 130, 246, 0.2),
    0 0 60px rgba(59, 130, 246, 0.1);
}

.glow-cyan {
  box-shadow: 
    0 0 20px rgba(34, 211, 238, 0.3),
    0 0 40px rgba(34, 211, 238, 0.2),
    0 0 60px rgba(34, 211, 238, 0.1);
}

.glow-orange {
  box-shadow: 
    0 0 20px rgba(249, 115, 22, 0.3),
    0 0 40px rgba(249, 115, 22, 0.2),
    0 0 60px rgba(249, 115, 22, 0.1);
}

/* ===== 4. PREMIUM HOVER EFFECTS ===== */
.premium-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.premium-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.premium-hover:hover::before {
  left: 100%;
}

.premium-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 12px 20px -8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.1);
}

/* ===== 5. LUXURY TYPOGRAPHY ===== */
.text-premium {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.text-premium-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.text-shine {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.6) 40%,
    rgba(255, 255, 255, 0.3) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ===== 6. MODERN BORDERS ===== */
.border-premium {
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  position: relative;
}

.border-premium::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1)
  );
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.border-premium:hover::before {
  opacity: 1;
}

/* ===== 7. PREMIUM CARDS ===== */
.card-premium {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-premium::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.card-premium:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 30px 60px -12px rgba(0, 0, 0, 0.5),
    0 15px 25px -8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 2px 0 0 rgba(255, 255, 255, 0.1);
}

/* ===== 8. LUXURY BUTTONS ===== */
.btn-premium {
  position: relative;
  padding: 1.25rem 2.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 
    0 10px 25px -5px rgba(139, 92, 246, 0.5),
    0 5px 10px -5px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 20px 40px -5px rgba(139, 92, 246, 0.6),
    0 10px 20px -5px rgba(139, 92, 246, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

.btn-premium:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-premium span {
  position: relative;
  z-index: 1;
}

/* ===== 9. PREMIUM ANIMATIONS ===== */
@keyframes float-premium {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

.animate-float-premium {
  animation: float-premium 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 0 0 20px currentColor;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 40px currentColor;
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ===== 10. LUXURY BACKGROUNDS ===== */
.bg-premium-dark {
  background: 
    radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
    #0f172a;
}

.bg-premium-gradient {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 1) 0%,
    rgba(30, 41, 59, 0.95) 25%,
    rgba(15, 23, 42, 1) 50%,
    rgba(30, 41, 59, 0.95) 75%,
    rgba(15, 23, 42, 1) 100%
  );
}

/* ===== 11. PREMIUM OVERLAYS ===== */
.overlay-premium {
  position: relative;
}

.overlay-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* ===== 12. LUXURY SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
}

/* ===== 13. PREMIUM SELECTION ===== */
::selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.3);
  color: white;
}

/* ===== 14. LUXURY FOCUS STATES ===== */
*:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.8);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===== 15. PREMIUM GRID PATTERNS ===== */
.grid-premium {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ===== 16. LUXURY BADGE ===== */
.badge-premium {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge-premium:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* ===== 17. PREMIUM DIVIDERS ===== */
.divider-premium {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 3rem 0;
}

.divider-premium-thick {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.3),
    rgba(59, 130, 246, 0.3),
    transparent
  );
  margin: 4rem 0;
}

/* ===== 18. RESPONSIVE PREMIUM ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .premium-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }
  
  .card-premium:hover {
    transform: translateY(-6px);
  }
  
  .btn-premium:hover {
    transform: translateY(-2px) scale(1.01);
  }
  
  .text-premium-xl {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}

/* ===== 19. PREMIUM ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .premium-hover,
  .card-premium,
  .btn-premium,
  .animate-float-premium,
  .animate-pulse-glow,
  .animate-shimmer {
    animation: none !important;
    transition: none !important;
  }
  
  .premium-hover:hover,
  .card-premium:hover,
  .btn-premium:hover {
    transform: none !important;
  }
}

/* ===== 20. ULTRA-PREMIUM SPECIAL EFFECTS ===== */
.effect-holographic {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1) 0%,
    rgba(59, 130, 246, 0.1) 25%,
    rgba(34, 211, 238, 0.1) 50%,
    rgba(59, 130, 246, 0.1) 75%,
    rgba(139, 92, 246, 0.1) 100%
  );
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.effect-neon {
  text-shadow: 
    0 0 10px currentColor,
    0 0 20px currentColor,
    0 0 30px currentColor;
}

.effect-metallic {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 0 rgba(0, 0, 0, 0.2);
}
