/* ReactBits Effects - Premium CSS Styles */
/* All 20 components for handcraft lovers */

/* ============================================
   TEXT ANIMATIONS
   ============================================ */

/* 1. Shiny Text - Hand-polished metal */
@keyframes shinySweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.shiny-text {
  display: inline-block;
  font-weight: 700;
}

/* 2. Gradient Text - Organic depth */
@keyframes gradientFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.gradient-text {
  display: inline-block;
}

/* 3. Scroll Reveal - Unwrapping gift */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 4. Blur Text - Soft artistic */
.blur-text {
  transition: filter 1.5s ease, opacity 1.5s ease;
}

/* 5. Text Type - Typewriter */
.text-type {
  border-right: 2px solid currentColor;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { border-color: currentColor; }
  51%, 100% { border-color: transparent; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* 6. Glare Hover - Premium polished */
.glare-hover {
  position: relative;
  overflow: hidden;
}

.glare-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    var(--glare-angle, 45deg),
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(var(--glare-angle, 45deg));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glare-hover:hover::before {
  opacity: 1;
  animation: glareSweep 0.6s ease;
}

@keyframes glareSweep {
  0% { transform: translateX(-100%) translateY(-100%) rotate(var(--glare-angle, 45deg)); }
  100% { transform: translateX(100%) translateY(100%) rotate(var(--glare-angle, 45deg)); }
}

/* 7. Metallic Paint - Hand-brushed metal */
@keyframes metallicShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.metallic-paint {
  position: relative;
  overflow: hidden;
}

/* 8. Sticker Peel - Handcrafted label */
.sticker-peel {
  position: relative;
  transition: transform 0.3s ease;
}

.sticker-peel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

.sticker-peel.peeling::before {
  transform: translateY(0);
}

.sticker-peel.peeling {
  transform: translateY(-2px) rotate(-1deg);
}

/* 9. Electric Border - Subtle energy */
.electric-border {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.electric-spark {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #6BAED6, #9ECAE1, #3182BD, #6BAED6);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: electricFlow 3s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

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

/* 10. Gradual Blur - Hand-blown glass */
.gradual-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ============================================
   COMPONENTS
   ============================================ */

/* 11. Reflective Card - Polished wood/metal */
.reflective-card {
  position: relative;
  overflow: hidden;
}

.reflective-card::after {
  content: '';
  position: absolute;
  top: var(--reflection-y, 50%);
  left: var(--reflection-x, 50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reflective-card:hover::after {
  opacity: 1;
}

/* 12. Fluid Glass - Hand-blown movement */
.fluid-glass {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.fluid-wave {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(107, 174, 214, 0.1) 0%,
    transparent 50%
  );
  animation: fluidMove 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes fluidMove {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30%, 30%) scale(1.2); }
  66% { transform: translate(-30%, -30%) scale(0.8); }
}

/* 13. Spotlight Card - Gallery spotlight */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  top: var(--spotlight-y, 50%);
  left: var(--spotlight-x, 50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* 14. Tilted Card - 3D depth */
.tilted-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* 15. Circular Gallery - Organic arrangement */
.circular-gallery {
  position: relative;
  width: 100%;
  height: 100%;
}

.circular-item {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 16. Masonry - Curated gallery */
.masonry-item {
  opacity: 0;
  transform: translateY(20px);
  animation: masonryReveal 0.6s ease forwards;
}

@keyframes masonryReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 17. Bounce Cards - Playful organic */
@keyframes bounceIn {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.bounce-card {
  transition: transform 0.3s ease;
}

/* 18. Animated List - Hand-curated */
.animated-list > * {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   BACKGROUNDS
   ============================================ */

/* 19. Aurora - Organic flowing colors */
.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-effect {
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(158, 202, 225, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(107, 174, 214, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 20%, rgba(74, 95, 122, 0.2) 0%, transparent 50%);
  animation: auroraFlow 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auroraFlow {
  0%, 100% { 
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 0.6;
  }
  33% { 
    transform: translate(30px, -30px) rotate(120deg) scale(1.1);
    opacity: 0.8;
  }
  66% { 
    transform: translate(-30px, 30px) rotate(240deg) scale(0.9);
    opacity: 0.7;
  }
}

/* 20. Silk - Handwoven texture */
@keyframes silkWeave {
  0%, 100% { background-position: 0 0, 0 0, 0 0; }
  50% { background-position: 10px 10px, -10px -10px, 0 0; }
}

.silk-bg {
  position: relative;
}

/* Additional utility classes */
.premium-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.premium-card {
  transition: all 0.3s ease;
  will-change: transform;
}

/* Smooth transitions for all effects */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

