/* Alterspin Casino Theme - Custom Styles */
/* Animations: Shimmer + Float */

:root {
  --brand-green: #22c55e;
  --brand-green-glow: rgba(34, 197, 94, 0.4);
  --brand-dark: #0a0a0a;
  --brand-card: #141414;
  --brand-border: #1f1f1f;
}

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

/* Prose readability */
.prose-custom {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #d1d5db;
}
.prose-custom h2,
.prose-custom h3,
.prose-custom h4 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.prose-custom p {
  margin-bottom: 1.25rem;
}
.prose-custom ul,
.prose-custom ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.prose-custom li {
  margin-bottom: 0.5rem;
}
.prose-custom a {
  color: var(--brand-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose-custom a:hover {
  color: #4ade80;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 197, 94, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}
.shimmer-border {
  position: relative;
  overflow: hidden;
}
.shimmer-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brand-green) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Float Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.float {
  animation: float 4s ease-in-out infinite;
}
.float-slow {
  animation: float 6s ease-in-out infinite;
}
.float-delay-1 {
  animation-delay: 0.5s;
}
.float-delay-2 {
  animation-delay: 1s;
}
.float-delay-3 {
  animation-delay: 1.5s;
}

/* Pulse glow for CTAs */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--brand-green-glow);
  }
  50% {
    box-shadow: 0 0 35px var(--brand-green-glow), 0 0 50px rgba(34, 197, 94, 0.2);
  }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Tab styles */
.tab-btn {
  transition: all 0.2s ease;
}
.tab-btn.active {
  background-color: var(--brand-green);
  color: #000;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}

/* Slot card badge */
.slot-badge {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 500px;
}

/* Latest bets animation */
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.bet-row-new {
  animation: slide-in 0.4s ease-out;
}

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--brand-dark);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 2px;
}

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

/* Rating summary */
.rating-bar {
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--brand-green);
  border-radius: 3px;
}
