/* Celestial Reliquary Theme - Custom Styles */

/* Keyframe Animations */
@keyframes cosmicPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes starlightShimmer {
  0%,
  100% {
    opacity: 0.8;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3);
  }
}

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

@keyframes particleOrbit {
  0% {
    transform: rotate(0deg) translateX(20px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(20px) rotate(-360deg);
  }
}

@keyframes rainbowDiffraction {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

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

/* Celestial Elements */
.cosmic-pulse {
  animation: cosmicPulse 4s ease-in-out infinite;
}

.starlight-shimmer {
  animation: starlightShimmer 2s ease-in-out infinite;
}

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

.particle-orbit {
  animation: particleOrbit 8s linear infinite;
}

.rainbow-diffraction {
  animation: rainbowDiffraction 3s linear infinite;
}

.holographic-ribbon {
  background: linear-gradient(45deg, #ffd700, #ffa500, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7);
  background-size: 400% 400%;
  animation: holographicRibbon 3s ease infinite;
}

/* Obsidian Vault Doors */
.obsidian-vault {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #ffd700;
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.1), 0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
}

.obsidian-vault::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 165, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Starlight Runes */
.starlight-runes {
  background-image: radial-gradient(2px 2px at 20px 30px, #ffd700, transparent),
    radial-gradient(2px 2px at 40px 70px, #ffa500, transparent),
    radial-gradient(1px 1px at 90px 40px, #ffd700, transparent),
    radial-gradient(1px 1px at 130px 80px, #ffa500, transparent);
  background-repeat: repeat;
  background-size: 150px 100px;
}

/* Amber Bezels */
.amber-bezel {
  background: radial-gradient(ellipse at center, #ffa500 0%, #ff8c00 50%, #ff6347 100%);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), inset 0 0 10px rgba(255, 140, 0, 0.3);
}

/* Crystalline Disco-ball Halos */
.crystalline-halo {
  background: conic-gradient(from 0deg, #ffd700, #ffa500, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #ffd700);
  border-radius: 50%;
  position: relative;
}

.crystalline-halo::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #1a1a2e;
  border-radius: 50%;
}

/* Neon Constellations */
.neon-constellation {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff, 0 0 20px #00ffff;
}

/* Velvet-shadowed Alcoves */
.velvet-alcove {
  background: linear-gradient(145deg, #2d1b69 0%, #1a1a2e 50%, #0f0f23 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(107, 70, 193, 0.3);
  border-radius: 15px;
}

/* Moon-silver Glow */
.moon-silver-glow {
  color: #e8e8f0;
  text-shadow: 0 0 10px rgba(232, 232, 240, 0.5);
}

/* Bonus Badge Styling */
.bonus-badge {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #1a1a2e;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: starlightShimmer 3s ease-in-out infinite;
}

/* Game Card Styling */
.game-card {
  background: linear-gradient(145deg, #2d1b69 0%, #1a1a2e 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}

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

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

/* Payment Method Table */
.payment-table {
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.payment-table th {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #1a1a2e;
  padding: 1rem;
  font-weight: 600;
}

.payment-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  color: #e8e8f0;
}

.payment-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

/* Prose Styling for Readability */
.prose {
  color: #e8e8f0;
  line-height: 1.7;
  max-width: 100%;
  font-size: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #ffd700;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h2 {
  color: #ffd700;
  font-weight: 700;
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  position: relative;
}

.prose h2::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 4rem;
  height: 2px;
  background: linear-gradient(90deg, #ffd700, transparent);
}

.prose h3 {
  color: #ffa500;
  font-weight: 600;
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px rgba(255, 165, 0, 0.3);
}

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

.prose p {
  margin-bottom: 1.5rem;
  color: rgba(232, 232, 240, 0.9);
  text-align: justify;
  hyphens: auto;
}

.prose p:first-of-type {
  font-size: 1.125rem;
  color: rgba(232, 232, 240, 0.95);
  margin-bottom: 2rem;
}

.prose a {
  color: #ffd700;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.prose a:hover {
  color: #ffa500;
  border-bottom-color: #ffa500;
  text-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

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

.prose ul {
  list-style: none;
}

.prose ul li {
  position: relative;
  margin-bottom: 0.75rem;
  color: rgba(232, 232, 240, 0.9);
  padding-left: 1.5rem;
}

.prose ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #ffd700;
  font-weight: bold;
}

.prose ol li {
  margin-bottom: 0.75rem;
  color: rgba(232, 232, 240, 0.9);
}

.prose blockquote {
  border-left: 4px solid #ffd700;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: rgba(232, 232, 240, 0.8);
  background: rgba(255, 215, 0, 0.05);
  border-radius: 0 8px 8px 0;
  position: relative;
}

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

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(26, 26, 46, 0.6);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  display: block;
  white-space: nowrap;
}

.prose table thead,
.prose table tbody,
.prose table tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.prose th,
.prose td {
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
  font-weight: 600;
  color: #ffd700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.prose td {
  color: rgba(232, 232, 240, 0.9);
}

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

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

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

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

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

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

  .prose h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
  }

  .prose p:first-of-type {
    font-size: 1rem;
  }

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

  .prose blockquote {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
  }

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

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

@media (max-width: 480px) {
  .prose {
    font-size: 0.875rem;
  }

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

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

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

  .prose th,
  .prose td {
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
  }
}

/* Particle System for Background */
.particle-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffd700;
  border-radius: 50%;
  opacity: 0.6;
}

.particle:nth-child(1) {
  top: 10%;
  left: 20%;
  animation: particleOrbit 12s linear infinite;
}
.particle:nth-child(2) {
  top: 30%;
  left: 80%;
  animation: particleOrbit 15s linear infinite reverse;
}
.particle:nth-child(3) {
  top: 60%;
  left: 10%;
  animation: particleOrbit 18s linear infinite;
}
.particle:nth-child(4) {
  top: 80%;
  left: 70%;
  animation: particleOrbit 20s linear infinite reverse;
}
.particle:nth-child(5) {
  top: 20%;
  left: 50%;
  animation: particleOrbit 14s linear infinite;
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffa500, #ff8c00);
}
