/* Golden Citadel Flow Theme - Custom CSS */
/* Keyframes & Animations */

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

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

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

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

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

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

/* Animation Classes */
.animate-marquee {
  animation: marquee 25s linear 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-pulse-gold {
  animation: pulse-gold 2s ease-in-out infinite;
}

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

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

/* Parallax Effect */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 1024px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Marble Texture Pattern */
.marble-texture {
  background-color: #1a1a2e;
  background-image: radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 115, 85, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 22, 38, 0.95) 100%);
}

/* Gold Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, #d4af37 0%, #f4e4bc 50%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.btn-primary:hover {
  background: linear-gradient(135deg, #e5c349 0%, #d4af37 100%);
  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.75rem 1.75rem;
  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: #f4e4bc;
  border-color: #f4e4bc;
}

/* Card Styles */
.card-citadel {
  background: linear-gradient(145deg, rgba(35, 35, 55, 0.9) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
  border-radius: 1rem;
  backdrop-filter: blur(0.625rem);
}

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

/* Table Responsive Wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-responsive::-webkit-scrollbar {
  height: 0.375rem;
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(26, 26, 46, 0.5);
  border-radius: 0.1875rem;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 0.1875rem;
}

/* Navigation Styles */
.nav-link {
  color: #e8e8e8;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0.125rem;
  background: #d4af37;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

/* Burger Menu */
.burger-menu {
  background: rgba(26, 26, 46, 1);
  border: 0.0625rem solid rgba(212, 175, 55, 0.3);
  padding: 0.5rem;
  border-radius: 0.375rem;
}

/* Mobile Menu */
.mobile-menu {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(1.25rem);
}

/* Badge Styles */
.badge-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
  color: #1a1a2e;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.badge-step {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #d4af37 0%, #b8962e 100%);
  color: #1a1a2e;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Prose Styling for Markdown Content */
.prose {
  color: #e8e8e8;
  line-height: 1.75;
  max-width: 100%;
}

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

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

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

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

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

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

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

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

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

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.5rem;
  color: #c8c8d0;
  padding-left: 0.5rem;
}

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

.prose blockquote {
  border-left: 0.25rem solid #d4af37;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(212, 175, 55, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #e8e8e8;
}

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

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

.prose thead {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 150, 46, 0.15) 100%);
}

.prose th {
  color: #d4af37;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 0.125rem solid rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}

.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 0.0625rem solid rgba(212, 175, 55, 0.1);
  color: #c8c8d0;
}

.prose tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  margin: 2rem 0;
}

.prose code {
  background: rgba(212, 175, 55, 0.1);
  color: #f4e4bc;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(26, 26, 46, 0.8);
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

/* FAQ Accordion Styles */
.faq-item {
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(35, 35, 55, 0.5);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: transparent;
  border: none;
  color: #e8e8e8;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: #d4af37;
  background: rgba(212, 175, 55, 0.05);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: #c8c8d0;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question {
  color: #d4af37;
}

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

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.5);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}

/* Game Card Hover Effect */
.game-card {
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-0.5rem) scale(1.02);
}

.game-card:hover img {
  box-shadow: 0 0.75rem 2rem rgba(212, 175, 55, 0.3);
}

/* Promo Card */
.promo-card {
  background: linear-gradient(145deg, rgba(45, 45, 65, 0.9) 0%, rgba(30, 30, 50, 0.95) 100%);
  border: 0.0625rem solid rgba(212, 175, 55, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-0.25rem);
  box-shadow: 0 0.5rem 1.5rem rgba(212, 175, 55, 0.2);
}

/* Footer Links */
.footer-link {
  color: #a0a0b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* 18+ Badge */
.age-badge {
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid #d4af37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Provider Cloud */
.provider-tag {
  background: rgba(212, 175, 55, 0.1);
  border: 0.0625rem solid rgba(212, 175, 55, 0.3);
  color: #c8c8d0;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0.25rem;
}

.provider-tag:hover {
  background: rgba(212, 175, 55, 0.2);
  color: #d4af37;
  border-color: #d4af37;
}

/* Radiant Highlights */
.radiant-glow {
  position: relative;
}

.radiant-glow::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: rotate-slow 30s linear infinite;
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .prose h2 {
    margin-top: 2rem;
  }

  .prose h3 {
    margin-top: 1.5rem;
  }

  .prose table {
    font-size: 0.875rem;
  }

  .prose th,
  .prose td {
    padding: 0.625rem 0.75rem;
  }
}
