/* Unique Beauty CSS - High Performance & Beautiful Design */

/* ========================================
   PERFORMANCE-FIRST BEAUTIFUL DESIGN
   ======================================== */

/* 1. OPTIMIZED GRADIENTS (No performance impact) */
.gradient-accent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border-light {
  position: relative;
  background: #0f172a;
  border: 2px solid transparent;
  background-image: linear-gradient(#0f172a, #0f172a),
                    linear-gradient(135deg, #38bdf8, #8b5cf6);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* 2. OPTIMIZED SHADOWS (GPU accelerated) */
.shadow-glow {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
  transition: box-shadow 0.3s ease;
}

.shadow-glow:hover {
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
}

.shadow-elegant {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.shadow-neon {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* 3. SMOOTH HOVER EFFECTS (Transform only for FPS) */
.hover-scale {
  transition: transform 0.2s ease;
  will-change: auto;
}

.hover-scale:hover {
  transform: scale(1.03) translateZ(0);
  will-change: transform;
}

.hover-lift-smooth {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift-smooth:hover {
  transform: translateY(-4px) translateZ(0);
}

/* 4. OPTIMIZED ANIMATIONS (60 FPS guaranteed) */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-effect {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.05), 
    transparent);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

/* 5. BEAUTIFUL CARDS (No heavy effects) */
.card-premium {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
}

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

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

/* 6. ACCENT DECORATIONS */
.corner-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea, transparent);
  opacity: 0.3;
}

.corner-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(-45deg, #f093fb, transparent);
  opacity: 0.3;
}

/* 7. OPTIMIZED GLASS EFFECT (Light blur only) */
.glass-light {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 8. BUTTON ENHANCEMENTS */
.btn-beautiful {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.btn-beautiful::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-beautiful:hover::after {
  width: 300px;
  height: 300px;
}

/* 9. TEXT EFFECTS */
.text-shadow-soft {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.text-glow {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* 10. DECORATIVE ELEMENTS */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(56, 189, 248, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.5;
  pointer-events: none;
}

/* 11. SMOOTH TRANSITIONS */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 12. UNIQUE HOVER STATES */
.hover-gradient-shift {
  background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
  background-size: 200% 200%;
  transition: background-position 0.3s ease;
}

.hover-gradient-shift:hover {
  background-position: 100% 100%;
}

/* 13. BORDER ANIMATIONS */
.border-gradient-animate {
  position: relative;
}

.border-gradient-animate::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: gradient-rotate 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.border-gradient-animate:hover::before {
  opacity: 1;
}

@keyframes gradient-rotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 14. MODERN INPUT STYLES */
.input-beautiful {
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.input-beautiful:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

/* 15. CARD HOVER EFFECTS */
.card-hover-beautiful {
  transition: all 0.3s ease;
  transform: translateZ(0);
}

.card-hover-beautiful:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
}

/* 16. SUBTLE ANIMATIONS */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

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

/* 17. PERFORMANCE-OPTIMIZED BACKGROUNDS */
.bg-mesh-gradient {
  background-color: #0f172a;
  background-image: 
    radial-gradient(at 20% 30%, rgba(120, 119, 198, 0.1) 0, transparent 50%),
    radial-gradient(at 80% 70%, rgba(255, 119, 198, 0.1) 0, transparent 50%),
    radial-gradient(at 40% 50%, rgba(56, 189, 248, 0.05) 0, transparent 50%);
}

/* 18. UNIQUE SECTION DIVIDERS */
.divider-gradient {
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, transparent);
  margin: 2rem 0;
  opacity: 0.5;
}

/* 19. ICON ENHANCEMENTS */
.icon-glow {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
  transition: filter 0.3s ease;
}

.icon-glow:hover {
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.8));
}

/* 20. RESPONSIVE OPTIMIZATIONS */
@media (max-width: 768px) {
  /* Disable heavy effects on mobile */
  .shimmer-effect {
    animation: none;
  }
  
  .glass-light {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(30, 41, 59, 0.95);
  }
  
  .float-subtle {
    animation: none;
  }
}

/* 21. SCROLL ANIMATIONS (Intersection Observer) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 22. PREMIUM FEEL */
.premium-border {
  border: 1px solid;
  border-image: linear-gradient(135deg, #667eea, #764ba2, #f093fb) 1;
}

/* 23. SMOOTH SCROLLBAR */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #667eea, #764ba2);
  border-radius: 10px;
  border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #764ba2, #f093fb);
}

/* 24. SELECTION COLORS */
::selection {
  background: rgba(102, 126, 234, 0.3);
  color: #ffffff;
}

/* 25. FOCUS STATES */
*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* 26. PERFORMANCE HINTS */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: auto;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 27. UNIQUE BADGE STYLES */
.badge-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* 28. MODERN TOOLTIPS */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: tooltip-appear 0.3s ease;
}

@keyframes tooltip-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
