/* Purple Genie Theme Utilities */

/* Section Backgrounds */
.section-bg-dark {
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.section-bg-reverse {
  background: var(--gradient-reverse);
  position: relative;
  overflow: hidden;
}

/* Card Styles */
.card-purple {
  background: var(--gradient-card);
  border: var(--border-purple);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-purple:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--glow-hover);
  border-color: var(--purple-accent-new);
}

/* Text Styles */
.text-purple {
  color: var(--purple-text);
}

.text-purple-muted {
  color: var(--purple-text-muted);
}

.text-purple-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow {
  text-shadow: var(--glow-text);
}

/* Section Headers */
.section-heading {
  font-size: 2rem;
  color: var(--purple-text);
  text-shadow: var(--glow-text);
  position: relative;
  z-index: 1;
}

/* Magical Watermarks */
.watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.03;
  filter: blur(3px);
}

.watermark-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Z-index Management */
.z-content {
  position: relative;
  z-index: 1;
}

.z-background {
  position: relative;
  z-index: 0;
}

.z-top {
  position: relative;
  z-index: 10;
}

/* Animations - Performance optimized */
@media (prefers-reduced-motion: no-preference) {
  .float {
    animation: float 4s ease-in-out infinite;
  }

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

  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  @keyframes glow-pulse {
    0%, 100% {
      box-shadow: 0 10px 50px rgba(168, 85, 247, 0.5), 0 0 60px rgba(168, 85, 247, 0.3);
    }
    50% {
      box-shadow: 0 15px 60px rgba(168, 85, 247, 0.7), 0 0 80px rgba(168, 85, 247, 0.5);
    }
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Performance optimization hints */
.will-animate {
  will-change: transform, opacity;
}

.will-transform {
  will-change: transform;
}
