/* =====================================================================
   styles.css — Converted 1:1 from src/index.css (custom, non-Tailwind rules)
   ===================================================================== */

body {
  font-family: "Tajawal", "Inter", ui-sans-serif, system-ui, sans-serif;
  background-color: #06041a;
  color: #f8fafc;
}

/* RTL Helpers & Smooth Transitions */
.rtl-grid {
  direction: rtl;
}

/* Custom lux gold styling */
.gold-glow {
  box-shadow: 0 4px 20px -2px rgba(212, 175, 55, 0.15);
}

.gold-glow-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.gold-glow-hover:hover {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
  transform: translateY(-4px);
}

.gold-gradient {
  background: linear-gradient(135deg, #FFF176 0%, #D4AF37 50%, #AA7C11 100%);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Extra premium animations for a hyper-realistic interactive experience */
@keyframes shimmer {
  0% {
    transform: translate3d(-150%, 0, 0) skewX(-25deg);
  }
  100% {
    transform: translate3d(150%, 0, 0) skewX(-25deg);
  }
}

@keyframes slow-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.03) translate3d(0, 0, 0);
  }
}

@keyframes gold-radial-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  }
  50% {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
  }
}

.animate-shimmer {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.animate-shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translate3d(-150%, 0, 0) skewX(-25deg);
  pointer-events: none;
  will-change: transform;
}
.animate-shimmer:hover::after {
  animation: shimmer 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Continuous smooth slow shimmer for primary actions */
.animate-shimmer-continuous::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2.5s infinite ease-in-out;
  pointer-events: none;
  will-change: transform;
}

.gold-pulse-glow {
  animation: gold-radial-glow 3s infinite ease-in-out;
  transform: translate3d(0, 0, 0);
}

.ambient-glow-slow {
  animation: slow-pulse 4s infinite ease-in-out;
  transform: translate3d(0, 0, 0);
}

@keyframes sparkle-rise {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(-50%, calc(-50% - 85px), 0) scale(1.5) rotate(140deg);
    opacity: 0;
  }
}

.animate-sparkle-rise {
  animation: sparkle-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* Hide input[type="number"] spinners globally for a cleaner, polished custom input experience */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
