/* Aurora Fortune Theme - Custom Styles */

/* Keyframe Animations */
@keyframes aurora {
  0% {
    transform: translateX(-100%) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(50%) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateX(200%) rotate(360deg);
    opacity: 0.3;
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes particleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -100px) scale(0.5);
    opacity: 0;
  }
}

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

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 69, 19, 0.8), 0 0 60px rgba(255, 215, 0, 0.3);
  }
}

/* Aurora Background Effects */
.aurora-bg {
  position: relative;
  overflow: hidden;
}

.aurora-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(138, 43, 226, 0.3) 0%,
    rgba(0, 255, 255, 0.2) 25%,
    rgba(50, 205, 50, 0.3) 50%,
    rgba(138, 43, 226, 0.2) 75%,
    rgba(0, 255, 255, 0.3) 100%
  );
  animation: aurora 15s linear infinite;
  z-index: -1;
}

.aurora-bg::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(50, 205, 50, 0.2) 0%, rgba(0, 255, 255, 0.1) 40%, transparent 70%);
  animation: aurora 20s linear infinite reverse;
  z-index: -1;
}

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

.parallax-element:nth-child(2n) {
  animation-delay: -2s;
  animation-duration: 8s;
}

.parallax-element:nth-child(3n) {
  animation-delay: -4s;
  animation-duration: 10s;
}

/* Particle Effects */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8), transparent);
  border-radius: 50%;
  animation: particleFloat 8s linear infinite;
}

.particle:nth-child(2n) {
  background: radial-gradient(circle, rgba(50, 205, 50, 0.6), transparent);
  animation-delay: -2s;
  animation-duration: 10s;
}

.particle:nth-child(3n) {
  background: radial-gradient(circle, rgba(138, 43, 226, 0.7), transparent);
  animation-delay: -4s;
  animation-duration: 12s;
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #8a2be2 0%, #00ffff 50%, #32cd32 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 255, 255, 0.1));
  border: 2px solid;
  border-image: linear-gradient(135deg, #8a2be2, #00ffff, #32cd32) 1;
}

/* Bonus Badge */
.bonus-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ff6347 100%);
  animation: pulse-glow 2s ease-in-out infinite;
  position: relative;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #8a2be2, #00ffff, #32cd32);
  border-radius: inherit;
  z-index: -1;
}

/* Game Cards */
.game-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(138, 43, 226, 0.3);
}

/* Navigation */
.nav-sticky {
  backdrop-filter: blur(20px);
  background: rgba(0, 0, 0, 0.8);
}

.burger-menu {
  background: rgba(0, 0, 0, 0.95) !important;
}

/* Responsive Typography & Prose */
.prose {
  max-width: 100%;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.prose h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  background: linear-gradient(135deg, #00ffff 0%, #32cd32 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #8a2be2;
  text-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

.prose p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  text-align: justify;
}

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

.prose ul li {
  margin-bottom: 0.75rem;
  position: relative;
  list-style: none;
}

.prose ul li::before {
  content: "▶";
  color: #00ffff;
  position: absolute;
  left: -1.5rem;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

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

.prose ol li {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.prose table {
  width: 100%;
  max-width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  overflow: hidden;
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(0, 255, 255, 0.3));
}

.prose table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
}

.prose table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.prose table tr:hover {
  background: rgba(0, 255, 255, 0.1);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(138, 43, 226, 0.1);
  border-left: 4px solid #8a2be2;
  border-radius: 0.5rem;
  font-style: italic;
  position: relative;
}

.prose blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #8a2be2;
  position: absolute;
  top: -0.5rem;
  left: 1rem;
  opacity: 0.3;
}

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

.prose strong {
  color: #ffd700;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.prose em {
  color: #00ffff;
  font-style: italic;
}

/* 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;
    margin-top: 1.5rem;
  }

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

  .prose table th,
  .prose table td {
    padding: 0.5rem;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .aurora-bg::before,
  .aurora-bg::after {
    animation-duration: 10s;
  }

  .particle {
    display: none; /* Reduce animations on mobile for performance */
  }
}

/* Container Max Width */
.container {
  max-width: 1440px;
}
