/* Kudosbet Custom CSS - Animations & Prose */

/* CSS Custom Properties */
:root {
  --kb-green: #22c55e;
  --kb-green-dark: #16a34a;
  --kb-green-glow: rgba(34, 197, 94, 0.4);
  --kb-dark: #0a0a0a;
  --kb-card: #141414;
  --kb-border: #262626;
}

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

/* Prose Readability */
.prose-kb {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #d4d4d4;
}

.prose-kb h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

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

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

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

.prose-kb li {
  margin-bottom: 0.5rem;
}

.prose-kb a {
  color: var(--kb-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-kb a:hover {
  color: #4ade80;
}

/* Animation 1: Shimmer Effect */
@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-text {
  background: linear-gradient(
    90deg,
    #22c55e 0%,
    #4ade80 25%,
    #86efac 50%,
    #4ade80 75%,
    #22c55e 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.shimmer-border {
  position: relative;
  overflow: hidden;
}

.shimmer-border::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.3),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

/* Animation 2: Float Effect */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

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

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

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

.float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

/* Glow Effects */
.glow-green {
  box-shadow: 0 0 20px var(--kb-green-glow),
              0 0 40px rgba(34, 197, 94, 0.2);
}

.glow-green-sm {
  box-shadow: 0 0 10px var(--kb-green-glow);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--kb-green-glow),
                0 0 40px rgba(34, 197, 94, 0.15);
  }
  50% {
    box-shadow: 0 0 30px var(--kb-green-glow),
                0 0 60px rgba(34, 197, 94, 0.25);
  }
}

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

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #22c55e;
  color: #22c55e;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: #4ade80;
  color: #4ade80;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(34, 197, 94, 0.4);
}

/* Slot Card Overlay */
.slot-card {
  position: relative;
  overflow: hidden;
}

.slot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.slot-card-content {
  position: relative;
  z-index: 1;
}

/* Badge Styles */
.badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.badge-rtp {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.badge-jackpot {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.badge-bonus {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.badge-popular {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Tab Styles */
.tab-btn {
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #22c55e;
  color: #000;
}

.tab-btn:not(.active):hover {
  background: rgba(34, 197, 94, 0.15);
}

.tab-content {
  display: none;
}

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

/* Table Styles */
.kb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.kb-table th {
  background: #1a1a1a;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #a3a3a3;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #262626;
}

.kb-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #1f1f1f;
  color: #d4d4d4;
  font-size: 0.875rem;
}

.kb-table tbody tr:hover {
  background: rgba(34, 197, 94, 0.05);
}

/* Mobile Nav */
.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-nav.open {
  max-height: 400px;
}

/* Pill/Chip Nav */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 9999px;
  color: #d4d4d4;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

/* Feature Card */
.feature-card {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(34, 197, 94, 0.3);
  background: linear-gradient(135deg, #161616 0%, #1c1c1c 100%);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid #262626;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: #141414;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(34, 197, 94, 0.05);
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #22c55e;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1rem;
}

/* Author Card */
.author-card {
  background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1.5rem;
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

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

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #1a1a1a;
  border: 1px solid #262626;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #a3a3a3;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #0f2a1a 0%, #14532d 50%, #0f2a1a 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Star Rating */
.star-filled {
  color: #fbbf24;
}

.star-empty {
  color: #404040;
}

/* Provider Pill */
.provider-pill {
  background: #1a1a1a;
  border: 1px solid #262626;
  padding: 0.375rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  color: #a3a3a3;
  transition: all 0.2s ease;
}

.provider-pill:hover {
  border-color: #22c55e;
  color: #22c55e;
}

/* Comparison Table */
.compare-good {
  color: #22c55e;
}

.compare-bad {
  color: #ef4444;
}

/* Steps */
.step-number {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c55e;
  color: #000;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Review Card */
.review-card {
  background: #141414;
  border: 1px solid #262626;
  border-radius: 1rem;
  padding: 1.25rem;
}

/* Spotlight Glow Border */
.spotlight-glow {
  position: relative;
}

.spotlight-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #22c55e, #14532d, #22c55e);
  border-radius: inherit;
  z-index: -1;
  animation: pulse-glow 3s ease-in-out infinite;
}
