/* =============================================
   TIKAL CASINO - CUSTOM STYLES
   Ancient Glyph Radiance Theme
   ============================================= */

/* ----- ROOT VARIABLES ----- */
:root {
  --aqua-primary: #00d9d9;
  --jade-primary: #1a9f7a;
  --jade-darker: #0d6b51;
  --gold-warm: #d4af37;
  --gold-light: #f4d58d;
  --dark-backdrop: #0a0f14;
  --dark-surface: #141b24;
  --dark-elevated: #1c2835;
  --text-bright: #e8f4f2;
  --text-muted: #9ca8b3;
  --glow-aqua: rgba(0, 217, 217, 0.4);
  --glow-jade: rgba(26, 159, 122, 0.3);
}

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

@keyframes particle-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(var(--float-x, 20px), var(--float-y, -30px)) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
}

@keyframes glyph-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px var(--glow-aqua)) brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 16px var(--glow-jade)) brightness(1.3);
  }
}

@keyframes gentle-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

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

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.particle-effect {
  position: absolute;
  pointer-events: none;
  animation: particle-float 4s ease-in-out infinite;
}

.glyph-animated {
  animation: glyph-glow 3s ease-in-out infinite;
}

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

.shimmer-text {
  background: linear-gradient(90deg, var(--text-bright) 0%, var(--gold-light) 50%, var(--text-bright) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer-sweep 3s linear infinite;
}

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

/* ----- PROSE STYLING (MARKDOWN CONTENT) ----- */

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

.prose h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.875em;
  line-height: 1.3;
  color: var(--aqua-primary);
  letter-spacing: -0.02em;
}

.prose h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-top: 1.6em;
  margin-bottom: 0.75em;
  line-height: 1.4;
  color: var(--jade-primary);
}

.prose h4 {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.6em;
  color: var(--gold-warm);
}

.prose p {
  margin-bottom: 1.25em;
  color: var(--text-bright);
}

.prose a {
  color: var(--aqua-primary);
  text-decoration: underline;
  text-decoration-color: var(--jade-primary);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

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

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

.prose ul,
.prose ol {
  margin-top: 1em;
  margin-bottom: 1.25em;
  padding-left: 1.75em;
}

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

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

.prose li {
  margin-bottom: 0.5em;
  padding-left: 0.375em;
  color: var(--text-bright);
}

.prose li::marker {
  color: var(--jade-primary);
}

.prose blockquote {
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1.25em;
  border-left: 0.25rem solid var(--jade-primary);
  font-style: italic;
  color: var(--text-muted);
  background: var(--dark-elevated);
  padding: 1em 1.25em;
  border-radius: 0.375rem;
}

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

.prose th {
  background: var(--jade-darker);
  color: var(--text-bright);
  font-weight: 600;
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 2px solid var(--aqua-primary);
}

.prose td {
  padding: 0.75em 1em;
  border-bottom: 1px solid var(--dark-elevated);
  color: var(--text-bright);
}

.prose tr:hover td {
  background: var(--dark-elevated);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.prose code {
  background: var(--dark-elevated);
  color: var(--aqua-primary);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: "Courier New", monospace;
}

.prose pre {
  background: var(--dark-elevated);
  color: var(--text-bright);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

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

/* ----- TABLE RESPONSIVE WRAPPER ----- */

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

/* ----- SMOOTH SCROLL ----- */

html {
  scroll-behavior: smooth;
}

/* ----- GLOBAL OVERFLOW CONTROL ----- */

html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

/* ----- BACKGROUND PATTERNS ----- */

.glyph-pattern {
  background-image: radial-gradient(circle at 20% 30%, var(--glow-aqua) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--glow-jade) 0%, transparent 50%);
  background-size: 100% 100%;
  background-attachment: fixed;
}

.stone-texture {
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(26, 159, 122, 0.03) 10px,
    rgba(26, 159, 122, 0.03) 20px
  );
}

/* ----- CTA BUTTON ENHANCEMENTS ----- */

.btn-cta-primary {
  background: linear-gradient(135deg, var(--jade-primary), var(--aqua-primary));
  box-shadow: 0 4px 16px var(--glow-jade);
  transition: all 0.3s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--glow-aqua);
}

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

.btn-cta-secondary:hover {
  background: var(--gold-warm);
  color: var(--dark-backdrop);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

/* ----- BADGE STYLING ----- */

.bonus-badge {
  background: linear-gradient(135deg, var(--jade-darker), var(--aqua-primary));
  border: 2px solid var(--gold-warm);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* ----- CARD EFFECTS ----- */

.game-card {
  background: var(--dark-surface);
  border: 1px solid rgba(26, 159, 122, 0.3);
  transition: all 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: var(--aqua-primary);
  box-shadow: 0 12px 32px var(--glow-jade);
}

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

@media (max-width: 1023px) {
  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    margin-top: 1.6em;
  }

  .prose h3 {
    margin-top: 1.4em;
  }
}

@media (max-width: 640px) {
  .prose {
    font-size: 0.875rem;
  }

  .prose ul,
  .prose ol {
    padding-left: 1.25em;
  }

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

  .prose th,
  .prose td {
    padding: 0.5em 0.75em;
  }
}
