/* =====================================================
   GLORION CASINO - SOLAR GLORY RISE THEME
   Custom CSS: Keyframes, Animations & Prose Styling
   ===================================================== */

/* -----------------------------------------------------
   CSS CUSTOM PROPERTIES
   ----------------------------------------------------- */
:root {
  --gold-primary: #d4a853;
  --gold-light: #f5d98a;
  --gold-dark: #a67c00;
  --gold-glow: #ffe4a0;
  --bg-dark: #1a1510;
  --bg-darker: #0f0d0a;
  --bg-card: #241e16;
  --bg-card-hover: #2e2519;
  --text-light: #f5f0e6;
  --text-muted: #bdb3a3;
  --accent-warm: #e8a03e;
  --accent-red: #c94a4a;
  --success-green: #4caf50;
}

/* -----------------------------------------------------
   KEYFRAME ANIMATIONS
   ----------------------------------------------------- */

/* Particle float animation */
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-1.5rem) translateX(0.5rem) scale(1.1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-2.5rem) translateX(-0.5rem) scale(1);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-1rem) translateX(0.75rem) scale(1.05);
    opacity: 0.85;
  }
}

/* Light ray animation */
@keyframes rayPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1) rotate(var(--ray-angle, 0deg));
  }
  50% {
    opacity: 0.6;
    transform: scaleY(1.1) rotate(var(--ray-angle, 0deg));
  }
}

/* Tilt animation for cards */
@keyframes tiltHover {
  0%,
  100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
  }
  75% {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg);
  }
}

/* Glow pulse animation */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 1.25rem rgba(212, 168, 83, 0.3);
  }
  50% {
    box-shadow: 0 0 2.5rem rgba(212, 168, 83, 0.6);
  }
}

/* Shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Badge bounce */
@keyframes badgeBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-1.875rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* -----------------------------------------------------
   ANIMATION UTILITY CLASSES
   ----------------------------------------------------- */

.animate-particle {
  animation: particleFloat 6s ease-in-out infinite;
}

.animate-particle-delay-1 {
  animation: particleFloat 7s ease-in-out infinite 0.5s;
}

.animate-particle-delay-2 {
  animation: particleFloat 8s ease-in-out infinite 1s;
}

.animate-particle-delay-3 {
  animation: particleFloat 6.5s ease-in-out infinite 1.5s;
}

.animate-tilt {
  animation: tiltHover 4s ease-in-out infinite;
}

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

.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 83, 0.2) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.animate-badge {
  animation: badgeBounce 2s ease-in-out infinite;
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

/* Light rays */
.light-ray {
  position: absolute;
  width: 0.125rem;
  height: 100%;
  background: linear-gradient(to top, transparent, var(--gold-glow), transparent);
  opacity: 0.3;
  animation: rayPulse 4s ease-in-out infinite;
}

.light-ray:nth-child(1) {
  --ray-angle: -30deg;
  left: 10%;
}
.light-ray:nth-child(2) {
  --ray-angle: -15deg;
  left: 25%;
  animation-delay: 0.5s;
}
.light-ray:nth-child(3) {
  --ray-angle: 0deg;
  left: 50%;
  animation-delay: 1s;
}
.light-ray:nth-child(4) {
  --ray-angle: 15deg;
  left: 75%;
  animation-delay: 1.5s;
}
.light-ray:nth-child(5) {
  --ray-angle: 30deg;
  left: 90%;
  animation-delay: 2s;
}

/* Particle elements */
.particle {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--gold-light);
  border-radius: 50%;
  pointer-events: none;
}

.particle-lg {
  width: 0.5rem;
  height: 0.5rem;
}

.particle-sm {
  width: 0.25rem;
  height: 0.25rem;
}

/* -----------------------------------------------------
   COMPONENT OVERRIDES
   ----------------------------------------------------- */

/* Primary CTA Button */
.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  color: var(--bg-darker);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.875rem rgba(212, 168, 83, 0.4);
}

/* Secondary CTA Button */
.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(212, 168, 83, 0.15);
  border-color: var(--gold-light);
}

/* Game card with tilt */
.game-card {
  background: var(--bg-card);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.game-card:hover {
  transform: translateY(-0.375rem) scale(1.02);
  border-color: var(--gold-primary);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.4);
}

