/* ============================================
   BC.GAME Casino Landing Page
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --border: #2a2a2a;
  --border-light: #333333;
  --neon-green: #1DFF00;
  --neon-green-dim: #17cc00;
  --neon-glow: rgba(29, 255, 0, 0.4);
  --neon-glow-strong: rgba(29, 255, 0, 0.6);
  --gold: #FFD700;
  --gold-dim: #c9a800;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-glow: 0 0 20px var(--neon-glow);
  --shadow-glow-strong: 0 0 30px var(--neon-glow-strong);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1200px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(30, 30, 30, 0.3) 49%, rgba(30, 30, 30, 0.3) 51%, transparent 52%),
    linear-gradient(225deg, transparent 48%, rgba(30, 30, 30, 0.2) 49%, rgba(30, 30, 30, 0.2) 51%, transparent 52%);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ============================================
   Logo
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.85;
}

.logo__img {
  height: 32px;
  width: auto;
  display: block;
}

.logo--footer .logo__img {
  height: 28px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--neon-green);
  color: #000;
  padding: 16px 40px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  background: #2fff10;
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-2px) scale(1.02);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--sm {
  background: var(--neon-green);
  color: #000;
  padding: 10px 20px;
  font-size: 0.75rem;
  box-shadow: 0 0 12px var(--neon-glow);
}

.btn--sm:hover {
  background: #2fff10;
  box-shadow: var(--shadow-glow);
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15), 0 0 80px var(--neon-glow);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__btn {
  min-width: 220px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  filter: drop-shadow(0 0 30px var(--neon-glow));
  animation: float 6s ease-in-out infinite;
}

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

/* ============================================
   Recent Big Wins
   ============================================ */
.wins {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
}

.wins__panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px 24px 24px;
  overflow: hidden;
}

.wins__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.wins__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 0.02em;
}

.wins__track-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -8px;
  padding: 4px 8px;
}

.wins__track-wrapper::-webkit-scrollbar {
  display: none;
}

.wins__track {
  display: flex;
  gap: 16px;
  min-width: min-content;
}

.win-card {
  flex: 0 0 140px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition);
}

.win-card:hover {
  transform: translateY(-4px);
}

.win-card__thumb {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
  border: 2px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.win-card:hover .win-card__thumb {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-glow);
}

.win-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.win-card__game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 6px 8px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  line-height: 1.2;
}

.win-card__player {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.win-card__amount {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-glow);
  transition: color 0.2s;
}

.win-card__amount.flash {
  animation: amountFlash 0.6s ease;
}

@keyframes amountFlash {
  0%, 100% { color: var(--neon-green); }
  50% { color: #fff; text-shadow: 0 0 20px var(--neon-green); }
}

/* Game thumbnail fallback gradients */
.win-card__thumb--olympus { background: linear-gradient(135deg, #1a0a3e 0%, #4a1a8a 50%, #d4a017 100%); }
.win-card__thumb--bonanza { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 50%, #9b30ff 100%); }
.win-card__thumb--wanted { background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #FFD700 100%); }
.win-card__thumb--sugar { background: linear-gradient(135deg, #ff6ec7 0%, #ff9a56 50%, #ffd93d 100%); }
.win-card__thumb--roulette { background: linear-gradient(135deg, #1a1a2e 0%, #c9a800 50%, #8B0000 100%); }
.win-card__thumb--dog { background: linear-gradient(135deg, #4a90d9 0%, #87CEEB 50%, #f5a623 100%); }

/* ============================================
   Category Cards
   ============================================ */
.categories {
  position: relative;
  z-index: 1;
  padding: 0 0 32px;
}

.categories__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.category-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  min-height: 200px;
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 24px var(--neon-glow);
  transform: translateY(-2px);
}

.category-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.category-card__icon {
  width: 28px;
  height: 28px;
  color: var(--neon-green);
  display: flex;
  align-items: center;
}

.category-card__icon svg {
  width: 100%;
  height: 100%;
}

.category-card__label {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.category-card__art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 70%;
  height: 80%;
  pointer-events: none;
}

.category-card__art--casino {
  width: 65%;
  height: 100%;
}

.category-card__roleta {
  position: absolute;
  right: -10px;
  bottom: -10px;
  height: 95%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 4px 20px rgba(201, 168, 0, 0.25));
  transition: transform var(--transition);
}

.category-card--casino:hover .category-card__roleta {
  transform: scale(1.05);
}

.category-card__art--sports {
  width: 65%;
  height: 100%;
}

.category-card__sport {
  position: absolute;
  right: -10px;
  bottom: -10px;
  height: 95%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 4px 20px rgba(155, 89, 182, 0.25));
  transition: transform var(--transition);
}

.category-card--sports:hover .category-card__sport {
  transform: scale(1.05);
}

/* ============================================
   Features
   ============================================ */
.features {
  position: relative;
  z-index: 1;
  padding: 0 0 40px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  min-height: 110px;
  transition: all var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  border-color: var(--neon-green);
  background: var(--bg-card-hover);
  box-shadow: 0 0 16px var(--neon-glow);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--neon-green);
  text-align: center;
}

/* ============================================
   Bonus CTA
   ============================================ */
.bonus-cta {
  position: relative;
  z-index: 1;
  padding: 0 0 60px;
}

.bonus-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #1a2a1a 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 40px;
  position: relative;
  overflow: hidden;
}

.bonus-cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
  pointer-events: none;
}

.bonus-cta__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.bonus-cta__title .highlight {
  color: var(--neon-green);
  text-shadow: 0 0 20px var(--neon-glow);
}

.bonus-cta__text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 480px;
}

.bonus-cta__btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--neon-green);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border-light);
}

.footer__legal {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
}

.footer__legal p {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 0;
  }

  .hero__image {
    max-width: 480px;
    margin: 0 auto;
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bonus-cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .hero {
    padding: 24px 0 40px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .hero__subtitle {
    font-size: 0.875rem;
    margin-bottom: 24px;
  }

  .hero__btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__image {
    max-width: 100%;
  }

  .wins__panel {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .win-card {
    flex: 0 0 120px;
  }

  .win-card__thumb {
    width: 120px;
    height: 120px;
  }

  .categories__grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 160px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-card {
    min-height: 96px;
    padding: 16px 10px;
  }

  .feature-card__icon {
    width: 32px;
    height: 32px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__trust {
    justify-content: center;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .win-card {
    flex: 0 0 110px;
  }

  .win-card__thumb {
    width: 110px;
    height: 110px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
