/* ============================================
   KUSH CASINO — MAIN STYLESHEET
   ============================================ */

:root {
  --green-dark:    #0d2b1a;
  --green-mid:     #1a4a2a;
  --green-accent:  #1e6b38;
  --green-bright:  #2ecc71;
  --gold:          #f0c040;
  --gold-light:    #ffd700;
  --white:         #ffffff;
  --off-white:     #e8f5ec;
  --text-muted:    #8faaaa;
  --bg-dark:       #0a1f14;
  --bg-card:       #112519;
  --bg-section:    #0e2318;
  --border-color:  #1e4a30;
  --font-main:     'Montserrat', sans-serif;
  --font-alt:      'Raleway', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.4);
  --transition:    0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, #2ecc71, #1a9650);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #34d978, #22b55e);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(46, 204, 113, 0.55);
}

.btn--outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--green-bright);
  color: var(--green-bright);
  background: rgba(46, 204, 113, 0.08);
}

.btn--ghost {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.7);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Ripple */
.ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}
.ripple:active::after { opacity: 1; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 31, 20, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(10, 31, 20, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Image logo (header + footer) */
.logo--img {
  line-height: 0;
}
.logo__img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}
.logo--img:hover .logo__img {
  opacity: 0.9;
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.55));
}
.logo__img--footer {
  height: 56px;
  margin-bottom: 4px;
}
.logo__dot { font-size: 1rem; margin-left: 4px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav__link {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.nav__link:hover {
  color: var(--green-bright);
  background: rgba(46, 204, 113, 0.1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}


/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(90deg, #0e2318, #142d1e, #0e2318);
  border-bottom: 1px solid var(--border-color);
  margin-top: 68px;
}

.stats-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 32px;
  overflow-x: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  flex-shrink: 0;
}
.stat-item i {
  color: var(--green-bright);
  font-size: 0.85rem;
}
.stat-item strong {
  color: var(--gold);
  font-weight: 700;
}


/* ===== HERO SLIDER ===== */
.slider {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  background: #0d2b1a;
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual Slide */
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 15, 8, 0.88) 0%,
    rgba(5, 15, 8, 0.65) 45%,
    rgba(5, 15, 8, 0.15) 75%,
    transparent 100%
  );
}

.slide__content {
  position: absolute;
  top: 50%;
  left: 80px;
  transform: translateY(-50%);
  max-width: 560px;
  z-index: 2;
}

.slide__badge {
  display: inline-block;
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: var(--green-bright);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.slide__title {
  font-family: var(--font-alt);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  color: #ffffff;
}

.slide__title .highlight {
  background: linear-gradient(135deg, var(--gold-light), #e8a000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 460px;
}
.slide__desc strong {
  color: var(--gold);
}

.slide__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.slide__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

/* Slider Arrows */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 31, 20, 0.7);
  border: 2px solid rgba(46, 204, 113, 0.4);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(8px);
}
.slider__arrow:hover {
  background: rgba(46, 204, 113, 0.3);
  border-color: var(--green-bright);
  transform: translateY(-50%) scale(1.08);
}
.slider__arrow--prev { left: 20px; }
.slider__arrow--next { right: 20px; }

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 48px;
  left: 80px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--green-bright);
}

/* Progress Bar */
.slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.slider__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-bright), var(--gold));
  width: 0%;
  transition: width 0.1s linear;
}


/* ===== GAME SECTIONS ===== */
.game-section {
  padding: 60px 0;
  background: var(--bg-dark);
}
.game-section--dark {
  background: var(--bg-section);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.section-title {
  font-family: var(--font-alt);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-bright);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  opacity: 0.8;
}
.section-link:hover {
  opacity: 1;
  gap: 10px;
}

/* Games Grid — пустое состояние */
.games-grid {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.games-empty {
  text-align: center;
  color: rgba(255,255,255,0.2);
  padding: 40px 20px;
}
.games-empty i {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}
.games-empty p {
  font-size: 0.9rem;
}

/* Live badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 57, 53, 0.15);
  border: 1px solid rgba(229, 57, 53, 0.4);
  color: #ef5350;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 1px;
}
.live-dot {
  width: 7px;
  height: 7px;
  background: #ef5350;
  border-radius: 50%;
  animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* Live stats */
.live-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
  padding: 20px 28px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  width: fit-content;
}
.live-stat {
  text-align: center;
}
.live-stat__number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-bright);
  font-family: var(--font-alt);
}
.live-stat__label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  display: block;
}

