/* ============================================
   Westace Casino - Custom CSS
   Animations, Overrides, Prose Styling
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --royal: #0d0221;
  --plum: #1a0533;
  --grape: #2a1052;
  --barbie: #ff2d95;
  --fuchsia-pop: #d946ef;
  --gold-shine: #fbbf24;
  --crystal: #f5f0ff;
  --mist: #b8a0d0;
  --diamond: #e0c3fc;
}

/* ---------- Base Resets ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--royal);
  color: var(--crystal);
}

/* ---------- Diamond Floating Particles ---------- */
.diamond-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.diamond-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, rgba(224, 195, 252, 0.5), rgba(255, 45, 149, 0.3));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: diamondFloat linear infinite;
  opacity: 0;
}

.diamond-particle:nth-child(1) {
  left: 8%;
  animation-duration: 14s;
  animation-delay: 0s;
  width: 10px;
  height: 10px;
}
.diamond-particle:nth-child(2) {
  left: 22%;
  animation-duration: 18s;
  animation-delay: 2s;
  width: 8px;
  height: 8px;
}
.diamond-particle:nth-child(3) {
  left: 38%;
  animation-duration: 12s;
  animation-delay: 4s;
  width: 14px;
  height: 14px;
}
.diamond-particle:nth-child(4) {
  left: 55%;
  animation-duration: 16s;
  animation-delay: 1s;
  width: 9px;
  height: 9px;
}
.diamond-particle:nth-child(5) {
  left: 70%;
  animation-duration: 20s;
  animation-delay: 3s;
  width: 11px;
  height: 11px;
}
.diamond-particle:nth-child(6) {
  left: 85%;
  animation-duration: 15s;
  animation-delay: 5s;
  width: 7px;
  height: 7px;
}
.diamond-particle:nth-child(7) {
  left: 45%;
  animation-duration: 17s;
  animation-delay: 6s;
  width: 13px;
  height: 13px;
}
.diamond-particle:nth-child(8) {
  left: 12%;
  animation-duration: 19s;
  animation-delay: 8s;
  width: 10px;
  height: 10px;
}
.diamond-particle:nth-child(9) {
  left: 62%;
  animation-duration: 13s;
  animation-delay: 2.5s;
  width: 8px;
  height: 8px;
}
.diamond-particle:nth-child(10) {
  left: 92%;
  animation-duration: 21s;
  animation-delay: 7s;
  width: 6px;
  height: 6px;
}

@keyframes diamondFloat {
  0% {
    transform: translateY(110vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) rotate(720deg) scale(1.2);
    opacity: 0;
  }
}

/* ---------- Marquee ---------- */
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

/* ---------- Pulse Glow ---------- */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 45, 149, 0.3), 0 0 40px rgba(217, 70, 239, 0.15);
  }
  50% {
    box-shadow: 0 0 35px rgba(255, 45, 149, 0.5), 0 0 60px rgba(217, 70, 239, 0.3);
  }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

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

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--crystal) 0%,
    var(--barbie) 25%,
    var(--fuchsia-pop) 50%,
    var(--barbie) 75%,
    var(--crystal) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

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

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

/* ---------- Card Hover ---------- */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(255, 45, 149, 0.25), 0 4px 16px rgba(217, 70, 239, 0.15);
}

/* ---------- CTA Button Styles ---------- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  background: linear-gradient(135deg, var(--barbie), var(--fuchsia-pop));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 45, 149, 0.35);
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 45, 149, 0.5);
}

.cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.cta-btn-outline {
  background: transparent;
  border: 2px solid var(--barbie);
  color: var(--barbie);
  box-shadow: none;
}

.cta-btn-outline:hover {
  background: rgba(255, 45, 149, 0.1);
  box-shadow: 0 4px 20px rgba(255, 45, 149, 0.2);
}

.cta-btn-gold {
  background: linear-gradient(135deg, var(--gold-shine), #f59e0b);
  color: #1a0533;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35);
}

.cta-btn-gold:hover {
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

/* ---------- Hero Section ---------- */
.hero-section {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 45, 149, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 70, 239, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #1a0533 0%, #2a1052 40%, #1a0533 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255, 45, 149, 0.03) 40px,
      rgba(255, 45, 149, 0.03) 42px
    );
  pointer-events: none;
}

