/* ============================================================
   FiveM Store — animations.css
   ============================================================ */

/* --- TYPEWRITER --- */
.typewriter-cursor::after {
  content: '|';
  animation: blink .7s infinite;
  color: #7c3aed;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* --- COUNTERS --- */
.counter-wrap { overflow: hidden; }

/* --- HOVER GLOW --- */
.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(124,58,237,.5), 0 0 40px rgba(124,58,237,.3);
}

/* --- PAGE LOADER --- */
#page-loader {
  position: fixed; inset: 0; z-index: 99999;
  background: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 20px;
  transition: opacity .5s;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-hex {
  width: 60px; height: 60px;
  background: none;
  animation: rotate-hex 1.5s linear infinite;
}
@keyframes rotate-hex { to { transform: rotate(360deg); } }

/* --- SCROLL REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- SKELETON LOADER --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(124,58,237,.08) 50%, var(--bg-card) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.skeleton-card { height: 320px; border-radius: 16px; }
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; margin-bottom: 12px; }

/* --- FLOAT ANIMATION --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* --- GRADIENT SHIFT --- */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.animated-gradient {
  background: linear-gradient(135deg, #7c3aed, #06b6d4, #a855f7, #7c3aed);
  background-size: 300% 300%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- NAV SCROLL EFFECT --- */
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
