/* Fantasy Prediction Platform — Design Demo
   Custom styles layered on top of Tailwind (CDN). */

:root {
  --grad-hero: linear-gradient(135deg, #4c1d95 0%, #6d28d9 35%, #2563eb 100%);
  --grad-admin: linear-gradient(120deg, #2563eb 0%, #7c3aed 100%);
  --grad-agent: linear-gradient(120deg, #059669 0%, #14b8a6 100%);
  --grad-user: linear-gradient(120deg, #f97316 0%, #ec4899 60%, #ef4444 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0b1020;
  color: #e2e8f0;
  overflow-x: hidden;
}
h1, h2, h3, h4, .font-heading { font-family: 'Poppins', 'Inter', sans-serif; }

/* ---------- Animated gradient text ---------- */
.gradient-text {
  background: linear-gradient(90deg, #a78bfa, #38bdf8, #34d399, #fbbf24);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hueShift 8s ease infinite;
}
@keyframes hueShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Floating accent blobs ---------- */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.96); }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mockup window chrome ---------- */
.mockup {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f172a;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mockup-dot { width: 12px; height: 12px; border-radius: 9999px; }

/* Horizontal scroll wrapper so full dashboards never break mobile layout */
.mockup-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mockup-canvas { min-width: 900px; }

/* ---------- Stat cards ---------- */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.55);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6); }
.stat-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 130px; height: 130px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
}

/* ---------- Data tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.data-table th {
  text-align: left;
  padding: .6rem .75rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .68rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.data-table td { padding: .6rem .75rem; border-bottom: 1px solid rgba(148, 163, 184, 0.08); }
.data-table tbody tr:nth-child(odd) { background: rgba(148, 163, 184, 0.05); }
.data-table tbody tr:hover { background: rgba(99, 102, 241, 0.12); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 9999px; font-size: .68rem; font-weight: 600; }
.pill-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.pill-yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pill-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.pill-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* ---------- Dashboard sidebar ---------- */
.side-nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; border-radius: .6rem;
  color: #cbd5e1; font-size: .85rem; font-weight: 500;
  transition: background .2s ease, color .2s ease;
  cursor: pointer;
}
.side-nav-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.side-nav-item.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.side-nav-item svg { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn-grad {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: .7rem; padding: .7rem 1.4rem; color: #fff;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  cursor: pointer; border: none;
}
.btn-grad:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.btn-grad:active { transform: translateY(0); }

/* ---------- Feature cards ---------- */
.feature-card {
  border-radius: 1.1rem; padding: 1.5rem; color: #fff; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6); }
.feature-icon {
  width: 48px; height: 48px; border-radius: .8rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

/* ---------- Inputs ---------- */
.demo-input {
  width: 100%; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: .6rem;
  padding: .65rem .85rem; color: #f1f5f9; font-size: .85rem; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.demo-input::placeholder { color: #94a3b8; }
.demo-input:focus { border-color: #818cf8; background: rgba(255, 255, 255, 0.1); }

/* ---------- Commission bars ---------- */
.bar { border-radius: 6px 6px 0 0; width: 100%; transition: height .8s cubic-bezier(.2,.7,.3,1); }

/* Progress ring track / value handled inline */
.mini-scroll::-webkit-scrollbar { height: 8px; }
.mini-scroll::-webkit-scrollbar-thumb { background: rgba(148,163,184,.3); border-radius: 8px; }
