/* Desert Mirage Theme - Custom Animations & Overrides */

/* Keyframe Animations */
@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.8;
  }
  33% {
    transform: translateY(-15px) translateX(10px) scale(1.1);
    opacity: 1;
  }
  66% {
    transform: translateY(-5px) translateX(-8px) scale(0.9);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.8;
  }
}

@keyframes neonGlow {
  0%,
  100% {
    text-shadow: 0 0 5px #fbbf24, 0 0 10px #fbbf24, 0 0 15px #fbbf24;
  }
  50% {
    text-shadow: 0 0 10px #fbbf24, 0 0 20px #fbbf24, 0 0 30px #fbbf24, 0 0 40px #f59e0b;
  }
}

@keyframes pyramidGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3), inset 0 0 20px rgba(251, 191, 36, 0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6), inset 0 0 30px rgba(251, 191, 36, 0.2);
  }
}

@keyframes chipScatter {
  0% {
    transform: translateX(0) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateX(20px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-15px) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translateX(10px) rotate(270deg);
    opacity: 0.8;
  }
  100% {
    transform: translateX(0) rotate(360deg);
    opacity: 1;
  }
}

/* Desert Mirage Theme Classes */
.desert-gradient {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 25%, #1e40af 50%, #0891b2 75%, #0d9488 100%);
}

.mirage-glow {
  animation: neonGlow 3s ease-in-out infinite;
}

.pyramid-shape {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: pyramidGlow 4s ease-in-out infinite;
}

.parallax-element {
  animation: parallaxFloat 6s ease-in-out infinite;
}

.particle-element {
  animation: particleFloat 4s ease-in-out infinite;
}

.chip-scatter {
  animation: chipScatter 8s linear infinite;
}

.golden-reel {
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706);
  border: 2px solid #92400e;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.indigo-haze {
  background: rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(10px);
}

/* Enhanced prose styling for markdown content readability */
.prose {
  max-width: 100%;
  line-height: 1.6;
  color: #e5e7eb;
}

.prose h2 {
  color: #fbbf24;
  font-weight: 700;
  font-size: 1.875rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.prose h3 {
  color: #0891b2;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px rgba(8, 145, 178, 0.2);
}

.prose p {
  margin-bottom: 1rem;
  color: #d1d5db;
  font-size: 1rem;
}

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

.prose ul li,
.prose ol li {
  margin-bottom: 0.5rem;
  color: #d1d5db;
  line-height: 1.5;
}

.prose ul li::marker {
  color: #fbbf24;
}

.prose ol li::marker {
  color: #0891b2;
  font-weight: 600;
}

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

.prose table thead {
  display: table-header-group;
}

.prose table tbody {
  display: table-row-group;
}

.prose table tr {
  display: table-row;
}

.prose td,
.prose th {
  border: 1px solid #374151;
  padding: 0.75rem;
  text-align: left;
  display: table-cell;
  white-space: normal;
}

.prose th {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
  font-weight: 600;
}

.prose td {
  color: #d1d5db;
}

.prose blockquote {
  border-left: 4px solid #fbbf24;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #9ca3af;
  background: rgba(251, 191, 36, 0.05);
  padding: 1rem;
}

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

.prose strong {
  color: #fbbf24;
  font-weight: 700;
}

.prose em {
  color: #0891b2;
  font-style: italic;
}

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

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

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

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

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

body {
  overflow: auto;
}

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

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

/* Custom Button Styles */
.btn-desert-primary {
  background: linear-gradient(45deg, #fbbf24, #f59e0b);
  border: 2px solid #d97706;
  color: #1f2937;
  font-weight: 700;
  text-shadow: none;
  transition: all 0.3s ease;
}

.btn-desert-primary:hover {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

.btn-desert-secondary {
  background: transparent;
  border: 2px solid #0891b2;
  color: #0891b2;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-desert-secondary:hover {
  background: #0891b2;
  color: #1f2937;
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.4);
}

/* Game Card Hover Effects */
.game-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
}

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

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