/* ========================================
   GO4CASINO - Global Sprint Flow Theme
   Custom CSS: Keyframes, Animations & Prose
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --primary: #ff6b35;
  --primary-dark: #e55a2b;
  --secondary: #00d4aa;
  --secondary-dark: #00b894;
  --accent: #ffd700;
  --dark-900: #0a0a12;
  --dark-800: #12121f;
  --dark-700: #1a1a2e;
  --dark-600: #252542;
  --light-100: #ffffff;
  --light-200: #f4f4f8;
  --light-300: #e0e0e8;
  --gradient-sprint: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 50%, var(--dark-800) 100%);
  --gradient-glow: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
  --gradient-card: linear-gradient(145deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
}

/* --- Keyframe Animations --- */
@keyframes sprintStreak {
  0% {
    transform: translateX(-100%) skewX(-15deg);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateX(200%) skewX(-15deg);
    opacity: 0;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4), 0 0 40px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.6), 0 0 60px rgba(255, 107, 53, 0.3);
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

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

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

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

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

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes numberPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- Animation Utility Classes --- */
.animate-sprint-streak {
  animation: sprintStreak 3s ease-in-out infinite;
}

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

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

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

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

.animate-number-pop {
  animation: numberPop 0.5s ease-out forwards;
}

/* --- Parallax Effects --- */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.parallax-slow {
  transform: translateY(calc(var(--scroll) * 0.3));
}
.parallax-medium {
  transform: translateY(calc(var(--scroll) * 0.5));
}
.parallax-fast {
  transform: translateY(calc(var(--scroll) * 0.7));
}

/* --- Sprint Streak Overlay --- */
.sprint-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sprint-streak {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  animation: sprintStreak 4s ease-in-out infinite;
}

.sprint-streak:nth-child(1) {
  top: 20%;
  width: 40%;
  animation-delay: 0s;
}
.sprint-streak:nth-child(2) {
  top: 40%;
  width: 60%;
  animation-delay: 1s;
}
.sprint-streak:nth-child(3) {
  top: 60%;
  width: 35%;
  animation-delay: 2s;
}
.sprint-streak:nth-child(4) {
  top: 80%;
  width: 50%;
  animation-delay: 0.5s;
}

/* --- Gradient Backgrounds --- */
.bg-sprint-flow {
  background: var(--gradient-sprint);
  position: relative;
}

.bg-sprint-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.layered-gradient {
  background: linear-gradient(180deg, rgba(10, 10, 18, 0.95) 0%, transparent 30%),
    linear-gradient(0deg, rgba(10, 10, 18, 0.95) 0%, transparent 30%), var(--gradient-sprint);
}

/* --- Card Styles --- */
.card-sprint {
  background: linear-gradient(145deg, rgba(26, 26, 46, 0.9) 0%, rgba(18, 18, 31, 0.95) 100%);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-sprint:hover {
  border-color: rgba(255, 107, 53, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 107, 53, 0.1);
}

/* --- Button Styles --- */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--light-100);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--dark-900);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
}

/* --- Badge Styles --- */
.bonus-badge {
  background: linear-gradient(135deg, var(--dark-700) 0%, var(--dark-800) 100%);
  border: 2px solid var(--accent);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--accent), transparent);
  animation: rotateGlow 4s linear infinite;
  opacity: 0.1;
}

/* --- Table Responsive Wrapper --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

/* --- Marquee Container --- */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  gap: 2rem;
  animation: marqueeScroll 30s linear infinite;
}

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

/* --- Navigation Styles --- */
.nav-sprint {
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.nav-link {
  color: var(--light-200);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

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

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

/* --- Burger Menu --- */
.burger-menu {
  background: var(--dark-800);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.burger-line {
  width: 1.5rem;
  height: 2px;
  background: var(--light-100);
  transition: all 0.3s ease;
}

/* --- Mobile Menu --- */
.mobile-menu {
  background: var(--dark-800);
  border-top: 1px solid rgba(255, 107, 53, 0.2);
}

/* --- Step Number Badge --- */
.step-number {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--light-100);
  box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

/* --- Game Card --- */
.game-card {
  background: linear-gradient(145deg, var(--dark-700) 0%, var(--dark-800) 100%);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.game-card:hover {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 53, 0.2);
}

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

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

/* --- Provider Cloud --- */
.provider-tag {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--light-200);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- FAQ Accordion --- */
.faq-item {
  background: var(--dark-700);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--light-300);
  line-height: 1.7;
}

/* --- Footer --- */
.footer-sprint {
  background: linear-gradient(180deg, var(--dark-800) 0%, var(--dark-900) 100%);
  border-top: 1px solid rgba(255, 107, 53, 0.2);
}

/* --- Age Badge --- */
.age-badge {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--accent);
}

/* ========================================
   PROSE STYLING FOR MARKDOWN CONTENT
   ======================================== */

.prose {
  color: var(--light-200);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 100%;
}

.prose > * + * {
  margin-top: 1.5em;
}

/* --- Headings --- */
.prose h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--light-100);
  line-height: 1.2;
  margin-top: 2em;
  margin-bottom: 0.75em;
  background: linear-gradient(135deg, var(--light-100) 0%, var(--light-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prose h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--light-100);
  line-height: 1.3;
  margin-top: 2em;
  margin-bottom: 0.75em;
  padding-bottom: 0.5em;
  border-bottom: 2px solid rgba(255, 107, 53, 0.3);
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 4rem;
  height: 2px;
  background: var(--primary);
}

.prose h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
}

.prose h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* --- Paragraphs --- */
.prose p {
  margin-bottom: 1.25em;
  color: var(--light-300);
}

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

.prose em {
  color: var(--secondary);
  font-style: italic;
}

/* --- Links --- */
.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--secondary);
  text-decoration-color: var(--secondary);
}

/* --- Lists --- */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75em;
  color: var(--light-300);
}

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

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

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  color: var(--light-300);
  counter-increment: ol-counter;
}

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

/* --- Blockquotes --- */
.prose blockquote {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1) 0%, transparent 100%);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: var(--light-200);
}

.prose blockquote p {
  margin: 0;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, var(--dark-600) 0%, var(--dark-700) 100%);
}

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

.prose td {
  padding: 1em 1.25em;
  color: var(--light-300);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.prose tbody tr {
  background: var(--dark-800);
  transition: background 0.3s ease;
}

.prose tbody tr:hover {
  background: var(--dark-700);
}

.prose tbody tr:nth-child(even) {
  background: rgba(26, 26, 46, 0.5);
}

.prose tbody tr:nth-child(even):hover {
  background: var(--dark-700);
}

/* --- Code --- */
.prose code {
  background: var(--dark-700);
  padding: 0.25em 0.5em;
  border-radius: 0.375rem;
  font-size: 0.875em;
  color: var(--secondary);
  font-family: monospace;
}

.prose pre {
  background: var(--dark-800);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 0.75rem;
  padding: 1.5em;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
  color: var(--light-200);
}

/* --- Images --- */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2em 0;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

/* --- Horizontal Rule --- */
.prose hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
  margin: 3em 0;
}

/* --- Disclaimer Text --- */
.disclaimer {
  font-size: 0.8125rem;
  color: var(--light-300);
  opacity: 0.8;
  line-height: 1.6;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    font-size: 1.375rem;
  }

  .prose h3 {
    font-size: 1.125rem;
  }

  .prose th,
  .prose td {
    padding: 0.75em 1em;
    font-size: 0.875rem;
  }
}

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

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: var(--light-100);
}
