/* ============================================================
   Retro Gaming Central — rgc-animations.css
   ============================================================ */

/* ── Keyframes ── */
@keyframes rgc-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rgc-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rgc-slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes rgc-slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes rgc-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.06); }
}

@keyframes rgc-glow-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,229,255,0.3); }
  50%       { box-shadow: 0 0 30px rgba(0,229,255,0.7); }
}

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

@keyframes rgc-scanline {
  0%   { top: -5%; }
  100% { top: 105%; }
}

@keyframes rgc-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes rgc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes rgc-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes rgc-pixel-flicker {
  0%, 95%, 100% { opacity: 1; }
  96%, 98%      { opacity: 0.6; }
  97%           { opacity: 0.9; }
}

@keyframes rgc-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rgc-count-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Utility Animation Classes ── */
.rgc-anim-fadeInUp    { animation: rgc-fadeInUp 0.7s ease both; }
.rgc-anim-fadeIn      { animation: rgc-fadeIn 0.6s ease both; }
.rgc-anim-slideLeft   { animation: rgc-slideInLeft 0.7s ease both; }
.rgc-anim-slideRight  { animation: rgc-slideInRight 0.7s ease both; }
.rgc-anim-float       { animation: rgc-float 4s ease-in-out infinite; }
.rgc-anim-pulse       { animation: rgc-pulse 2.5s ease-in-out infinite; }
.rgc-anim-glow-pulse  { animation: rgc-glow-pulse 2s ease-in-out infinite; }
.rgc-anim-spin-slow   { animation: rgc-spin-slow 20s linear infinite; }
.rgc-anim-blink       { animation: rgc-blink 1.2s step-end infinite; }
.rgc-anim-flicker     { animation: rgc-pixel-flicker 6s ease infinite; }

/* Stagger delays */
.rgc-delay-1 { animation-delay: 0.1s; }
.rgc-delay-2 { animation-delay: 0.2s; }
.rgc-delay-3 { animation-delay: 0.3s; }
.rgc-delay-4 { animation-delay: 0.4s; }
.rgc-delay-5 { animation-delay: 0.5s; }
.rgc-delay-6 { animation-delay: 0.6s; }
.rgc-delay-7 { animation-delay: 0.7s; }
.rgc-delay-8 { animation-delay: 0.8s; }

/* ── Scroll-triggered ── */
.rgc-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rgc-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.rgc-reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rgc-reveal-left.visible { opacity: 1; transform: translateX(0); }

.rgc-reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rgc-reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Gradient Text Animation ── */
.rgc-anim-gradient-text {
  background: linear-gradient(270deg, var(--rgc-neon-cyan), var(--rgc-neon-purple), var(--rgc-neon-pink), var(--rgc-neon-cyan));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rgc-gradient-shift 5s ease infinite;
}

/* ── Scanline Effect ── */
.rgc-scanline-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 10;
}
.rgc-scanline-overlay::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to bottom, transparent, rgba(0,229,255,0.06), transparent);
  animation: rgc-scanline 4s linear infinite;
}

/* ── Pixel Border ── */
.rgc-pixel-border {
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.rgc-pixel-border::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--rgc-neon-cyan), var(--rgc-neon-purple), var(--rgc-neon-pink));
  border-radius: inherit;
  z-index: -1;
}

/* ── Ticker ── */
.rgc-ticker-wrap {
  overflow: hidden;
  background: rgba(0,229,255,0.06);
  border-top: 1px solid rgba(0,229,255,0.15);
  border-bottom: 1px solid rgba(0,229,255,0.15);
  padding: 10px 0;
}

.rgc-ticker-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: rgc-marquee 30s linear infinite;
}

.rgc-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  font-family: var(--rgc-font-pixel);
  font-size: 0.5rem;
  color: var(--rgc-neon-cyan);
  opacity: 0.7;
}

.rgc-ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rgc-neon-pink);
}

/* ── Hover Effects ── */
.rgc-hover-glow:hover {
  text-shadow: 0 0 14px currentColor;
  transition: text-shadow var(--rgc-transition);
}

.rgc-hover-lift:hover {
  transform: translateY(-4px);
  transition: transform var(--rgc-transition);
}

/* ── Loading Spinner ── */
.rgc-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--rgc-border);
  border-top-color: var(--rgc-neon-cyan);
  border-radius: 50%;
  animation: rgc-spin-slow 0.8s linear infinite;
}
