/* ============================================
   SpinTexas Casino – Custom CSS
   Animations: Marquee + Float
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --deep: #050816;
  --navy-900: #070b1e;
  --navy-800: #0c1333;
  --navy-700: #111c3f;
  --navy-600: #1a2766;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-dark: #d97706;
  --red: #ef4444;
  --cyan: #06b6d4;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--navy-900);
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--navy-600); border-radius: 99px; }

/* ========== KEYFRAME ANIMATIONS ========== */

/* --- Marquee (horizontal scroll) --- */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.marquee-track:hover {
  animation-play-state: paused;
}

/* --- Float (vertical bob) --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

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

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

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

/* --- Pulse Glow --- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.25); }
  50%      { box-shadow: 0 0 28px rgba(245, 158, 11, 0.55); }
}

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

/* --- Shimmer for badges --- */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.badge-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

/* --- Fade In Up (on load) --- */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fade-in-up 0.7s ease-out both;
}

.fade-in-up-d1 { animation-delay: 0.15s; }
.fade-in-up-d2 { animation-delay: 0.3s; }
.fade-in-up-d3 { animation-delay: 0.45s; }
.fade-in-up-d4 { animation-delay: 0.6s; }

/* --- Spin (for decorative accent) --- */
@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.slow-spin {
  animation: slow-spin 20s linear infinite;
}

/* --- Border glow pulse --- */
@keyframes border-glow {
  0%, 100% { border-color: rgba(245,158,11,0.3); }
  50%      { border-color: rgba(245,158,11,0.7); }
}

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

/* ========== COMPONENT OVERRIDES ========== */

/* --- CTA Buttons --- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,158,11,0.5);
}

.btn-cta:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 9999px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(245,158,11,0.1);
  border-color: var(--gold-light);
}

/* --- Slot Card --- */
.slot-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--navy-700);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(255,255,255,0.06);
}

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

.slot-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.slot-card .slot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,8,22,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.slot-card:hover .slot-overlay {
  opacity: 1;
}

.slot-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

/* --- Feature Card --- */
.feature-card {
  background: linear-gradient(145deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.25s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.3);
}

/* --- Glass Effect --- */
.glass {
  background: rgba(11, 19, 51, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* --- Tab buttons --- */
.tab-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #94a3b8;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.tab-btn:hover:not(.active) {
  border-color: rgba(245,158,11,0.5);
  color: var(--gold);
}

/* ========== PROSE STYLING ========== */

.prose {
  line-height: 1.75;
  color: #cbd5e1;
  font-size: 1rem;
}

.prose h2 {
  color: #f1f5f9;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  color: #e2e8f0;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(245,158,11,0.2);
}

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

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose ul li {
  margin-bottom: 0.4rem;
}

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

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

.prose strong {
  color: #f1f5f9;
  font-weight: 600;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.prose table th {
  background: var(--navy-600);
  color: #f1f5f9;
  font-weight: 600;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(245,158,11,0.3);
}

.prose table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.prose table tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* ========== SVG PATTERN OVERLAY ========== */
.pattern-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23fbbf24' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ========== STAR PATTERN ========== */
.star-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1.5' fill='%23fbbf24'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}

/* ========== RESPONSIVE HELPERS ========== */
@media (max-width: 640px) {
  .prose h2 { font-size: 1.4rem; }
  .prose h3 { font-size: 1.15rem; }
  .btn-cta { padding: 0.65rem 1.5rem; font-size: 0.9rem; }
  .marquee-track { animation-duration: 20s; }
}

/* ========== REVIEW STARS ========== */
.star-filled {
  color: var(--gold);
}

.star-empty {
  color: #334155;
}

/* ========== PROVIDER PILL ========== */
.provider-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cbd5e1;
  transition: all 0.25s;
  white-space: nowrap;
}

.provider-pill:hover {
  border-color: rgba(245,158,11,0.4);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(245,158,11,0.15);
}
