/* ============================================================
   NATIONAL CASINO — animations.css
   Extra animations & effects
   ============================================================ */

/* ── Number counter animation ── */
.count-up {
  display: inline-block;
  animation: countPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes countPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Gold shimmer on text ── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold-light) 40%,
    var(--gold) 50%,
    var(--gold-light) 60%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ── Glow pulse ring ── */
.glow-ring {
  position: relative;
}
.glow-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255,215,0,0.4);
  animation: glowRingPulse 2.5s ease-in-out infinite;
}
@keyframes glowRingPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 0.9; transform: scale(1.03); }
}

/* ── Card flip entrance ── */
@keyframes cardFlipIn {
  from { transform: rotateY(-90deg) scale(0.8); opacity: 0; }
  to   { transform: rotateY(0deg) scale(1);    opacity: 1; }
}

/* ── Floating coins ── */
.coin-float {
  display: inline-block;
  animation: coinFloat 2s ease-in-out infinite;
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(10deg); }
}

/* ── Stagger reveal for lists ── */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger-item.visible { opacity: 1; transform: translateY(0); }

/* ── Loader overlay (initial page load) ── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #060305;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo { height: 52px; animation: loaderLogoPulse 1.4s ease-in-out infinite; }
@keyframes loaderLogoPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.97); }
  50%       { opacity: 1;   transform: scale(1.03); }
}

.loader-bar-wrap {
  width: 200px; height: 3px;
  background: rgba(255,215,0,0.15);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  animation: loaderProgress 1.8s ease-in-out infinite;
}
@keyframes loaderProgress {
  0%   { width: 0%;   margin-left: 0%; }
  50%  { width: 80%;  margin-left: 10%; }
  100% { width: 0%;   margin-left: 100%; }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,215,0,0.45);
  animation: loaderTextBlink 1.4s ease-in-out infinite;
}
@keyframes loaderTextBlink { 0%,100%{opacity:0.45} 50%{opacity:0.9} }

/* ── Notification toast ── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 14px 22px;
  border-radius: 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border-gold);
  color: var(--text-main);
  font-size: 0.88rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  z-index: 2000;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
}
.toast.show { transform: translateX(0); }
.toast-gold { border-color: rgba(255,215,0,0.5); }

/* ── Ripple on button click ── */
.ripple-effect {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,215,0,0.25);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Progress bar on scroll ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Back-to-top button ── */
#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #660000);
  border: 1px solid rgba(255,215,0,0.4);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  box-shadow: 0 6px 28px rgba(200,0,0,0.55);
  transform: translateY(-3px);
}
