/* Rabona Prestige Field Flow - Custom CSS */
/* Animation Keyframes */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 1.5rem rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(212, 175, 55, 0.7);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.625rem);
  }
}

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

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

/* Animation Classes */
.animate-marquee {
  animation: marquee 25s linear infinite;
}

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

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

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.animate-spin-slow {
  animation: spin-slow 20s linear infinite;
}

/* Parallax */
.parallax-container {
  perspective: 1px;
  overflow-y: auto;
  overflow-x: hidden;
}

.parallax-layer {
  transform: translateZ(-1px) scale(2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 0.5rem;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1a472a, #d4af37);
  border-radius: 0.25rem;
}

/* Table Responsive */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  display: block;
}

/* Prose Styling */
.prose {
  color: #e8f5e9;
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: #d4af37;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 0.125rem solid rgba(212, 175, 55, 0.3);
  line-height: 1.3;
}

.prose h3 {
  color: #81c784;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.prose h4 {
  color: #a5d6a7;
  font-size: clamp(1.125rem, 2.5vw, 1.25rem);
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

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

.prose a {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 0.125rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: #ffd54f;
}

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

.prose em {
  color: #a5d6a7;
  font-style: italic;
}

.prose ul {
  list-style-type: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose ol {
  list-style-type: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose li {
  margin-bottom: 0.5em;
  color: #c8e6c9;
  padding-left: 0.5em;
}

.prose li::marker {
  color: #d4af37;
}

.prose blockquote {
  border-left: 0.25rem solid #d4af37;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: rgba(26, 71, 42, 0.5);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #a5d6a7;
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5em 0;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, #1a472a, #0d2818);
}

.prose th {
  color: #d4af37;
  font-weight: 600;
  text-align: left;
  padding: 1em;
  border-bottom: 0.125rem solid #d4af37;
  white-space: nowrap;
}

.prose td {
  padding: 1em;
  border-bottom: 0.0625rem solid rgba(129, 199, 132, 0.2);
  color: #c8e6c9;
}

.prose tbody tr:hover {
  background: rgba(26, 71, 42, 0.3);
}

.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, #d4af37, transparent);
  margin: 2.5em 0;
}

.prose code {
  background: rgba(26, 71, 42, 0.6);
  color: #81c784;
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(10, 31, 10, 0.8);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 0.0625rem solid rgba(129, 199, 132, 0.2);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #d4af37, #ffd54f, #d4af37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8960c);
  color: #0a1f0a;
  font-weight: 700;
  padding: 1em 2em;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.5rem rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid #d4af37;
  color: #d4af37;
  font-weight: 600;
  padding: 0.875em 1.75em;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #ffd54f;
}

/* Card Styles */
.card-glow {
  background: linear-gradient(145deg, rgba(26, 71, 42, 0.8), rgba(10, 31, 10, 0.9));
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card-glow:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 0.5rem 2rem rgba(212, 175, 55, 0.15);
  transform: translateY(-0.25rem);
}

/* Nav Active State */
.nav-link {
  position: relative;
  color: #c8e6c9;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 0.125rem;
  background: #d4af37;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #d4af37;
}

.nav-link:hover::after {
  width: 100%;
}

/* SVG Pattern Background */
.pattern-field {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a472a' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.pattern-diagonal {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4af37' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='m0 40 40-40h-20l-20 20zm40 0v-20l-20 20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hero Background */
.hero-gradient {
  background: linear-gradient(180deg, rgba(10, 31, 10, 0.7) 0%, rgba(10, 31, 10, 0.95) 100%);
}

/* Focus States */
a:focus,
button:focus {
  outline: 0.125rem solid #d4af37;
  outline-offset: 0.125rem;
}

/* Mobile Menu */
.mobile-menu-open {
  overflow: hidden;
}

/* Step Badge */
.step-badge {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #d4af37, #b8960c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1f0a;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Game Card */
.game-card {
  flex: 0 0 auto;
  width: 16rem;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: scale(1.05);
}

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

/* Media Queries for Prose */
@media (max-width: 48rem) {
  .prose {
    font-size: 1rem;
  }

  .prose th,
  .prose td {
    padding: 0.75em;
    font-size: 0.875rem;
  }
}
