/* Custom animations and overrides for Togawin Casino */

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

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

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

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

/* Roman Empire Background Pattern */
.roman-pattern {
  background-color: #0a1628;
  background-image: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 35px,
      rgba(197, 155, 89, 0.03) 35px,
      rgba(197, 155, 89, 0.03) 70px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 35px,
      rgba(197, 155, 89, 0.03) 35px,
      rgba(197, 155, 89, 0.03) 70px
    );
}

/* Gold Accent Colors */
.text-gold {
  color: #c59b59;
}

.bg-gold {
  background-color: #c59b59;
}

.border-gold {
  border-color: #c59b59;
}

/* Content Prose Styling */
.prose {
  max-width: 65ch;
  color: #e2e8f0;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: #c59b59;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

.prose h1 {
  font-size: 2.25em;
  line-height: 1.1;
}

.prose h2 {
  font-size: 1.875em;
  line-height: 1.2;
}

.prose h3 {
  font-size: 1.5em;
  line-height: 1.3;
}

.prose p {
  margin-top: 1em;
  margin-bottom: 1em;
  line-height: 1.75;
}

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

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

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

.prose a {
  color: #60a5fa;
  text-decoration: underline;
}

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

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

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(197, 155, 89, 0.3), 0 10px 10px -5px rgba(197, 155, 89, 0.2);
}

/* Sticky CTA Banner */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* Mobile Menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Button Shimmer Effect */
.btn-shimmer {
  background: linear-gradient(90deg, #c59b59 0%, #d4af6a 50%, #c59b59 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

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

::-webkit-scrollbar-thumb {
  background: #c59b59;
  border-radius: 5px;
}

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

/* Loading Spinner */
.spinner {
  border: 4px solid rgba(197, 155, 89, 0.1);
  border-left-color: #c59b59;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

/* Roman Column Decorations */
.roman-border {
  border-left: 4px solid #c59b59;
  border-right: 4px solid #c59b59;
  position: relative;
}

.roman-border::before,
.roman-border::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  height: 20px;
  background: linear-gradient(90deg, #c59b59, #d4af6a, #c59b59);
}

.roman-border::before {
  top: 0;
}

.roman-border::after {
  bottom: 0;
}
