/* Spinboss Custom CSS - Animations & Prose */

/* ===== CSS Variables ===== */
:root {
  --bg-dark: #1a1a1f;
  --bg-card: #25252d;
  --bg-card-hover: #2d2d38;
  --yellow-primary: #f7c51e;
  --yellow-glow: rgba(247, 197, 30, 0.4);
  --yellow-dark: #d4a617;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

/* ===== Base Prose Readability ===== */
.prose-custom {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.prose-custom h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose-custom h3 {
  color: var(--text-primary);
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

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

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

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

.prose-custom a {
  color: var(--yellow-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose-custom a:hover {
  color: var(--yellow-dark);
}

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

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(247, 197, 30, 0.15) 25%,
    rgba(247, 197, 30, 0.3) 50%,
    rgba(247, 197, 30, 0.15) 75%,
    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: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--yellow-primary) 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;
}

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

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

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

.float-slow {
  animation: float-slow 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;
}

/* ===== Glow Effects ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--yellow-glow);
  }
  50% {
    box-shadow: 0 0 35px var(--yellow-glow), 0 0 50px rgba(247, 197, 30, 0.2);
  }
}

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

/* ===== Button Styles ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--yellow-primary) 0%, var(--yellow-dark) 100%);
  color: #1a1a1f;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--yellow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--yellow-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--yellow-primary);
  color: var(--yellow-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--yellow-primary);
  color: #1a1a1f;
}

/* ===== Card Styles ===== */
.card-base {
  background: var(--bg-card);
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-base:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-game {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.card-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-game:hover img {
  transform: scale(1.08);
}

.card-game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

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

.badge-rtp {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.badge-jackpot {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.badge-bonus {
  background: rgba(247, 197, 30, 0.2);
  color: var(--yellow-primary);
}

.badge-popular {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ===== Chip/Pill Navigation ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--yellow-primary);
  color: var(--yellow-primary);
}

/* ===== Tab Styles ===== */
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--yellow-primary);
  border-bottom-color: var(--yellow-primary);
}

.tab-content {
  display: none;
}

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

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

.table-custom th {
  background: rgba(247, 197, 30, 0.1);
  color: var(--yellow-primary);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  font-size: 0.875rem;
}

.table-custom th:first-child {
  border-radius: 0.5rem 0 0 0;
}

.table-custom th:last-child {
  border-radius: 0 0.5rem 0 0;
}

.table-custom td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.table-custom tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ===== Countdown Animation ===== */
@keyframes fade-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.countdown-num {
  animation: fade-pulse 1s ease-in-out infinite;
}

/* ===== Stars Rating ===== */
.star-filled {
  color: var(--yellow-primary);
}

.star-empty {
  color: var(--text-muted);
}

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

/* ===== Mobile Menu ===== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

/* ===== Focus States ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow-primary);
  outline-offset: 2px;
}

/* ===== Selection ===== */
::selection {
  background: var(--yellow-primary);
  color: #1a1a1f;
}

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

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

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

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