/* ============================================
   FlashBet Velocity North - Custom Styles
   ============================================ */

/* CSS Custom Properties */
:root {
  --velocity-primary: #00e5ff;
  --velocity-secondary: #ff3d71;
  --velocity-accent: #f9a826;
  --velocity-dark: #0a0e17;
  --velocity-darker: #060912;
  --velocity-surface: #131a2b;
  --velocity-surface-light: #1e2a42;
  --velocity-text: #e8edf5;
  --velocity-text-muted: #8b99b3;
  --velocity-success: #00d68f;
  --velocity-warning: #ffaa00;
  --velocity-glow: rgba(0, 229, 255, 0.4);
  --velocity-flash: rgba(255, 255, 255, 0.95);
}

/* ============================================
   Keyframe Animations
   ============================================ */

@keyframes velocityPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes flashBurst {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  20% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(20px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes particleDrift {
  0% {
    transform: translateY(100%) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20%) translateX(50px);
    opacity: 0;
  }
}

@keyframes tiltShift {
  0%, 100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
  }
}

@keyframes speedStreak {
  0% {
    transform: translateX(-100%) scaleX(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  100% {
    transform: translateX(100%) scaleX(0);
    opacity: 0;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px var(--velocity-glow), 0 0 40px rgba(0, 229, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px var(--velocity-glow), 0 0 60px rgba(0, 229, 255, 0.4);
  }
}

@keyframes flashIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

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

/* ============================================
   Particle System
   ============================================ */

.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--velocity-primary);
  border-radius: 50%;
  animation: particleFloat 8s infinite ease-out;
  box-shadow: 0 0 6px var(--velocity-primary);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 9s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 6s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 10s; }
.particle:nth-child(6) { left: 60%; animation-delay: 1.5s; animation-duration: 7s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 9s; }
.particle:nth-child(8) { left: 80%; animation-delay: 0.8s; animation-duration: 6s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3.5s; animation-duration: 8s; }
.particle:nth-child(10) { left: 95%; animation-delay: 1.2s; animation-duration: 11s; }

.particle-secondary {
  background: var(--velocity-secondary);
  box-shadow: 0 0 6px var(--velocity-secondary);
  width: 3px;
  height: 3px;
}

.particle-accent {
  background: var(--velocity-accent);
  box-shadow: 0 0 6px var(--velocity-accent);
  width: 5px;
  height: 5px;
}

/* ============================================
   Tilt Animation Classes
   ============================================ */

.tilt-card {
  animation: tiltShift 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.tilt-hover:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) scale(1.02);
  transition: transform 0.4s ease;
}

/* ============================================
   Speed & Flash Effects
   ============================================ */

.speed-streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--velocity-primary), transparent);
  animation: speedStreak 2s infinite;
}

.flash-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

.flash-border {
  position: relative;
}

.flash-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(90deg, var(--velocity-primary), var(--velocity-secondary), var(--velocity-accent), var(--velocity-primary));
  background-size: 300% 100%;
  animation: borderFlow 3s linear infinite;
  border-radius: inherit;
  z-index: -1;
}

/* ============================================
   Button Styles
   ============================================ */

.btn-velocity {
  background: linear-gradient(135deg, var(--velocity-primary) 0%, #00b8d4 100%);
  color: var(--velocity-dark);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-velocity::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

.btn-velocity:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.btn-secondary-velocity {
  background: transparent;
  border: 2px solid var(--velocity-primary);
  color: var(--velocity-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary-velocity:hover {
  background: var(--velocity-primary);
  color: var(--velocity-dark);
  box-shadow: 0 0 20px var(--velocity-glow);
}

/* ============================================
   Card Styles
   ============================================ */

.velocity-card {
  background: var(--velocity-surface);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 1rem;
  transition: all 0.4s ease;
}

.velocity-card:hover {
  border-color: var(--velocity-primary);
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
  transform: translateY(-4px);
}

/* ============================================
   Table Responsive Wrapper
   ============================================ */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--velocity-surface);
  border-radius: 3px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--velocity-primary);
  border-radius: 3px;
}

/* ============================================
   Prose Styling for Markdown Content
   ============================================ */

.prose {
  color: var(--velocity-text);
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: var(--velocity-text);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--velocity-primary);
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--velocity-secondary);
}

.prose h3 {
  color: var(--velocity-text);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  color: var(--velocity-primary);
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
}

.prose a {
  color: var(--velocity-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--velocity-accent);
}

