/* Ragnaro Casino - Dark Blue Snowy Viking Theme */

:root {
  --frost-blue: #0a1929;
  --ice-blue: #1a2942;
  --snow-white: #f0f4f8;
  --gold-glow: #ffd700;
  --silver-ice: #c0d8e8;
  --night-black: #000814;
  --viking-gold: #ffb800;
  --frost-glow: #4fc3f7;
}

/* Keyframe Animations */
@keyframes snowfall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.3;
  }
}

@keyframes aurora {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0) scaleY(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-20px) scaleY(1.1);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 0 40px rgba(255, 215, 0, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes spin-wheel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Background Effects */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #0a1929 0%, #1a2942 50%, #0d1b2a 100%);
}

.aurora-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.1), transparent);
  animation: aurora 8s ease-in-out infinite;
}

.snowflake {
  position: fixed;
  top: -10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1em;
  pointer-events: none;
  z-index: 1;
  animation: snowfall linear infinite;
}

/* Custom Utilities */
.text-balance {
  text-wrap: balance;
}

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

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

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* Frost Glass Effect */
.frost-glass {
  background: rgba(26, 41, 66, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ice Border */
.ice-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(var(--frost-blue), var(--ice-blue)) padding-box,
    linear-gradient(135deg, rgba(192, 216, 232, 0.5), rgba(79, 195, 247, 0.3)) border-box;
}

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

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

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

/* Marquee Effect */
.marquee-container {
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
  padding: 8px 0;
}

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

/* Prose Styling for Content Readability */
.prose {
  max-width: 65ch;
  line-height: 1.75;
}

.prose h2 {
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.25em;
}

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

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose strong {
  font-weight: 600;
  color: var(--gold-glow);
}

.prose a {
  color: var(--frost-glow);
  text-decoration: underline;
  text-decoration-color: rgba(79, 195, 247, 0.3);
  transition: all 0.2s;
}

.prose a:hover {
  color: var(--gold-glow);
  text-decoration-color: var(--gold-glow);
}

/* Card Hover Effects */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 195, 247, 0.2);
}

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

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

::-webkit-scrollbar-track {
  background: var(--frost-blue);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-glow), var(--viking-gold));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-glow);
}

/* Responsive Typography */
@media (max-width: 640px) {
  .prose {
    font-size: 0.95rem;
  }
}

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
}

/* Countdown Animation */
@keyframes countdown-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.countdown {
  animation: countdown-pulse 1s ease-in-out;
}

/* Ice Crack Pattern */
.ice-pattern {
  background-image: linear-gradient(
      30deg,
      transparent 12%,
      rgba(255, 255, 255, 0.05) 12%,
      rgba(255, 255, 255, 0.05) 13%,
      transparent 13%
    ),
    linear-gradient(
      150deg,
      transparent 12%,
      rgba(255, 255, 255, 0.05) 12%,
      rgba(255, 255, 255, 0.05) 13%,
      transparent 13%
    );
  background-size: 50px 50px;
}