/* Megaways info block */
.megaways-info {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.1), rgba(46, 204, 113, 0.08));
  border: 1px solid rgba(240, 192, 64, 0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.megaways-info__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.megaways-info__text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.megaways-info__text p {
  font-size: 0.87rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.megaways-info__text strong {
  color: var(--gold-light);
}


/* ===== GAMES CAROUSEL ===== */
.games-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.games-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}
.games-carousel::-webkit-scrollbar { display: none; }

/* Carousel arrows */
.carousel-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 31, 20, 0.85);
  border: 2px solid rgba(46, 204, 113, 0.35);
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 5;
  backdrop-filter: blur(8px);
}
.carousel-arrow:hover {
  background: rgba(46, 204, 113, 0.25);
  border-color: var(--green-bright);
  transform: scale(1.08);
}
.carousel-arrow--left { margin-right: 8px; }
.carousel-arrow--right { margin-left: 8px; }

/* Game Card */
.game-card {
  flex-shrink: 0;
  width: 185px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border-color: rgba(46, 204, 113, 0.4);
}

.game-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0d2b1a;
}
.game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.game-card:hover .game-card__img-wrap img {
  transform: scale(1.06);
}

/* Overlay with play buttons */
.game-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 8, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
}
.game-card:hover .game-card__overlay { opacity: 1; }

.btn--sm {
  padding: 8px 18px;
  font-size: 0.78rem;
  border-radius: 50px;
  min-width: 110px;
}

/* Game badges */
.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 2;
}
.game-badge--hot  { background: rgba(229,57,53,0.9);  color: #fff; }
.game-badge--new  { background: rgba(156,39,176,0.9); color: #fff; }
.game-badge--mw   { background: rgba(240,192,64,0.9); color: #111; }
.game-badge--live { background: rgba(229,57,53,0.9);  color: #fff; }

/* Card info */
.game-card__info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.game-card__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card__provider {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.38);
}

/* ===== ABOUT / SEO SECTION ===== */
.about-section {
  background: var(--bg-section);
  padding: 72px 0 80px;
  border-top: 1px solid var(--border-color);
}

.about__h1 {
  font-family: var(--font-alt);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}
.about__h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green-bright));
  border-radius: 2px;
}

.about__block {
  padding: 28px 0;
  border-bottom: 1px solid var(--border-color);
}
.about__block:last-child {
  border-bottom: none;
}

.about__h2 {
  font-family: var(--font-alt);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding-left: 18px;
  transition: color var(--transition);
}
.about__h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  min-height: 18px;
  background: linear-gradient(180deg, var(--gold), var(--green-bright));
  border-radius: 2px;
}

.about__text {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about__text p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.62);
}
.about__text p:first-child {
  color: rgba(255, 255, 255, 0.72);
}
.about__text a {
  color: var(--green-bright);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(46, 204, 113, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.about__text a:hover {
  color: var(--gold);
  text-decoration-color: rgba(240, 192, 64, 0.5);
}

/* ===== FOOTER ===== */
.footer {
  background: #070f0a;
  border-top: 1px solid var(--border-color);
  padding-top: 60px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

.footer__desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin: 16px 0 20px;
  max-width: 300px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-btn:hover {
  background: rgba(46, 204, 113, 0.2);
  color: var(--green-bright);
}

.footer__links-group h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.footer__links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links-group ul a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
}
.footer__links-group ul a:hover {
  color: var(--green-bright);
}

.footer__payments {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__payments > span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.payment-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}
.payment-icon {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  transition: var(--transition);
}
.payment-icon:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }
.payment-icon i { font-size: 1.3rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer__badges {
  display: flex;
  gap: 12px;
  align-items: center;
}
.badge-18 {
  background: #c0392b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
}
.badge-rg {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .slide__content { left: 50px; max-width: 500px; }
  .slide__title { font-size: 2.4rem; }
  .slider { height: 480px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header__actions { display: none; }
  .burger { display: flex; margin-left: auto; }

  .stats-bar__inner { gap: 20px; }

  .slider { height: 420px; }
  .slide__content { left: 24px; right: 24px; max-width: 100%; }
  .slide__title { font-size: 1.8rem; }
  .slide__desc { font-size: 0.88rem; }
  .slider__dots { left: 24px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }

  .live-stats { gap: 24px; padding: 16px 20px; }

  .section-title { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .slide__title { font-size: 1.5rem; }
  .slide__actions { gap: 10px; }
  .btn--lg { padding: 12px 22px; font-size: 0.9rem; }

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

  .live-stats { gap: 20px; }
  .live-stat__number { font-size: 1.3rem; }
}


/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
