/* Golazzo Custom CSS - Keyframes & Prose Readability */

/* ===== CSS Variables ===== */
:root {
  --bg-dark: #1a1410;
  --bg-card: #2a1f18;
  --bg-card-alt: #3d2c20;
  --yellow-cta: #f5c518;
  --yellow-hover: #ffd84d;
  --yellow-glow: rgba(245, 197, 24, 0.4);
  --text-primary: #f5f0e8;
  --text-secondary: #b8a99a;
  --accent-gold: #d4a853;
}

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

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

.prose h2,
.prose h3,
.prose h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

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

.shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 197, 24, 0.15) 25%,
    rgba(245, 197, 24, 0.3) 50%,
    rgba(245, 197, 24, 0.15) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.shimmer-text {
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--yellow-cta) 25%,
    var(--accent-gold) 50%,
    var(--yellow-cta) 75%,
    var(--text-primary) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-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;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--yellow-cta),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

/* ===== Animation 2: Float ===== */
@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(1deg);
  }
}

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

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

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

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

/* ===== Glow Effects ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--yellow-glow), 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 35px var(--yellow-glow), 0 4px 25px rgba(0, 0, 0, 0.4);
  }
}

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

@keyframes subtle-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.35);
  }
}

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

/* ===== Button Styles ===== */
.btn-cta {
  background: var(--yellow-cta);
  color: #1a1410;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

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

/* ===== Card Styles ===== */
.card {
  background: var(--bg-card);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.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(26, 20, 16, 0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

/* ===== Badge Styles ===== */
.badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-gold {
  background: linear-gradient(135deg, var(--yellow-cta), var(--accent-gold));
  color: #1a1410;
}

.badge-rtp {
  background: #22c55e;
  color: #fff;
}

.badge-jackpot {
  background: #ef4444;
  color: #fff;
}

.badge-popular {
  background: #8b5cf6;
  color: #fff;
}

/* ===== Pill Navigation ===== */
.pill {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.pill:hover {
  background: var(--yellow-cta);
  color: #1a1410;
}

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

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

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

.tab-content {
  display: none;
}

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

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

.table-casino th {
  background: var(--bg-card-alt);
  color: var(--yellow-cta);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  font-size: 0.875rem;
}

.table-casino th:first-child {
  border-radius: 0.75rem 0 0 0;
}

.table-casino th:last-child {
  border-radius: 0 0.75rem 0 0;
}

.table-casino td {
  padding: 1rem;
  border-bottom: 1px solid var(--bg-card-alt);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.table-casino tr:last-child td:first-child {
  border-radius: 0 0 0 0.75rem;
}

.table-casino tr:last-child td:last-child {
  border-radius: 0 0 0.75rem 0;
}

.table-casino tbody tr {
  background: var(--bg-card);
  transition: background 0.2s ease;
}

.table-casino tbody tr:hover {
  background: var(--bg-card-alt);
}

/* ===== Countdown Animation ===== */
@keyframes fade-number {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.countdown-number {
  animation: fade-number 1s ease-in-out;
}

/* ===== Quiz Styles ===== */
.quiz-option {
  background: var(--bg-card);
  border: 2px solid transparent;
  padding: 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quiz-option:hover {
  border-color: var(--yellow-cta);
}

.quiz-option.selected {
  border-color: var(--yellow-cta);
  background: var(--bg-card-alt);
}

/* ===== Star Rating ===== */
.stars {
  color: var(--yellow-cta);
  letter-spacing: 0.125rem;
}

/* ===== Provider Pills ===== */
.provider-pill {
  background: var(--bg-card-alt);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.provider-pill:hover {
  background: var(--yellow-cta);
  color: #1a1410;
}

/* ===== Trust Badges ===== */
.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .bento-grid .bento-wide {
    grid-column: span 2;
  }
  
  .bento-grid .bento-tall {
    grid-row: span 2;
  }
}

.bento-item {
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

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

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

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

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

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

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 2px solid var(--yellow-cta);
  outline-offset: 2px;
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow-cta);
  color: #1a1410;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}
