/* ===========================================
   KeyZino Casino – Custom CSS
   Golden Keys Color Scheme
   =========================================== */

/* Google Font fallback + base */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --gold-50:  #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --sapphire-800: #1e40af;
  --sapphire-900: #1e3a8a;
  --sapphire-950: #0f172a;
  --casino-dark:   #0a0e1a;
  --casino-darker: #060910;
  --casino-card:   #111827;
  --casino-border: #1f2d4a;
  --casino-glow:   #d4a017;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--casino-dark);
  color: #f3f4f6;
  font-family: 'Open Sans', system-ui, sans-serif;
  min-height: 100vh;
}

/* ==================== TYPOGRAPHY ==================== */
.font-display, h1, h2, h3 {
  font-family: 'Cinzel', Georgia, serif;
}

/* ==================== PROSE STYLES ==================== */
.prose {
  color: #d1d5db;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #fbbf24;
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.3;
}

.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.25rem; }

.prose p {
  margin-bottom: 1.25em;
  color: #d1d5db;
}

.prose a {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.prose a:hover { color: #fcd34d; }

.prose ul, .prose ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  color: #d1d5db;
}

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

.prose ul li::marker { color: #fbbf24; }
.prose ol li::marker { color: #fbbf24; }

.prose blockquote {
  border-left: 3px solid #fbbf24;
  padding-left: 1em;
  color: #9ca3af;
  font-style: italic;
  margin: 1.5em 0;
}

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

.prose th {
  background: rgba(30, 58, 138, 0.5);
  color: #fbbf24;
  padding: 0.6em 1em;
  text-align: left;
  border: 1px solid var(--casino-border);
}

.prose td {
  padding: 0.6em 1em;
  border: 1px solid var(--casino-border);
  color: #d1d5db;
}

.prose tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.4);
}

.prose code {
  background: rgba(30, 58, 138, 0.3);
  color: #fbbf24;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose pre {
  background: #060910;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  padding: 1em;
  overflow-x: auto;
}

.prose img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}

.prose hr {
  border-color: var(--casino-border);
  margin: 2em 0;
}

.prose-casino {
  color: #d1d5db;
}

/* ==================== HERO ==================== */
.hero-section {
  position: relative;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(6, 9, 16, 0.88) 0%,
    rgba(10, 14, 26, 0.75) 50%,
    rgba(30, 58, 138, 0.45) 100%
  );
}

.bonus-badge {
  position: relative;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.3), 0 0 60px rgba(251, 191, 36, 0.1); }
  50%       { box-shadow: 0 0 50px rgba(251, 191, 36, 0.6), 0 0 100px rgba(251, 191, 36, 0.2); }
}

/* Scroll indicator */
.scroll-dot {
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50%       { transform: translateX(-50%) translateY(16px); opacity: 0.3; }
}

/* ==================== KEY FLOATING ANIMATION ==================== */
@keyframes floatKey {
  0%, 100% { transform: translateY(0) rotate(-15deg); opacity: 0.15; }
  50%       { transform: translateY(-20px) rotate(-5deg); opacity: 0.3; }
}

/* ==================== CTA BUTTONS ==================== */
.cta-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta-primary::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0%   { left: -75%; }
  100% { left: 125%; }
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.cta-secondary:hover {
  transform: translateY(-2px);
}

/* ==================== STEP CARDS ==================== */
.step-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(251, 191, 36, 0.15);
}

.step-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #060910;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/* ==================== PROMO CARDS ==================== */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 12px 35px rgba(251, 191, 36, 0.12);
}

.promo-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

/* ==================== GAME CARDS ==================== */
.games-marquee-wrapper {
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.games-track {
  animation: marqueeScroll 28s linear infinite;
  width: max-content;
}

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

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

.game-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
  transform: translateY(-4px);
}

.game-overlay {
  background: rgba(6, 9, 16, 0.7);
}

/* ==================== PROVIDER TAGS ==================== */
.provider-tag {
  display: inline-block;
  padding: 0.35em 0.9em;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid rgba(30, 58, 138, 0.6);
  color: #93c5fd;
  transition: all 0.25s;
  cursor: default;
}

.provider-tag:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fbbf24;
  transform: scale(1.05);
}

/* ==================== REVIEW TABS ==================== */
.review-tab {
  padding: 0.6em 1.5em;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--casino-border);
  color: #9ca3af;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
}

.review-tab:hover {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.review-tab.active {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #060910;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* ==================== FAQ ==================== */
.faq-item {
  transition: border-color 0.25s;
}

.faq-item:hover {
  border-color: rgba(251, 191, 36, 0.3);
}

.faq-question {
  background: transparent;
  border: none;
  cursor: pointer;
}

.faq-answer {
  border-top: 1px solid var(--casino-border);
}

/* ==================== HEADER / NAV ==================== */
.site-header {
  transition: background 0.3s ease;
}

.nav-link {
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #fbbf24;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.burger-btn {
  cursor: pointer;
  line-height: 1;
}

.mobile-nav-link {
  transition: all 0.2s;
}

/* ==================== LANG SWITCHER ==================== */
.lang-dropdown {
  min-width: 160px;
}

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

/* ==================== FOOTER ==================== */
.age-badge {
  background: rgba(251, 191, 36, 0.08);
  font-family: 'Cinzel', Georgia, serif;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--casino-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(251, 191, 36, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.6);
}

/* ==================== SELECTION ==================== */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fff;
}

/* ==================== GLOWING BACKGROUND PATTERN ==================== */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(30, 58, 138, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 20%, rgba(212, 160, 23, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==================== SECTION ALTERNATING BG ==================== */
section {
  position: relative;
  z-index: 1;
}

/* ==================== RESPONSIVE TABLE ==================== */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }

  .bonus-badge {
    padding: 1.25rem 1.5rem;
  }

  .games-track {
    animation-duration: 18s;
  }
}

@media (max-width: 480px) {
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}
