/* ============================================
   Glorion Casino - Crownlight Ascend Theme
   Custom CSS: Animations, Overrides & Prose
   ============================================ */

/* -------------------------
   Root Variables
   ------------------------- */
:root {
  --gold-primary: #d4af37;
  --gold-light: #f4e4bc;
  --gold-dark: #b8960c;
  --black-primary: #0a0a0a;
  --dark-bg: #121212;
  --darker-bg: #1a1a1a;
  --gray-bg: #2a2a2a;
  --light-text: #e8e8e8;
  --cream-text: #faf7f0;
}

/* -------------------------
   Global Overrides
   ------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow-x: clip;
}

/* -------------------------
   Vertical Light Beams
   ------------------------- */
.light-beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 20%,
    rgba(212, 175, 55, 0.6) 50%,
    rgba(212, 175, 55, 0.3) 80%,
    transparent 100%
  );
  opacity: 0.5;
  animation: beam-pulse 4s ease-in-out infinite;
}

.light-beam-1 {
  left: 15%;
  animation-delay: 0s;
}

.light-beam-2 {
  left: 50%;
  animation-delay: 1.5s;
}

.light-beam-3 {
  right: 15%;
  animation-delay: 3s;
}

@keyframes beam-pulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scaleY(0.95);
  }
  50% {
    opacity: 0.6;
    transform: scaleY(1.02);
  }
}

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

.animate-shimmer {
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

/* -------------------------
   Tilt Card Effect
   ------------------------- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tilt-card:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* -------------------------
   Game Card Animations
   ------------------------- */
.game-card {
  transition: transform 0.3s ease;
}

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

/* -------------------------
   Step Card Hover
   ------------------------- */
.step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, var(--gold-primary) 50%, transparent 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.step-card:hover::before {
  opacity: 0.5;
}

/* -------------------------
   Promo Card Hover
   ------------------------- */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: 0 1.25rem 2.5rem -0.75rem rgba(212, 175, 55, 0.15);
}

/* -------------------------
   Review Block Styles
   ------------------------- */
.review-block {
  transition: border-color 0.3s ease;
}

.review-block:hover {
  border-color: rgba(212, 175, 55, 0.4);
}

/* -------------------------
   FAQ Accordion Styles
   ------------------------- */
.faq-toggle i {
  transition: transform 0.3s ease;
}

.faq-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

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

.table-responsive table {
  min-width: 100%;
}

/* -------------------------
   Prose Styling for Content
   ------------------------- */
.prose {
  color: var(--light-text);
  line-height: 1.75;
  font-size: 1rem;
}

.prose > * + * {
  margin-top: 1.5em;
}

/* Headings */
.prose h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--cream-text);
  margin-top: 2.5em;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prose h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.prose h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream-text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Paragraphs */
.prose p {
  color: rgba(232, 232, 232, 0.85);
  margin-bottom: 1.25em;
}

/* Links */
.prose a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

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

/* Strong & Emphasis */
.prose strong {
  color: var(--cream-text);
  font-weight: 600;
}

.prose em {
  font-style: italic;
}

/* Lists - Unordered */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.75em;
  color: rgba(232, 232, 232, 0.85);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5em;
  height: 0.5em;
  background: var(--gold-primary);
  border-radius: 50%;
}

/* Lists - Ordered */
.prose ol {
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0;
  counter-reset: prose-counter;
}

.prose ol li {
  position: relative;
  padding-left: 2.5em;
  margin-bottom: 0.75em;
  color: rgba(232, 232, 232, 0.85);
  counter-increment: prose-counter;
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75em;
  height: 1.75em;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: var(--black-primary);
  font-weight: 600;
  font-size: 0.875em;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blockquotes */
.prose blockquote {
  border-left: 4px solid var(--gold-primary);
  background: rgba(42, 42, 42, 0.5);
  padding: 1.25em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
}

.prose blockquote p {
  color: rgba(232, 232, 232, 0.9);
  margin: 0;
}

/* Tables */
.prose .table-responsive {
  margin: 1.5em 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow-x: auto;
}

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

.prose thead {
  background: rgba(42, 42, 42, 0.5);
}

.prose th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.prose td {
  padding: 1rem 1.25rem;
  color: rgba(232, 232, 232, 0.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

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

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

/* Code */
.prose code {
  background: rgba(42, 42, 42, 0.7);
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: var(--gold-light);
}

.prose pre {
  background: var(--gray-bg);
  padding: 1.25em;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

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

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

/* First Paragraph Styling */
.prose > p:first-of-type {
  font-size: 1.125rem;
  color: rgba(232, 232, 232, 0.9);
}

/* -------------------------
   Responsive Typography
   ------------------------- */
@media (max-width: 768px) {
  .prose {
    font-size: 0.9375rem;
  }

  .prose h2 {
    font-size: 1.5rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose h4 {
    font-size: 1.125rem;
  }

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

  .prose ol li::before {
    width: 1.5em;
    height: 1.5em;
    font-size: 0.75em;
  }
}

/* -------------------------
   Parallax Effect
   ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

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

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

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

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

/* -------------------------
   Selection Styling
   ------------------------- */
::selection {
  background: var(--gold-primary);
  color: var(--black-primary);
}

::-moz-selection {
  background: var(--gold-primary);
  color: var(--black-primary);
}
