/* Custom animations and overrides */
@keyframes spin-chrome {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.05);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes sapphire-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 60px rgba(59, 130, 246, 0.5);
  }
}

@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes silver-mist {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: translateX(20px);
  }
}

/* Chrome wheel animation */
.chrome-wheel {
  animation: spin-chrome 8s linear infinite;
  background: conic-gradient(from 0deg, #c0c0c0, #ffffff, #c0c0c0, #808080);
  border-radius: 50%;
}

/* Sapphire glow effects */
.sapphire-glow {
  animation: sapphire-glow 3s ease-in-out infinite;
}

/* Parallax elements */
.parallax-element {
  animation: parallax-float 6s ease-in-out infinite;
}

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

.marquee-content {
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

/* Silver mist overlay */
.silver-mist::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(192, 192, 192, 0.1), transparent);
  animation: silver-mist 4s ease-in-out infinite;
  pointer-events: none;
}

/* Obsidian-violet gradients */
.obsidian-gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #7209b7 100%);
}

.violet-gradient {
  background: linear-gradient(45deg, #4c1d95, #7c3aed, #a855f7);
}

/* Custom button styles */
.btn-primary {
  background: linear-gradient(45deg, #3b82f6, #1d4ed8);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(45deg, #7c3aed, #a855f7);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(45deg, #6d28d9, #9333ea);
  transform: translateY(-2px);
}

/* Enhanced prose styling for markdown content */
.prose {
  max-width: 100%;
  line-height: 1.7;
  color: #e5e7eb;
  font-size: 1.1rem;
}

.prose h2 {
  color: #f9fafb;
  font-weight: 700;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 4rem;
  height: 3px;
  background: linear-gradient(45deg, #3b82f6, #7c3aed);
  border-radius: 2px;
}

.prose h3 {
  color: #f3f4f6;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.5rem;
  color: #d1d5db;
  text-align: justify;
}

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.prose li {
  margin-bottom: 0.75rem;
  color: #d1d5db;
  line-height: 1.6;
}

.prose ul li::marker {
  color: #3b82f6;
}

.prose ol li::marker {
  color: #7c3aed;
  font-weight: 600;
}

.prose table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: linear-gradient(45deg, #374151, #4b5563);
}

.prose table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #f9fafb;
  border-bottom: 2px solid #3b82f6;
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #4b5563;
  color: #d1d5db;
}

.prose table tbody tr:hover {
  background: rgba(59, 130, 246, 0.1);
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(59, 130, 246, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

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

.prose strong {
  color: #f9fafb;
  font-weight: 600;
}

.prose em {
  color: #a855f7;
}

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

  .prose h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

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

  .prose table {
    font-size: 0.9rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.5rem;
  }
}

/* Mobile navigation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Bonus badge styling */
.bonus-badge {
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #7c3aed, #3b82f6);
  border-radius: inherit;
  z-index: -1;
  animation: sapphire-glow 2s ease-in-out infinite;
}

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
}

.game-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.game-card:hover::after {
  left: 100%;
}

/* Payment method icons */
.payment-icon {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.payment-icon:hover {
  filter: grayscale(0%);
}

/* Responsive utilities */
@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

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

body {
  overflow: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #3b82f6, #7c3aed);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #1d4ed8, #6d28d9);
}
