/* Custom animations and overrides */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes torchGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.6);
  }
}

/* Crimson Brocade Theme Variables */
:root {
  --crimson: #dc143c;
  --brass: #b5651d;
  --ruby: #e0115f;
  --ivory: #fffff0;
  --torch-glow: rgba(220, 20, 60, 0.2);
}

/* Brocade texture pattern */
.brocade-bg {
  background-image: radial-gradient(circle at 25% 25%, var(--brass) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, var(--crimson) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Ornamental borders */
.ornamental-border {
  border: 2px solid var(--brass);
  border-image: repeating-linear-gradient(
      45deg,
      var(--brass),
      var(--brass) 10px,
      var(--crimson) 10px,
      var(--crimson) 20px
    )
    2;
  position: relative;
}

.ornamental-border::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid var(--brass);
  opacity: 0.5;
  pointer-events: none;
}

/* Filigreed accents */
.filigree-accent {
  position: relative;
}

.filigree-accent::after {
  content: "❦";
  position: absolute;
  top: -10px;
  right: -10px;
  color: var(--brass);
  font-size: 1.2rem;
  opacity: 0.7;
}

/* Ruby-ivory gradient */
.ruby-ivory-gradient {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--ivory) 100%);
}

/* Torch glow effect */
.torch-glow {
  animation: torchGlow 3s ease-in-out infinite;
  background: radial-gradient(circle, var(--torch-glow) 0%, transparent 70%);
}

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

/* Marquee animation */
.marquee {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeScroll 20s linear infinite;
}

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

/* Prose styling for readability */
.prose {
  line-height: 1.7;
  color: #374151;
}

.prose h2 {
  color: var(--crimson);
  border-bottom: 2px solid var(--brass);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

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

.prose ul {
  margin: 1.25rem 0;
  padding-left: 1.5rem;
}

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

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

/* Custom button styles */
.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--ruby) 100%);
  border: 2px solid var(--brass);
  color: var(--ivory);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--brass);
  color: var(--brass);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--brass);
  color: var(--ivory);
}

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

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

/* Responsive utilities */
@media (max-width: 1023px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .mobile-only {
    display: none !important;
  }
}

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

/* Game card hover effects */
.game-card {
  transition: all 0.3s ease;
  border: 1px solid var(--brass);
}

.game-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

/* Bonus badge styling */
.bonus-badge {
  background: linear-gradient(135deg, var(--ruby) 0%, var(--crimson) 100%);
  border: 3px solid var(--brass);
  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.1), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Payment method icons */
.payment-icon {
  filter: sepia(1) hue-rotate(320deg) saturate(1.5);
  transition: filter 0.3s ease;
}

.payment-icon:hover {
  filter: none;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--brass);
}

.faq-question {
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--crimson);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 200px;
}
