/* Betwest Custom Styles - Western Casino Theme */

/* ===== CSS Variables ===== */
:root {
  --gold: #f5c518;
  --gold-dark: #d4a817;
  --gold-light: #ffe066;
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --black-card: #222222;
  --white: #fafafa;
  --gray: #888888;
  --gray-dark: #444444;
  --success: #22c55e;
  --danger: #ef4444;
}

/* ===== Base Resets ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

/* ===== Prose Readability ===== */
.prose {
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
}

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

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

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

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

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

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

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

.shimmer {
  background: linear-gradient(
    90deg,
    var(--gold-dark) 0%,
    var(--gold-light) 25%,
    var(--gold) 50%,
    var(--gold-light) 75%,
    var(--gold-dark) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.shimmer-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 197, 24, 0.15),
    transparent
  );
  animation: shimmer-slide 2.5s ease-in-out infinite;
}

@keyframes shimmer-slide {
  0% { left: -100%; }
  100% { left: 200%; }
}

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

.float {
  animation: float 4s 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 ===== */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 197, 24, 0.6);
  }
}

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

/* ===== Flying Banner Animation ===== */
@keyframes slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.flying-banner {
  animation: slide-up 0.4s ease-out forwards;
}

.flying-banner.hidden {
  display: none;
}

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

.countdown-pulse {
  animation: fade-pulse 0.5s ease-in-out;
}

/* ===== 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(245, 197, 24, 0.15);
}

/* ===== Button Styles ===== */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--black);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

/* ===== Tab Styles ===== */
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--black-card);
  color: var(--gray);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: var(--gold);
  color: var(--black);
}

.tab-content {
  display: none;
}

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

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

.badge-gold {
  background: var(--gold);
  color: var(--black);
}

.badge-green {
  background: var(--success);
  color: white;
}

.badge-red {
  background: var(--danger);
  color: white;
}

/* ===== Glow Border ===== */
.glow-border {
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(245, 197, 24, 0.4), inset 0 0 20px rgba(245, 197, 24, 0.1);
}

/* ===== Western Decorative Elements ===== */
.western-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem 0;
}

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

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

.quiz-option.selected {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.1);
}

/* ===== Star Rating ===== */
.star-rating {
  color: var(--gold);
  letter-spacing: 2px;
}

/* ===== Scroll Progress ===== */
.progress-bar {
  height: 3px;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s ease;
}

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

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

/* ===== Table Styles ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  background: var(--black-card);
  color: var(--gold);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-dark);
  font-size: 0.875rem;
}

.data-table tr:hover td {
  background: rgba(245, 197, 24, 0.05);
}

/* ===== Bento Grid ===== */
.bento-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
  }
  
  .bento-span-2 {
    grid-column: span 2;
  }
  
  .bento-span-3 {
    grid-column: span 3;
  }
  
  .bento-row-2 {
    grid-row: span 2;
  }
}

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

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

/* ===== Selection ===== */
::selection {
  background: var(--gold);
  color: var(--black);
}
