/* Solar Eclipse Theme Custom Animations */

/* Parallax Texture Background */
#parallax-texture {
  background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 248, 220, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(22, 33, 62, 0.3) 0%, transparent 70%);
  background-size: 200% 200%, 150% 150%, 300% 300%;
  animation: textureFloat 20s ease-in-out infinite;
}

@keyframes textureFloat {
  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  33% {
    background-position: 100% 0%, 0% 100%, 0% 100%;
  }
  66% {
    background-position: 0% 100%, 100% 0%, 100% 0%;
  }
}

/* Bonus Badge Glow Animation */
.bonus-glow {
  animation: bonusGlow 3s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

@keyframes bonusGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
  }
}

/* Glowing Arrow Animation */
.glowing-arrow {
  animation: arrowGlow 2s ease-in-out infinite;
}

@keyframes arrowGlow {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(0) translateY(-50%);
  }
  50% {
    opacity: 1;
    transform: translateX(5px) translateY(-50%);
  }
}

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

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

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

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

/* Parallax Scroll Effect */
@media (prefers-reduced-motion: no-preference) {
  .parallax-element {
    transform: translateZ(0);
    will-change: transform;
  }
}

/* Eclipse Corona Effect */
.eclipse-corona-effect {
  position: relative;
}

.eclipse-corona-effect::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 248, 220, 0.1) 0%, transparent 70%);
  animation: coronaRotate 30s linear infinite;
  pointer-events: none;
}

@keyframes coronaRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .glowing-arrow {
    display: none;
  }

  .bonus-glow {
    animation-duration: 4s;
  }

  #parallax-texture {
    animation-duration: 30s;
  }
}

/* Accessibility - Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  #parallax-texture {
    animation: none;
  }

  .bonus-glow {
    animation: none;
  }

  .glowing-arrow {
    animation: none;
  }
}

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

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

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

/* Prose Styling for Markdown Content */
.prose {
  color: #e5e7eb;
  max-width: none;
}

.prose h1 {
  color: #ffd700;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 2rem;
}

.prose h2 {
  color: #fff8dc;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #16213e;
  padding-bottom: 0.5rem;
}

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

.prose h4 {
  color: #ffd700;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.prose a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #fff8dc;
}

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

.prose ul,
.prose ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.625rem;
}

.prose li {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose ul > li {
  position: relative;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  background-color: #ffd700;
  border-radius: 50%;
  width: 0.375rem;
  height: 0.375rem;
  top: calc(0.875rem - 0.1875rem);
  left: -1rem;
}

.prose ol > li::marker {
  color: #ffd700;
  font-weight: 600;
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  color: #d1d5db;
  border-left: 0.25rem solid #ffd700;
  quotes: "\201C" "\201D" "\2018" "\2019";
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
  padding-left: 1rem;
  background: rgba(22, 33, 62, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
}

.prose table {
  width: 100%;
  table-layout: auto;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.7142857;
  border-collapse: collapse;
  background: #16213e;
  border-radius: 0.5rem;
  overflow: hidden;
}

.prose thead {
  background: #ffd700;
  color: #0a0a0f;
}

.prose thead th {
  color: #0a0a0f;
  font-weight: 600;
  vertical-align: bottom;
  padding: 0.75rem;
  border-bottom: 1px solid #1a1a2e;
}

.prose tbody tr {
  border-bottom: 1px solid #1a1a2e;
}

.prose tbody tr:last-child {
  border-bottom-width: 0;
}

.prose tbody td {
  vertical-align: baseline;
  padding: 0.75rem;
  color: #e5e7eb;
}

.prose tbody tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.prose code {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.875rem;
  background: rgba(22, 33, 62, 0.5);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.prose pre {
  color: #e5e7eb;
  background-color: #16213e;
  overflow-x: auto;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.7142857;
  margin-top: 1.7142857em;
  margin-bottom: 1.7142857em;
  border-radius: 0.375rem;
  padding: 1rem;
  border: 1px solid #1a1a2e;
}

.prose pre code {
  background-color: transparent;
  border-width: 0;
  border-radius: 0;
  padding: 0;
  font-weight: inherit;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}

.prose hr {
  border-color: #16213e;
  border-top-width: 1px;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Prose size variants */
.prose-lg {
  font-size: 1.125rem;
  line-height: 1.7777778;
}

.prose-lg h1 {
  font-size: 2.6875rem;
  margin-top: 0;
  margin-bottom: 2.2222222rem;
  line-height: 1.1111111;
}

.prose-lg h2 {
  font-size: 2.25rem;
  margin-top: 3.5555556rem;
  margin-bottom: 1.7777778rem;
  line-height: 1.2222222;
}

.prose-lg h3 {
  font-size: 1.875rem;
  margin-top: 2.6666667rem;
  margin-bottom: 1.3333333rem;
  line-height: 1.3333333;
}

.prose-lg p {
  margin-top: 1.3333333rem;
  margin-bottom: 1.3333333rem;
}

.prose-lg ul,
.prose-lg ol {
  margin-top: 1.3333333rem;
  margin-bottom: 1.3333333rem;
}

.prose-lg li {
  margin-top: 0.6666667rem;
  margin-bottom: 0.6666667rem;
}

/* Dark theme specific adjustments */
.prose-invert {
  --tw-prose-body: #e5e7eb;
  --tw-prose-headings: #fff8dc;
  --tw-prose-lead: #d1d5db;
  --tw-prose-links: #ffd700;
  --tw-prose-bold: #fff8dc;
  --tw-prose-counters: #ffd700;
  --tw-prose-bullets: #ffd700;
  --tw-prose-hr: #16213e;
  --tw-prose-quotes: #d1d5db;
  --tw-prose-quote-borders: #ffd700;
  --tw-prose-captions: #9ca3af;
  --tw-prose-code: #ffd700;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #16213e;
  --tw-prose-th-borders: #1a1a2e;
  --tw-prose-td-borders: #1a1a2e;
}

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

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

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

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

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