/* ============================================================
   VPSchoolOfTrading — Animations & Polish
   ============================================================ */

/* ─── Page Transition ───────────────────────────────────────── */
body {
  animation: pageEnter 0.4s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Shimmer Loading Skeleton ──────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--black-3) 25%, var(--black-4) 50%, var(--black-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Glowing Border on hover ───────────────────────────────── */
.glow-hover {
  transition: box-shadow var(--transition);
}
.glow-hover:hover {
  box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(232,93,4,0.25);
}

/* ─── Pulse animation ───────────────────────────────────────── */
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* ─── Gold shimmer text ─────────────────────────────────────── */
.gold-shimmer {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light), var(--gold));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
}
@keyframes goldShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ─── Floating animation for cards ─────────────────────────── */
@keyframes floatUp {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

/* ─── Chart ticker-tape animation for hero background ────────── */
.ticker-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.03;
  pointer-events: none;
  font-family: 'Rajdhani', monospace;
  font-size: 0.9rem;
  color: var(--orange);
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px;
}
.ticker-row {
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
}
.ticker-row:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 55s;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Neon underline on hover ───────────────────────────────── */
.neon-link {
  position: relative;
  display: inline-block;
}
.neon-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  box-shadow: 0 0 8px var(--orange);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.neon-link:hover::after { width: 100%; }

/* ─── Card hover glow variants ──────────────────────────────── */
.card-glow-orange:hover {
  box-shadow: 0 8px 40px rgba(232,93,4,0.25), 0 0 0 1px rgba(232,93,4,0.3);
}
.card-glow-gold:hover {
  box-shadow: 0 8px 40px rgba(255,208,0,0.20), 0 0 0 1px rgba(255,208,0,0.25);
}
.card-glow-green:hover {
  box-shadow: 0 8px 40px rgba(37,211,102,0.20), 0 0 0 1px rgba(37,211,102,0.25);
}

/* ─── Responsive image with zoom ────────────────────────────── */
.img-zoom-wrap { overflow: hidden; border-radius: var(--radius); }
.img-zoom-wrap img {
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.img-zoom-wrap:hover img { transform: scale(1.04); }

/* ─── Gradient divider ──────────────────────────────────────── */
.grad-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--gold), var(--orange), transparent);
  margin: 0;
  opacity: 0.5;
}

/* ─── Section number accent ─────────────────────────────────── */
.section-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  position: absolute;
  top: -20px;
  right: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ─── Tooltip ───────────────────────────────────────────────── */
[data-tip] {
  position: relative;
}
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black-4);
  border: 1px solid var(--border);
  color: var(--white-80);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}
[data-tip]:hover::after { opacity: 1; }

/* ─── Back to top button ────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 42px; height: 42px;
  background: var(--black-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 997;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ─── Course page green price box ───────────────────────────── */
.green-price { border-color: rgba(37,211,102,0.25); }
.gold-price  { border-color: rgba(255,208,0,0.25); }
