/* ============================================
   Flashbet Velocity Flow - Custom CSS
   Animation, Keyframes & Prose Styling
   ============================================ */

/* CSS Custom Properties */
:root {
  --velocity-primary: #ff6b2c;
  --velocity-secondary: #1a1a2e;
  --velocity-accent: #ffd700;
  --velocity-dark: #0d0d1a;
  --velocity-light: #f8f9fa;
  --velocity-muted: #6c757d;
  --velocity-glow: rgba(255, 107, 44, 0.4);
  --velocity-card-bg: rgba(26, 26, 46, 0.95);
  --velocity-gradient: linear-gradient(135deg, #ff6b2c 0%, #ff8f5c 100%);
  --velocity-dark-gradient: linear-gradient(180deg, #0d0d1a 0%, #1a1a2e 100%);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

@keyframes velocityPulse {
  0%, 100% {
    box-shadow: 0 0 0.5rem var(--velocity-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 1.5rem var(--velocity-glow), 0 0 2.5rem rgba(255, 107, 44, 0.2);
    transform: scale(1.02);
  }
}

@keyframes smoothFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.75rem);
  }
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes gentleRotate {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-velocity-pulse {
  animation: velocityPulse 3s var(--transition-smooth) infinite;
}

.animate-float {
  animation: smoothFloat 4s ease-in-out infinite;
}

.animate-marquee {
  animation: marqueeScroll 25s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--transition-smooth) forwards;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.5s var(--transition-smooth) forwards;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-gentle-rotate {
  animation: gentleRotate 6s ease-in-out infinite;
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.5s var(--transition-smooth) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s var(--transition-smooth) forwards;
}

/* Staggered Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ============================================
   Parallax Effects
   ============================================ */

.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

.parallax-slow {
  transform: translateZ(-100px) scale(1.1);
}

.parallax-fast {
  transform: translateZ(50px) scale(0.95);
}

/* ============================================
   Marquee Component
   ============================================ */

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--velocity-dark), transparent);
}

.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--velocity-dark), transparent);
}

.marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

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

.btn-velocity {
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.btn-velocity::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s var(--transition-smooth);
}

.btn-velocity:hover::before {
  left: 100%;
}

.btn-velocity:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 107, 44, 0.3);
}

.btn-secondary-velocity {
  position: relative;
  border: 0.125rem solid var(--velocity-primary);
  background: transparent;
  transition: all 0.3s var(--transition-smooth);
}

.btn-secondary-velocity:hover {
  background: var(--velocity-primary);
  box-shadow: 0 0 1rem var(--velocity-glow);
}

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

.velocity-card {
  background: var(--velocity-card-bg);
  border: 0.0625rem solid rgba(255, 107, 44, 0.2);
  border-radius: 1rem;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.velocity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.1875rem;
  background: var(--velocity-gradient);
  transform: scaleX(0);
  transition: transform 0.4s var(--transition-smooth);
}

.velocity-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgba(255, 107, 44, 0.5);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3);
}

.velocity-card:hover::before {
  transform: scaleX(1);
}

/* ============================================
   Navigation Styles
   ============================================ */

.nav-velocity {
  backdrop-filter: blur(0.75rem);
  -webkit-backdrop-filter: blur(0.75rem);
  background: rgba(13, 13, 26, 0.95);
  border-bottom: 0.0625rem solid rgba(255, 107, 44, 0.15);
  transition: all 0.3s var(--transition-smooth);
}

.nav-velocity.scrolled {
  background: rgba(13, 13, 26, 0.98);
  box-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.3);
}

.nav-link-velocity {
  position: relative;
  color: var(--velocity-light);
  transition: color 0.3s ease;
}

.nav-link-velocity::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: var(--velocity-gradient);
  transition: width 0.3s var(--transition-smooth);
}

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

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

/* Mobile Menu */
.mobile-menu {
  background: rgba(13, 13, 26, 0.98);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

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

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

.hero-velocity::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 13, 26, 0.7) 0%, rgba(13, 13, 26, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* SVG Pattern Background */
.velocity-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b2c' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

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

.bonus-badge {
  background: var(--velocity-gradient);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: gentleRotate 8s linear infinite;
}

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

.game-card {
  flex-shrink: 0;
  width: 12rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--velocity-card-bg);
  border: 0.0625rem solid rgba(255, 107, 44, 0.2);
  transition: all 0.4s var(--transition-smooth);
}

.game-card:hover {
  transform: scale(1.05);
  border-color: var(--velocity-primary);
  box-shadow: 0 0.5rem 1.5rem rgba(255, 107, 44, 0.25);
}

.game-card img {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  transition: transform 0.4s var(--transition-smooth);
}

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

/* ============================================
   Step Cards
   ============================================ */

.step-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--velocity-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
  box-shadow: 0 0.25rem 1rem var(--velocity-glow);
}

/* ============================================
   Tables
   ============================================ */

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

.velocity-table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  background: var(--velocity-card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
}