/* Bonus badge */
.bonus-badge {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-darker) 100%);
  border: 0.125rem solid var(--gold-primary);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.bonus-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Step badges */
.step-badge {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bg-darker);
  box-shadow: 0 0.25rem 1rem rgba(212, 168, 83, 0.4);
}

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

/* Promo card */
.promo-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(36, 30, 22, 0.8) 100%);
  border: 1px solid rgba(212, 168, 83, 0.25);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.promo-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-0.25rem);
}

/* FAQ Accordion */
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold-light);
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(212, 168, 83, 0.1);
}

.faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  display: none;
}

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

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Navigation */
.nav-link {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  position: relative;
}

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

.nav-link:hover {
  color: var(--gold-light);
}

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

/* Mobile menu */
.mobile-menu {
  background: var(--bg-darker);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-top: 5rem;
}

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

/* Burger button */
.burger-btn {
  background: var(--bg-darker);
  border: 1px solid var(--gold-primary);
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 10000;
}

.burger-line {
  display: block;
  width: 1.5rem;
  height: 0.125rem;
  background: var(--gold-light);
  margin: 0.375rem 0;
  transition: all 0.3s ease;
}

/* 18+ badge */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid var(--accent-red);
  border-radius: 50%;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Provider cloud */
.provider-tag {
  display: inline-block;
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-light);
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin: 0.25rem;
  border: 1px solid rgba(212, 168, 83, 0.3);
  transition: all 0.3s ease;
}

.provider-tag:hover {
  background: rgba(212, 168, 83, 0.25);
  border-color: var(--gold-primary);
}

/* -----------------------------------------------------
   PROSE STYLING FOR MARKDOWN CONTENT
   ----------------------------------------------------- */

.prose {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Headings */
.prose h2 {
  color: var(--gold-light);
  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, 168, 83, 0.3);
  line-height: 1.3;
}

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

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

/* Paragraphs */
.prose p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.prose p:first-of-type {
  font-size: 1.1em;
  color: var(--text-light);
}

/* Links in prose */
.prose a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 83, 0.4);
  text-underline-offset: 0.25em;
  transition: all 0.3s ease;
}

.prose a:hover {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

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

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

.prose ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.625rem;
  color: var(--text-muted);
}

.prose ul li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-size: 0.625rem;
  top: 0.5em;
}

.prose ol {
  list-style-type: none;
  counter-reset: item;
}

.prose ol li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.625rem;
  color: var(--text-muted);
  counter-increment: item;
}

.prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--gold-primary);
  font-weight: 600;
}

/* Tables */
.prose .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  border: 1px solid rgba(212, 168, 83, 0.2);
}

.prose table {
  width: 100%;
  min-width: 30rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.2) 0%, rgba(166, 124, 0, 0.2) 100%);
}

.prose th {
  color: var(--gold-light);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 0.125rem solid var(--gold-primary);
  white-space: nowrap;
}

.prose td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
  color: var(--text-muted);
}

.prose tbody tr {
  transition: background 0.3s ease;
}

.prose tbody tr:hover {
  background: rgba(212, 168, 83, 0.08);
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

/* Blockquotes */
.prose blockquote {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.1) 0%, rgba(36, 30, 22, 0.8) 100%);
  border-left: 0.25rem solid var(--gold-primary);
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

.prose blockquote p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* Code blocks */
.prose code {
  background: rgba(212, 168, 83, 0.15);
  color: var(--gold-light);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: var(--bg-darker);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 0.5rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

/* Images */
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid rgba(212, 168, 83, 0.2);
}

/* Horizontal rule */
.prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 2.5rem 0;
}

/* Strong and emphasis */
.prose strong {
  color: var(--gold-light);
  font-weight: 600;
}

.prose em {
  color: var(--text-light);
  font-style: italic;
}

/* -----------------------------------------------------
   RESPONSIVE UTILITIES
   ----------------------------------------------------- */

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

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

/* Selection styling */
::selection {
  background: rgba(212, 168, 83, 0.3);
  color: var(--text-light);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 0.125rem solid var(--gold-primary);
  outline-offset: 0.125rem;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}
