/* Custom animations and overrides */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(234, 179, 8, 0.8);
  }
}

@keyframes honeycomb {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

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

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1deg);
  }
  75% {
    transform: rotate(-1deg);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

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

.tilt-animation {
  animation: tilt 5s ease-in-out infinite;
}

.marquee-container {
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}

/* Hive pattern background */
.hive-pattern {
  background-color: #1a1a0a;
  background-image: repeating-linear-gradient(
      30deg,
      transparent,
      transparent 40px,
      rgba(234, 179, 8, 0.1) 40px,
      rgba(234, 179, 8, 0.1) 80px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 40px,
      rgba(234, 179, 8, 0.05) 40px,
      rgba(234, 179, 8, 0.05) 80px
    ),
    repeating-linear-gradient(
      150deg,
      transparent,
      transparent 40px,
      rgba(234, 179, 8, 0.1) 40px,
      rgba(234, 179, 8, 0.1) 80px
    );
}

/* Honeycomb SVG pattern */
.honeycomb-bg {
  background: linear-gradient(135deg, #2d2508 0%, #1a1a0a 100%);
  position: relative;
  min-height: 100vh;
}

.honeycomb-bg::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l26 15v30L30 60 4 45V15z' fill='none' stroke='%23eab308' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

body.honeycomb-bg > * {
  position: relative;
  z-index: 1;
}

/* Prose styling for readability */
.prose {
  max-width: 65ch;
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #eab308;
}

.prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fbbf24;
}

.prose ul,
.prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.prose a {
  color: #eab308;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose a:hover {
  color: #fbbf24;
}

/* Custom button styles */
.btn-royal {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  border: 2px solid #eab308;
  color: #eab308;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-royal:hover {
  background: linear-gradient(135deg, #eab308 0%, #fbbf24 100%);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(234, 179, 8, 0.3);
}

/* Game card hover effects */
.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(234, 179, 8, 0.3);
  backdrop-filter: blur(10px);
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(234, 179, 8, 0.4);
  border-color: rgba(234, 179, 8, 0.6);
}

/* Floating hero section */
.hero-float {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(251, 191, 36, 0.1) 100%);
  border: 2px solid rgba(234, 179, 8, 0.3);
  backdrop-filter: blur(20px);
}

/* Sticky elements */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 10, 0.95);
  border-bottom: 1px solid rgba(234, 179, 8, 0.2);
}

.sticky-cta-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta-banner.visible {
  transform: translateY(0);
}

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

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-jackpot {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
}

.badge-rtp {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
}

.badge-bonus {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  color: #000;
}

/* Review card styles */
.review-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

/* Rating stars */
.star-rating {
  color: #eab308;
}

/* Provider cloud */
.provider-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #eab308;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 0.25rem;
}

.provider-btn:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: #eab308;
  transform: scale(1.05);
}

/* Alert banner */
.alert-banner {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.9) 0%, rgba(153, 27, 27, 0.9) 100%);
  border-left: 4px solid #dc2626;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  color: #fff;
}

/* Table styles */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 0.5rem;
  overflow: hidden;
}

.custom-table th {
  background: rgba(234, 179, 8, 0.2);
  color: #eab308;
  padding: 0.75rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.custom-table td {
  padding: 0.75rem;
  border-top: 1px solid rgba(234, 179, 8, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.custom-table tbody tr:hover {
  background: rgba(234, 179, 8, 0.1);
}

/* Winner table specific */
.win-positive {
  color: #22c55e;
  font-weight: 700;
}

.win-negative {
  color: #ef4444;
  font-weight: 700;
}

/* Wheel widget */
.wheel-container {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 8px solid #eab308;
  position: relative;
  background: conic-gradient(
    from 0deg,
    #dc2626 0deg 45deg,
    #eab308 45deg 90deg,
    #16a34a 90deg 135deg,
    #3b82f6 135deg 180deg,
    #8b5cf6 180deg 225deg,
    #ec4899 225deg 270deg,
    #f97316 270deg 315deg,
    #06b6d4 315deg 360deg
  );
  animation: spin 20s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wheel-pointer {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid #eab308;
}

/* Bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.bento-item {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.bento-item:hover {
  border-color: #eab308;
  box-shadow: 0 10px 30px rgba(234, 179, 8, 0.3);
}

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

  .hero-float {
    margin: 0.5rem;
  }
}