/* ---------- SVG Diamond Pattern Overlay ---------- */
.diamond-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  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%3Cpath d='M20 0 L40 20 L20 40 L0 20Z' fill='none' stroke='%23ff2d95' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* ---------- Trustpilot Stars ---------- */
.star-filled {
  color: #00b67a;
}

.star-half {
  color: #00b67a;
}

/* ---------- Interactive Tabs ---------- */
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid var(--grape);
  background: transparent;
  color: var(--mist);
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--barbie), var(--fuchsia-pop));
  border-color: var(--barbie);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 45, 149, 0.3);
}

.tab-btn:hover:not(.active) {
  border-color: var(--barbie);
  color: var(--crystal);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---------- Payment Table ---------- */
.payment-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.payment-table thead th {
  background: var(--grape);
  color: var(--crystal);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.payment-table tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(42, 16, 82, 0.6);
  font-size: 0.875rem;
  color: var(--mist);
}

.payment-table tbody tr {
  transition: background 0.2s ease;
}

.payment-table tbody tr:hover {
  background: rgba(42, 16, 82, 0.4);
}

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

/* ---------- Prose Styling (Review Section) ---------- */
.prose-review {
  line-height: 1.7;
  font-size: 1rem;
  color: var(--mist);
}

.prose-review h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--crystal);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose-review h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--crystal);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--barbie);
}

.prose-review p {
  margin-bottom: 1.25rem;
}

.prose-review ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.prose-review ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose-review ul li::before {
  content: "\2666";
  position: absolute;
  left: 0;
  color: var(--barbie);
  font-size: 0.75rem;
  top: 0.2em;
}

.prose-review strong {
  color: var(--crystal);
  font-weight: 600;
}

.prose-review a {
  color: var(--barbie);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose-review a:hover {
  color: var(--fuchsia-pop);
}

/* ---------- Review Card ---------- */
.review-card {
  background: linear-gradient(160deg, var(--plum), var(--grape));
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 45, 149, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  border-color: rgba(255, 45, 149, 0.3);
  box-shadow: 0 4px 30px rgba(255, 45, 149, 0.1);
}

/* ---------- Feature Card Glow on Hover ---------- */
.feature-card {
  background: linear-gradient(160deg, var(--plum), var(--grape));
  border: 1px solid rgba(224, 195, 252, 0.08);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(255, 45, 149, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 45, 149, 0.12);
}

/* ---------- Provider Button ---------- */
.provider-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mist);
  background: var(--grape);
  border: 1px solid rgba(224, 195, 252, 0.1);
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: default;
}

.provider-btn:hover {
  background: rgba(255, 45, 149, 0.15);
  border-color: var(--barbie);
  color: var(--crystal);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 45, 149, 0.15);
}

/* ---------- Promo Card ---------- */
.promo-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(160deg, var(--plum), var(--grape));
  border: 1px solid rgba(224, 195, 252, 0.08);
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 45, 149, 0.15);
}

.promo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--barbie), var(--fuchsia-pop), var(--gold-shine));
}

/* ---------- Author Card ---------- */
.author-card {
  background: linear-gradient(160deg, var(--plum), var(--grape));
  border: 1px solid rgba(224, 195, 252, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
}

/* ---------- Section Divider ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 45, 149, 0.3), rgba(217, 70, 239, 0.2), transparent);
  margin: 3rem 0;
  border: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--grape);
  border-radius: 4px;
}

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

/* ---------- Mobile Nav Overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(13, 2, 33, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crystal);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--barbie);
}

/* ---------- Feature Image Overlay ---------- */
.feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 2, 33, 0.95) 0%, rgba(13, 2, 33, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  border-radius: 1.25rem;
}

/* ---------- Slot Badge ---------- */
.slot-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.slot-badge-hot {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}

.slot-badge-jackpot {
  background: linear-gradient(135deg, var(--gold-shine), #f59e0b);
  color: #1a0533;
}

.slot-badge-bonus {
  background: linear-gradient(135deg, var(--barbie), var(--fuchsia-pop));
  color: #fff;
}

.slot-badge-popular {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
}

.slot-badge-rtp {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: #1a0533;
}

/* ---------- Responsive helpers ---------- */
@media (max-width: 768px) {
  .hero-section {
    border-radius: 1rem;
  }

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

  .prose-review h3 {
    font-size: 1.125rem;
  }
}
