/* Roman Empire Theme - Battle for Gold */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --gold: #8eb100;
  --dark-bg: #100c09;
  --gold-glow: rgba(142, 177, 0, 0.3);
}

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

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #100c09 0%, #1a1410 50%, #100c09 100%);
  color: #e8e8e8;
}

/* Headings with Roman feel */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
}

/* Parallax Animation */
@keyframes parallax-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

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

/* Pulsating Glow */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-glow);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 40px var(--gold-glow), 0 0 60px var(--gold-glow), 0 0 80px var(--gold-glow);
    transform: scale(1.02);
  }
}

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

/* Battle Shimmer */
@keyframes battle-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.battle-shimmer {
  background: linear-gradient(90deg, transparent, rgba(142, 177, 0, 0.2), transparent);
  background-size: 1000px 100%;
  animation: battle-shimmer 3s infinite;
}

/* Gold Text Shine */
@keyframes gold-shine {
  0%,
  100% {
    color: #8eb100;
    text-shadow: 0 0 10px rgba(142, 177, 0, 0.5);
  }
  50% {
    color: #a8d100;
    text-shadow: 0 0 20px rgba(142, 177, 0, 0.8), 0 0 30px rgba(142, 177, 0, 0.4);
  }
}

.gold-text {
  animation: gold-shine 2s ease-in-out infinite;
}

/* Floating Badge */
@keyframes float-badge {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Roman Pattern Background */
.roman-pattern {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 35px,
    rgba(142, 177, 0, 0.03) 35px,
    rgba(142, 177, 0, 0.03) 70px
  );
  position: relative;
}

.roman-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(142, 177, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(142, 177, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Gladiator Border */
.gladiator-border {
  position: relative;
  border: 2px solid rgba(142, 177, 0, 0.3);
}

.gladiator-border::before,
.gladiator-border::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #8eb100;
}

.gladiator-border::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.gladiator-border::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Slot Card Hover */
.slot-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.slot-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(142, 177, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.slot-card:hover::before {
  left: 100%;
}

.slot-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(142, 177, 0, 0.3);
}

/* CTA Button */
.cta-btn {
  background: linear-gradient(135deg, #8eb100 0%, #a8d100 100%);
  color: #100c09;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
  width: 300px;
  height: 300px;
}

.cta-btn:hover {
  box-shadow: 0 0 30px rgba(142, 177, 0, 0.6);
  transform: scale(1.05);
}

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

.mobile-menu-open {
  animation: slide-in 0.3s ease-out forwards;
}

/* Prose Styling */
.prose {
  max-width: 75ch;
  line-height: 1.7;
}

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

.prose ul,
.prose ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

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

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

.prose a {
  color: #8eb100;
  text-decoration: none;
  border-bottom: 1px solid rgba(142, 177, 0, 0.3);
  transition: all 0.3s ease;
}

.prose a:hover {
  color: #a8d100;
  border-bottom-color: #a8d100;
}

/* Wheel of Luck */
@keyframes spin-wheel {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wheel-spinning {
  animation: spin-wheel 4s cubic-bezier(0.17, 0.67, 0.12, 0.99) forwards;
}

/* Trophy Shine */
@keyframes trophy-shine {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-100%) skewX(-20deg);
  }
  50% {
    opacity: 1;
    transform: translateX(100%) skewX(-20deg);
  }
}

.trophy-shine {
  position: relative;
  overflow: hidden;
}

.trophy-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: trophy-shine 3s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .parallax-element {
    animation: none;
  }
}

/* Battle Stat Bar */
.stat-bar {
  position: relative;
  background: rgba(142, 177, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #8eb100, #a8d100);
  border-radius: 999px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px rgba(142, 177, 0, 0.5);
}

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

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
