/* Imperial Spinhall Custom Styles */

/* Keyframe Animations */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

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

@keyframes spin-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
  }
}

@keyframes strobe-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.marquee-content:hover {
  animation-play-state: paused;
}

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

.parallax-hero {
  transform: translateZ(0);
  will-change: transform;
}

/* Imperial Opal Gradient */
.opal-gradient {
  background: linear-gradient(135deg, #1A2B4A, #4A5FBD, #6B7FD7, #1A2B4A);
  background-size: 300% 300%;
  animation: opal-shimmer 8s ease infinite;
}

/* Gilded Elements */
.gilded-border {
  border: 2px solid #D4AF37;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

.gilded-text {
  background: linear-gradient(135deg, #F4E4C1, #D4AF37, #F4E4C1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: opal-shimmer 4s ease infinite;
}

/* Strobe Accent */
.strobe-accent {
  animation: strobe-pulse 2s ease-in-out infinite;
}

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

/* Prose Styling for Readability */
.prose-imperial {
  line-height: 1.7;
  color: #E5E7EB;
}

.prose-imperial p {
  margin-bottom: 1.25rem;
}

.prose-imperial h2 {
  color: #F4E4C1;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.025em;
}

.prose-imperial h3 {
  color: #D4AF37;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.prose-imperial ul, .prose-imperial ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-imperial li {
  margin-bottom: 0.5rem;
}

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

.prose-imperial a {
  color: #6B7FD7;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose-imperial a:hover {
  color: #D4AF37;
}

.prose-imperial table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose-imperial th {
  background: rgba(26, 43, 74, 0.6);
  color: #F4E4C1;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.prose-imperial td {
  padding: 0.75rem;
  border: 1px solid rgba(74, 95, 189, 0.3);
  color: #E5E7EB;
}

.prose-imperial tr:nth-child(even) {
  background: rgba(26, 43, 74, 0.3);
}

.prose-imperial img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 2rem 0;
  border: 2px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.prose-imperial blockquote {
  border-left: 4px solid #D4AF37;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #F4E4C1;
  background: rgba(26, 43, 74, 0.3);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
}

.prose-imperial code {
  background: rgba(26, 43, 74, 0.6);
  color: #6B7FD7;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.prose-imperial pre {
  background: rgba(10, 22, 40, 0.8);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(74, 95, 189, 0.3);
}

.prose-imperial hr {
  border: none;
  border-top: 2px solid rgba(212, 175, 55, 0.3);
  margin: 2rem 0;
}

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

/* Imperial Pattern Background */
.imperial-pattern {
  background-color: #0A1628;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(74, 95, 189, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(107, 127, 215, 0.1) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 175, 55, 0.03) 35px, rgba(212, 175, 55, 0.03) 70px);
}

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

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4A5FBD, #D4AF37);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6B7FD7, #F4E4C1);
}

/* Button Enhancements */
.btn-imperial {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-imperial::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 228, 193, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-imperial:hover::before {
  left: 100%;
}

/* Card Hover Effects */
.card-imperial {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-imperial:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

/* Badge Styling */
.badge-imperial {
  background: linear-gradient(135deg, #D4AF37, #F4E4C1);
  color: #0A1628;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Game Card Styling */
.game-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid rgba(74, 95, 189, 0.3);
}

.game-card:hover {
  border-color: #D4AF37;
  transform: scale(1.05);
}

/* Step Badge */
.step-badge {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #D4AF37, #F4E4C1);
  color: #0A1628;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Provider Cloud */
.provider-tag {
  background: rgba(26, 43, 74, 0.6);
  border: 1px solid rgba(107, 127, 215, 0.4);
  color: #E5E7EB;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  display: inline-block;
  margin: 0.25rem;
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(74, 95, 189, 0.4);
  border-color: #D4AF37;
  color: #F4E4C1;
}

/* Disclaimer Styling */
.disclaimer {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-style: italic;
  line-height: 1.4;
}

/* Mobile Menu */
.mobile-menu {
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.hidden {
  transform: translateX(-100%);
}

/* Focus Styles */
a:focus, button:focus {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}