.velocity-table th {
  background: rgba(255, 107, 44, 0.15);
  color: var(--velocity-primary);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.velocity-table td {
  padding: 1rem;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
  color: var(--velocity-light);
}

.velocity-table tr:last-child td {
  border-bottom: none;
}

.velocity-table tr:hover td {
  background: rgba(255, 107, 44, 0.05);
}

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

.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 107, 44, 0.1);
  border: 0.0625rem solid rgba(255, 107, 44, 0.3);
  border-radius: 2rem;
  color: var(--velocity-light);
  font-size: 0.875rem;
  transition: all 0.3s var(--transition-smooth);
}

.provider-tag:hover {
  background: var(--velocity-primary);
  color: white;
  transform: translateY(-0.125rem);
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-item {
  border: 0.0625rem solid rgba(255, 107, 44, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.faq-item:hover {
  border-color: rgba(255, 107, 44, 0.5);
}

.faq-question {
  background: var(--velocity-card-bg);
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--velocity-light);
  font-weight: 500;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 107, 44, 0.1);
}

.faq-answer {
  background: rgba(13, 13, 26, 0.7);
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  color: rgba(248, 249, 250, 0.85);
}

.faq-item.active .faq-answer {
  padding: 1.25rem;
  max-height: 25rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s var(--transition-smooth);
  color: var(--velocity-primary);
}

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

.footer-velocity {
  background: var(--velocity-dark);
  border-top: 0.0625rem solid rgba(255, 107, 44, 0.15);
}

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

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

.prose {
  color: rgba(248, 249, 250, 0.9);
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: var(--velocity-light);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.125rem solid rgba(255, 107, 44, 0.3);
  position: relative;
}

.prose h2::before {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 4rem;
  height: 0.125rem;
  background: var(--velocity-gradient);
}

.prose h3 {
  color: var(--velocity-light);
  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: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(248, 249, 250, 0.85);
}

.prose a {
  color: var(--velocity-primary);
  text-decoration: none;
  border-bottom: 0.0625rem solid transparent;
  transition: all 0.3s ease;
}

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

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

.prose em {
  color: rgba(248, 249, 250, 0.9);
  font-style: italic;
}

/* Prose Lists */
.prose ul,
.prose ol {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: rgba(248, 249, 250, 0.85);
}

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

.prose ol {
  list-style: none;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  counter-increment: prose-counter;
  color: rgba(248, 249, 250, 0.85);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--velocity-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

/* Prose Tables */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(255, 107, 44, 0.2);
}

.prose table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  background: var(--velocity-card-bg);
}

.prose table th {
  background: rgba(255, 107, 44, 0.15);
  color: var(--velocity-primary);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.prose table td {
  padding: 0.875rem 1rem;
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
  color: rgba(248, 249, 250, 0.85);
}

.prose table tr:last-child td {
  border-bottom: none;
}

.prose table tr:hover td {
  background: rgba(255, 107, 44, 0.05);
}

/* Prose Blockquotes */
.prose blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 107, 44, 0.08);
  border-left: 0.25rem solid var(--velocity-primary);
  border-radius: 0 0.5rem 0.5rem 0;
  color: rgba(248, 249, 250, 0.9);
  font-style: italic;
}

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

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

/* Prose Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(255, 107, 44, 0.2);
}

/* Prose Code */
.prose code {
  background: rgba(255, 107, 44, 0.15);
  color: var(--velocity-primary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875em;
}

.prose pre {
  background: var(--velocity-card-bg);
  border: 0.0625rem solid rgba(255, 107, 44, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

/* Prose Horizontal Rule */
.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 44, 0.5), transparent);
  margin: 2rem 0;
}

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

.text-velocity-primary {
  color: var(--velocity-primary);
}

.text-velocity-accent {
  color: var(--velocity-accent);
}

.bg-velocity-dark {
  background-color: var(--velocity-dark);
}

.bg-velocity-card {
  background-color: var(--velocity-card-bg);
}

.border-velocity {
  border-color: rgba(255, 107, 44, 0.2);
}

.glow-velocity {
  box-shadow: 0 0 1.5rem var(--velocity-glow);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--velocity-primary);
  color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: var(--velocity-primary);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8f5c;
}

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

@media (max-width: 64rem) {
  .prose h2 {
    margin-top: 2rem;
  }
  
  .prose h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 48rem) {
  .game-card {
    width: 10rem;
  }
  
  .game-card img {
    height: 7.5rem;
  }
  
  .bonus-badge {
    padding: 1rem 1.25rem;
  }
  
  .step-badge {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .prose {
    font-size: 0.9375rem;
  }
  
  .prose ul li,
  .prose ol li {
    padding-left: 1.25rem;
  }
  
  .prose ol li::before {
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.625rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .nav-velocity,
  .footer-velocity {
    display: none;
  }
  
  .prose {
    color: #000;
  }
  
  .prose a {
    color: #000;
    text-decoration: underline;
  }
}
