/* ============================================
   ASTROMANIA CUSTOM STYLES
   Space-themed casino with animations
   ============================================ */

/* === KEYFRAME ANIMATIONS === */

/* Parallax stars animation */
@keyframes float-stars {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
  }
  75% {
    transform: translateY(-15px) translateX(3px);
  }
}

/* Marquee scroll animation */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pulse glow for CTAs */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8), 0 0 60px rgba(139, 92, 246, 0.4);
  }
}

/* Floating animation for bonus badge */
@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

/* Starfield twinkle */
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* === UTILITY CLASSES === */

.parallax-stars {
  animation: float-stars 8s ease-in-out infinite;
}

.parallax-stars-slow {
  animation: float-stars 12s ease-in-out infinite;
}

.marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.marquee-content {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

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

.pulse-glow-btn {
  animation: pulse-glow 2s ease-in-out infinite;
}

.float-badge {
  animation: float-badge 3s ease-in-out infinite;
}

.twinkle-star {
  animation: twinkle 3s ease-in-out infinite;
}

/* === SPACE THEME BACKGROUNDS === */

.space-bg {
  background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #0f1729 100%);
  position: relative;
}

.space-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, white, transparent),
    radial-gradient(2px 2px at 60% 70%, white, transparent), radial-gradient(1px 1px at 50% 50%, white, transparent),
    radial-gradient(1px 1px at 80% 10%, white, transparent), radial-gradient(2px 2px at 90% 60%, white, transparent),
    radial-gradient(1px 1px at 33% 80%, white, transparent);
  background-size: 200% 200%;
  opacity: 0.6;
  pointer-events: none;
}

.nebula-purple {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}

.nebula-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

.cosmic-gradient {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}

/* === PROSE STYLING FOR READABILITY === */

.prose-casino {
  color: #e2e8f0;
  line-height: 1.7;
}

.prose-casino h1 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
  position: relative;
}

.prose-casino h1::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #8b5cf6 0%, #fbbf24 100%);
  border-radius: 2px;
}

.prose-casino h2 {
  color: #f1f5f9;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1.25rem;
}

.prose-casino h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 6px;
  height: 1.5rem;
  background: linear-gradient(180deg, #8b5cf6 0%, #a855f7 100%);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.prose-casino h3 {
  color: #f1f5f9;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.prose-casino h3::before {
  content: "★";
  color: #fbbf24;
  margin-right: 0.5rem;
  font-size: 1.25rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.8);
}

.prose-casino p {
  margin-bottom: 1.25rem;
  font-size: 1.0625rem;
}

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

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

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

.prose-casino a {
  color: #60a5fa;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #93c5fd;
}

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

.prose-casino th {
  background: rgba(99, 102, 241, 0.2);
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.prose-casino td {
  padding: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* === CUSTOM COMPONENTS === */

.bonus-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: 3px solid #fff;
  box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
}

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
  border-color: rgba(139, 92, 246, 0.6);
}

.trustpilot-star {
  color: #00b67a;
}

.island-card {
  background: rgba(30, 27, 75, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === STICKY ELEMENTS === */

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 39, 0.95);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.sticky-bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 39, 0.95);
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.75rem 0;
}

/* === RESPONSIVE UTILITIES === */

/* Responsive heading sizes */
@media (max-width: 768px) {
  .prose-casino h1 {
    font-size: 2rem;
  }
  
  .prose-casino h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }
  
  .prose-casino h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 14, 39, 0.98);
    transition: left 0.3s ease;
    z-index: 60;
    overflow-y: auto;
  }

  .mobile-menu.active {
    left: 0;
  }

  .mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 55;
    display: none;
  }

  .mobile-overlay.active {
    display: block;
  }
}

/* === SMOOTH SCROLL === */

html {
  scroll-behavior: smooth;
}

/* === PAYMENT METHOD ICONS === */

.payment-icon {
  width: 80px;
  height: 50px;
  background: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.875rem;
}

/* === CALCULATOR FORM === */

.calculator-input {
  background: rgba(30, 27, 75, 0.6);
  border: 2px solid rgba(139, 92, 246, 0.3);
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  width: 100%;
  transition: border-color 0.2s;
}

.calculator-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
}

/* === ACCESSIBILITY === */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === PRINT STYLES === */

@media print {
  .sticky-nav,
  .sticky-bottom-menu,
  .mobile-menu {
    display: none;
  }
}