.prose strong {
  color: var(--velocity-text);
  font-weight: 600;
}

.prose em {
  color: var(--velocity-text-muted);
  font-style: italic;
}

.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--velocity-text);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 8px;
  height: 8px;
  background: var(--velocity-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--velocity-glow);
}

.prose ol {
  counter-reset: prose-counter;
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.prose ol li {
  counter-increment: prose-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--velocity-text);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: linear-gradient(135deg, var(--velocity-primary), var(--velocity-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--velocity-dark);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.prose thead {
  background: linear-gradient(135deg, var(--velocity-surface-light), var(--velocity-surface));
}

.prose th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--velocity-primary);
  border-bottom: 2px solid var(--velocity-primary);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
  color: var(--velocity-text);
}

.prose tbody tr:hover {
  background: rgba(0, 229, 255, 0.05);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--velocity-surface);
  border-left: 4px solid var(--velocity-primary);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: var(--velocity-text);
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.prose code {
  background: var(--velocity-surface-light);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--velocity-accent);
}

.prose pre {
  background: var(--velocity-surface);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--velocity-primary), transparent);
  margin: 2.5rem 0;
}

/* ============================================
   Navigation Overrides
   ============================================ */

.nav-velocity {
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 23, 0.9);
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.nav-link-velocity {
  color: var(--velocity-text);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link-velocity::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--velocity-primary);
  transition: width 0.3s ease;
}

.nav-link-velocity:hover {
  color: var(--velocity-primary);
}

.nav-link-velocity:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  background: var(--velocity-darker);
  border-top: 1px solid rgba(0, 229, 255, 0.15);
}

/* ============================================
   Hero Section Styles
   ============================================ */

.hero-velocity {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-velocity::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 23, 0.7) 0%, rgba(10, 14, 23, 0.95) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   Bonus Badge Box
   ============================================ */

.bonus-badge {
  background: linear-gradient(135deg, var(--velocity-surface) 0%, var(--velocity-surface-light) 100%);
  border: 2px solid var(--velocity-primary);
  position: relative;
  animation: glowPulse 3s ease-in-out infinite;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(90deg, var(--velocity-primary), var(--velocity-secondary), var(--velocity-primary));
  background-size: 200% 100%;
  animation: borderFlow 2s linear infinite;
  border-radius: inherit;
  z-index: -1;
  filter: blur(4px);
}

/* ============================================
   Game Cards
   ============================================ */

.game-card {
  background: var(--velocity-surface);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--velocity-primary);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.2);
}

.game-card img {
  transition: transform 0.4s ease;
}

.game-card:hover img {
  transform: scale(1.1);
}

/* ============================================
   Step Badges
   ============================================ */

.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--velocity-primary), var(--velocity-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--velocity-dark);
  box-shadow: 0 8px 25px rgba(0, 229, 255, 0.3);
}

/* ============================================
   Provider Cloud
   ============================================ */

.provider-tag {
  background: var(--velocity-surface-light);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--velocity-text);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: var(--velocity-primary);
  color: var(--velocity-dark);
  transform: scale(1.05);
}

/* ============================================
   FAQ Accordion
   ============================================ */

.faq-item {
  background: var(--velocity-surface);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--velocity-primary);
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--velocity-text);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--velocity-text-muted);
  line-height: 1.7;
}

/* ============================================
   Footer Styles
   ============================================ */

.footer-velocity {
  background: var(--velocity-darker);
  border-top: 1px solid rgba(0, 229, 255, 0.1);
}

.age-badge {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--velocity-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--velocity-secondary);
}

/* ============================================
   Utility Classes
   ============================================ */

.text-gradient-velocity {
  background: linear-gradient(135deg, var(--velocity-primary) 0%, var(--velocity-accent) 50%, var(--velocity-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern-velocity {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 61, 113, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(249, 168, 38, 0.05) 0%, transparent 50%);
}

.flash-fade-in {
  animation: flashIn 0.6s ease-out forwards;
}

/* ============================================
   Smooth Scroll
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   Scrollbar Styling
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--velocity-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--velocity-surface-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--velocity-primary);
}

/* ============================================
   Selection Styling
   ============================================ */

::selection {
  background: var(--velocity-primary);
  color: var(--velocity-dark);
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  .prose h2 {
    margin-top: 2rem;
  }
  
  .prose ul li,
  .prose ol li {
    padding-left: 1.5rem;
  }
  
  .prose ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
  
  .step-badge {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.25rem;
  }
}
