/* ============================================================
   LOUISVILLE GAMING — lg-animations.css
   Animations, keyframes, scroll effects
   ============================================================ */

/* ── Keyframes ── */
@keyframes lg-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes lg-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lg-fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes lg-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lg-scrollline {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

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

@keyframes lg-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,229,255,0.2); }
  50%       { box-shadow: 0 0 40px rgba(0,229,255,0.5); }
}

@keyframes lg-orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes lg-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes lg-scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes lg-type-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes lg-counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll-triggered base state ── */
.lg-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.lg-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.lg-reveal-left.lg-revealed {
  opacity: 1;
  transform: translateX(0);
}

.lg-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.lg-reveal-right.lg-revealed {
  opacity: 1;
  transform: translateX(0);
}

.lg-reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.lg-reveal-scale.lg-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays for child elements */
.lg-stagger > *:nth-child(1) { transition-delay: 0ms; }
.lg-stagger > *:nth-child(2) { transition-delay: 80ms; }
.lg-stagger > *:nth-child(3) { transition-delay: 160ms; }
.lg-stagger > *:nth-child(4) { transition-delay: 240ms; }
.lg-stagger > *:nth-child(5) { transition-delay: 320ms; }
.lg-stagger > *:nth-child(6) { transition-delay: 400ms; }

/* ── Active utility classes ── */
.lg-float-anim {
  animation: lg-float 4s ease-in-out infinite;
}

.lg-glow-anim {
  animation: lg-glow-pulse 2.5s ease-in-out infinite;
}

.lg-shimmer-text {
  background: linear-gradient(90deg,
    var(--lg-text-primary) 0%,
    var(--lg-accent-cyan) 30%,
    var(--lg-accent-violet) 50%,
    var(--lg-accent-cyan) 70%,
    var(--lg-text-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: lg-shimmer 4s linear infinite;
}

.lg-animated-gradient-bg {
  background: linear-gradient(270deg, #080c12, #0d1422, #111827, #0a1020);
  background-size: 400% 400%;
  animation: lg-gradient-shift 12s ease infinite;
}

/* ── Hero entrance animations ── */
.lg-hero-badge {
  animation: lg-fadeInDown 0.6s ease 0.2s both;
}

.lg-hero-title {
  animation: lg-fadeInUp 0.7s ease 0.4s both;
}

.lg-hero-subtitle {
  animation: lg-fadeInUp 0.7s ease 0.5s both;
}

.lg-hero-actions {
  animation: lg-fadeInUp 0.7s ease 0.6s both;
}

/* ── Hover effects ── */
.lg-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lg-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.lg-hover-glow:hover {
  box-shadow: 0 0 30px rgba(0,229,255,0.25);
}

.lg-hover-scale:hover {
  transform: scale(1.03);
}

/* ── Decorative orb ── */
.lg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.lg-orb-cyan {
  background: var(--lg-accent-cyan);
}

.lg-orb-violet {
  background: var(--lg-accent-violet);
}

.lg-orb-green {
  background: var(--lg-accent-green);
}

/* ── Tab transitions ── */
.lg-tab-panel {
  display: none;
  animation: lg-fadeIn 0.3s ease;
}

.lg-tab-panel.lg-active {
  display: block;
}

.lg-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 20px;
  color: var(--lg-text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--lg-transition);
  font-family: var(--lg-font-body);
}

.lg-tab-btn:hover {
  color: var(--lg-text-secondary);
}

.lg-tab-btn.lg-active {
  color: var(--lg-accent-cyan);
  border-bottom-color: var(--lg-accent-cyan);
}

.lg-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--lg-border);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* ── Loading skeleton ── */
.lg-skeleton {
  background: linear-gradient(90deg,
    var(--lg-bg-card) 25%,
    var(--lg-bg-card-hover) 50%,
    var(--lg-bg-card) 75%);
  background-size: 200% 100%;
  animation: lg-shimmer 1.5s infinite;
  border-radius: var(--lg-radius-sm);
}

/* ── Progress timeline ── */
.lg-timeline {
  position: relative;
  padding-left: 32px;
}

.lg-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--lg-border);
}

.lg-timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.lg-timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lg-accent-cyan);
  border: 2px solid var(--lg-bg-deep);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.2);
}

.lg-timeline-date {
  font-family: var(--lg-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--lg-accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.lg-timeline-title {
  font-family: var(--lg-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.lg-timeline-text {
  font-size: 0.875rem;
  color: var(--lg-text-secondary);
  line-height: 1.7;
}
