/* ============================================
   KeyZino Casino – Custom CSS & Animations
   ============================================ */

/* ---------- Base ---------- */
:root {
  --cyan:    #00f0ff;
  --violet:  #a855f7;
  --dark:    #07080f;
  --card:    #0e1020;
  --surface: #141628;
  --gray-700: #374151;
  --gray-800: #1f2937;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--dark);
  color: #e5e7eb;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--card); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 3px; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(7, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
}

.nav-link {
  color: #d1d5db;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--cyan); }

.mobile-nav-link {
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--cyan); }

.mobile-menu {
  background: rgba(14, 16, 32, 0.98);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.burger-btn {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.burger-line {
  background-color: #e5e7eb;
  border-radius: 2px;
  display: block;
}

/* ---------- Language Switcher ---------- */
.lang-btn {
  color: #d1d5db;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.lang-dropdown {
  background: var(--card);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  min-width: 140px;
  z-index: 100;
}
.lang-option {
  color: #d1d5db;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.lang-option:hover { background: rgba(0, 240, 255, 0.1); color: var(--cyan); }
.lang-option.active { color: var(--cyan); font-weight: 600; }

/* ---------- CTA Buttons ---------- */
.cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #07080f;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
}
.cta-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.55);
}

.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.cta-secondary:hover {
  background: rgba(0, 240, 255, 0.12);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
}
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(7, 8, 15, 0.88) 0%,
    rgba(14, 16, 32, 0.78) 50%,
    rgba(7, 8, 15, 0.92) 100%
  );
}

/* ---------- Bonus Badge ---------- */
.bonus-badge-inner {
  background: rgba(14, 16, 32, 0.85);
  border: 2px solid rgba(0, 240, 255, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 0 80px rgba(168, 85, 247, 0.1);
  animation: pulseBadge 3s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 0 80px rgba(168, 85, 247, 0.1); }
  50%       { box-shadow: 0 0 60px rgba(0, 240, 255, 0.4), 0 0 100px rgba(168, 85, 247, 0.2); }
}

/* ---------- Section Heading ---------- */
.section-heading {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
  position: relative;
  display: inline-block;
}
.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* ---------- Promo Cards ---------- */
.promo-card {
  background: var(--card);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.promo-card:hover {
  border-color: rgba(168, 85, 247, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2);
}

/* ---------- Step Cards ---------- */
.step-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #07080f;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.step-card {
  background: var(--card);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  border-color: rgba(0, 240, 255, 0.35);
  transform: translateY(-4px);
}

/* ---------- Review Blocks ---------- */
.review-block {
  background: var(--card);
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: border-color 0.3s;
}
.review-block:hover { border-color: rgba(168, 85, 247, 0.3); }

/* ---------- Provider Tags ---------- */
.provider-tag {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: #e5e7eb;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.provider-tag:hover {
  background: rgba(0, 240, 255, 0.18);
  color: var(--cyan);
}

/* ---------- Payment Table ---------- */
.payment-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.1);
}
.payment-table thead tr { background: rgba(0, 240, 255, 0.06); }
.payment-table tbody tr:hover { background: rgba(168, 85, 247, 0.06) !important; }

/* ---------- Games Marquee ---------- */
.games-marquee-wrapper {
  overflow: hidden;
  width: 100%;
}
.games-marquee {
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
}
.games-marquee:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.game-card {
  background: var(--card);
  border: 1px solid rgba(168, 85, 247, 0.2);
  transition: border-color 0.3s, transform 0.3s;
}
.game-card:hover {
  border-color: var(--violet);
  transform: scale(1.03);
}

.game-card-overlay {
  background: linear-gradient(to top, rgba(7,8,15,0.9) 0%, rgba(7,8,15,0.1) 60%, transparent 100%);
}

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--card);
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(0, 240, 255, 0.3); }

.faq-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-toggle:hover { color: var(--cyan); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--card);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.footer-heading {
  color: var(--cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--cyan); }

/* ---------- Prose Styling ---------- */
.prose-casino {
  color: #d1d5db;
  max-width: 900px;
  line-height: 1.75;
}
.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4 {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
}
.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.6rem; color: var(--cyan); }
.prose-casino h3 { font-size: 1.3rem; color: var(--violet); }
.prose-casino p  { margin-bottom: 1em; }
.prose-casino a  { color: var(--cyan); text-decoration: underline; }
.prose-casino a:hover { color: var(--violet); }
.prose-casino ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1em;
}
.prose-casino li  { margin-bottom: 0.4em; }
.prose-casino blockquote {
  border-left: 3px solid var(--cyan);
  padding-left: 1rem;
  color: #9ca3af;
  font-style: italic;
}
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}
.prose-casino th {
  background: rgba(0,240,255,0.08);
  color: var(--cyan);
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(0,240,255,0.2);
}
.prose-casino td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.prose-casino tr:hover td { background: rgba(168,85,247,0.05); }

/* ---------- Parallax Hint ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-section { background-attachment: fixed; }
}

/* ---------- Neon key SVG bg pattern ---------- */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,240,255,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168,85,247,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.relative.z-10 { position: relative; z-index: 2; }

/* ---------- Utility ---------- */
.bg-dark          { background-color: var(--dark); }
.bg-dark-surface  { background-color: var(--surface); }
.bg-dark-card     { background-color: var(--card); }
.text-primary     { color: var(--cyan); }
.text-secondary   { color: var(--violet); }
.border-primary   { border-color: var(--cyan); }
.border-secondary { border-color: var(--violet); }

/* ---------- Responsive container ---------- */
.max-w-container { max-width: 1440px; }
