/* =====================================================
   CORGIBET CASINO — MAIN STYLESHEET  (app.css)
   ===================================================== */

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #131419;
  color: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── VARIABLES ──────────────────────────────────────── */
:root {
  --sidebar-w:       44px;
  --sidebar-w-open:  220px;
  --header-h:        60px;
  --orange:          #FF7900;
  --orange2:         #FF973A;
  --orange-dark:     #d96200;
  --dark:            #131419;
  --dark2:           #1e2029;
  --dark3:           #23262E;
  --dark4:           #2E323C;
  --transition:      .28s cubic-bezier(.4, 0, .2, 1);
}

/* =====================================================
   PULSE ANIMATIONS
   ===================================================== */
@keyframes pulse-glow {
  0%   { box-shadow: 0 4px 18px rgba(255,121,0,.35); }
  50%  { box-shadow: 0 4px 30px rgba(255,121,0,.80), 0 0 0 6px rgba(255,121,0,.13); }
  100% { box-shadow: 0 4px 18px rgba(255,121,0,.35); }
}
@keyframes pulse-glow-hero {
  0%   { box-shadow: 0 6px 26px rgba(255,121,0,.4); }
  50%  { box-shadow: 0 6px 46px rgba(255,121,0,.90), 0 0 0 12px rgba(255,121,0,.11); }
  100% { box-shadow: 0 6px 26px rgba(255,121,0,.4); }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--dark2);
  display: flex;
  align-items: center;
  padding: 0 14px 0 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,.07);
  gap: 8px;
}

/* Burger — ЗАВЖДИ перший і поверх усього */
.header__burger {
  width: 44px;
  min-width: 44px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  color: #fff;
  z-index: 210;
  transition: background var(--transition);
}
.header__burger:hover { background: rgba(255,255,255,.07); }

.header__burger .bar {
  display: block;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  position: relative;
  transition: all var(--transition);
}
.header__burger .bar::before,
.header__burger .bar::after {
  content: '';
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all var(--transition);
}
.header__burger .bar::before { top: -7px; }
.header__burger .bar::after  { top:  7px; }

body.nav-open .header__burger .bar         { background: transparent; }
body.nav-open .header__burger .bar::before { transform: rotate(45deg);  top: 0; }
body.nav-open .header__burger .bar::after  { transform: rotate(-45deg); top: 0; }

/* Logo */
.header__logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .5px;
  color: var(--orange);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.header__logo span { color: #fff; }
.header__logo-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF7900, #d96200);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

/* Tabs */
.header__tabs {
  display: flex; gap: 4px;
  margin-right: auto;
  flex-shrink: 0;
}
.header__tab {
  padding: 7px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background var(--transition);
  color: rgba(255,255,255,.65);
  background: none; border: none;
}
.header__tab.active,
.header__tab:hover { background: rgba(255,255,255,.10); color: #fff; }

/* Actions */
.header__actions {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.header__search {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; color: #fff; flex-shrink: 0;
  transition: background var(--transition);
}
.header__search:hover { background: rgba(255,255,255,.15); }

.btn-login {
  padding: 8px 20px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.30);
  background: transparent; color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
}
.btn-login:hover { background: rgba(255,255,255,.10); }

/* Sign up — пульсуюча */
.btn-signup {
  padding: 8px 20px; border-radius: 8px;
  background: linear-gradient(135deg, #FF7900, #FF973A);
  color: #111;
  font-size: 14px; font-weight: 800;
  cursor: pointer; border: none; white-space: nowrap;
  animation: pulse-glow 2.4s ease-in-out infinite;
  transition: transform var(--transition), filter var(--transition);
}
.btn-signup:hover {
  transform: translateY(-1px); filter: brightness(1.1);
  animation-play-state: paused;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  position: fixed;
  top: var(--header-h); left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--dark2);
  z-index: 150; overflow: hidden;
  transition: width var(--transition);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.06);
}
body.nav-open .sidebar { width: var(--sidebar-w-open); }

.sidebar__item {
  display: flex; align-items: center;
  height: 52px; padding: 0 12px;
  cursor: pointer; gap: 14px;
  transition: background var(--transition);
  white-space: nowrap; overflow: hidden;
  position: relative;
}
.sidebar__item:hover  { background: rgba(255,255,255,.07); }
.sidebar__item.active { background: rgba(255,121,0,.12); }
.sidebar__item.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--orange);
  border-radius: 0 2px 2px 0;
}

.sidebar__icon {
  min-width: 20px; width: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: .75; flex-shrink: 0;
}
.sidebar__item:hover .sidebar__icon,
.sidebar__item.active .sidebar__icon { opacity: 1; }

.sidebar__label {
  font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity var(--transition);
  color: rgba(255,255,255,.85);
}
body.nav-open .sidebar__label        { opacity: 1; }
.sidebar__item.active .sidebar__label { color: var(--orange); }

.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 140;
  background: rgba(0,0,0,.55);
}
body.nav-open .nav-overlay { display: block; }

/* =====================================================
   MAIN WRAPPER
   ===================================================== */
.main {
  margin: var(--header-h) auto 0 auto;
  padding-left: var(--sidebar-w);
  max-width: 1400px;
  min-height: calc(100vh - var(--header-h));
  transition: padding-left var(--transition);
}

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero {
  position: relative;
  width: 100%; min-height: 420px;

  /* ── БАНЕР: поклади файл поруч з index.html і назви bn.png ── */
  background-color: #1a1c22;
  background-image: url('../bn.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 20px;
  display: flex; align-items: center; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(19,20,25,.92) 0%,
    rgba(19,20,25,.55) 55%,
    transparent 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  padding: 60px 48px; max-width: 760px;
}
.hero__label {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: rgba(255,255,255,.65); text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__title {
  max-width: 720px;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 900; line-height: 1.12;
  text-transform: uppercase; letter-spacing: .4px;
  text-wrap: balance;
  margin-bottom: 32px;
}
.hero__title .accent { color: var(--orange); }

/* GET BONUS — велика пульсуюча кнопка */
.hero__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px;
  background: linear-gradient(135deg, #FF7900, #FF973A, #d96200);
  color: #111;
  font-size: 17px; font-weight: 900;
  border-radius: 12px; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 1px;
  animation: pulse-glow-hero 2.2s ease-in-out infinite;
  transition: transform var(--transition), filter var(--transition);
}
.hero__cta:hover {
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.12);
  animation-play-state: paused;
}

/* =====================================================
   SECTION TITLE
   ===================================================== */
.section-title {
  display: flex; align-items: center; justify-content: center;
  gap: 18px;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 900; letter-spacing: 3px;
  text-transform: uppercase; color: #fff;
  margin-bottom: 28px;
}
.section-title::before,
.section-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25));
}
.section-title::after {
  background: linear-gradient(270deg, transparent, rgba(255,255,255,.25));
}

/* =====================================================
   GAMES SECTION
   ===================================================== */
.games-section { padding: 48px 32px 40px; background: var(--dark); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.game-card {
  position: relative; border-radius: 10px;
  overflow: hidden; background: var(--dark4);
  cursor: pointer; aspect-ratio: 1 / 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.game-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,.5); z-index: 2;
}
.game-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter var(--transition);
}
.game-card:hover img { filter: brightness(1.1); }

.game-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 10px;
}
.game-card__name {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; line-height: 1.2;
}
.game-card__provider {
  font-size: 9px; font-weight: 600;
  color: var(--orange); letter-spacing: .5px; margin-top: 2px;
}

.game-card__heart {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.4); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer; border: none;
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition);
}
.game-card__heart:hover,
.game-card__heart.liked { background: rgba(220,50,50,.7); color: #fff; }

.game-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
  background: rgba(19,20,25,.3);
}
.game-card:hover .game-card__play { opacity: 1; }
.game-card__play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #111;
  box-shadow: 0 4px 16px rgba(255,121,0,.55);
}

/* =====================================================
   CASHBACK SECTION
   ===================================================== */
.cashback-section {
  background: var(--dark3);
  padding: 60px 48px;
  display: flex; align-items: center; gap: 48px;
}
.cashback-section__content { flex: 1; }
.cashback-section__title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900; text-transform: uppercase;
  line-height: 1.1; margin-bottom: 16px;
}
.cashback-section__title .accent { color: var(--orange); }
.cashback-section__subtitle {
  font-size: 15px; color: rgba(255,255,255,.65);
  line-height: 1.6; max-width: 420px; margin-bottom: 28px;
}
.cashback-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--dark4), var(--dark2));
  border: 1px solid rgba(255,121,0,.3);
  border-radius: 14px; padding: 18px 28px;
}
.cashback-badge__label { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600; }
.cashback-badge__value { font-size: 42px; font-weight: 900; color: var(--orange); line-height: 1; }
.cashback-section__img { flex-shrink: 0; font-size: 120px; line-height: 1; }

/* =====================================================
   PAYMENTS BAR
   ===================================================== */
.payments-bar {
  background: linear-gradient(135deg, #cc5c00, #a34800, #cc5c00);
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.payments-bar__item {
  font-size: 15px; font-weight: 800;
  color: rgba(255,255,255,.9); letter-spacing: .5px;
  display: flex; align-items: center; gap: 5px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--dark2);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 44px 48px 28px;
}
.footer__top { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 36px; }
.footer__brand { min-width: 140px; }
.footer__logo { font-size: 22px; font-weight: 900; color: var(--orange); margin-bottom: 12px; }
.footer__lang {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border-radius: 8px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12);
}
.footer__cols { flex: 1; display: flex; gap: 32px; flex-wrap: wrap; }
.footer__col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 12px;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer__col ul li a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer__copy { font-size: 12px; color: rgba(255,255,255,.35); }
.footer__badges { display: flex; align-items: center; gap: 12px; }
.footer__badge {
  font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.08); border-radius: 6px;
  padding: 4px 10px; color: rgba(255,255,255,.55);
}

/* =====================================================
   SCROLLBAR
   ===================================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track  { background: var(--dark2); }
::-webkit-scrollbar-thumb  { background: rgba(255,255,255,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.25); }

/* =====================================================
   RESPONSIVE — TABLET (≤1100px)
   ===================================================== */
@media (max-width: 1100px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  :root {
    --sidebar-w:      0px;
    --sidebar-w-open: 240px;
  }

  .sidebar {
    width: 0; top: 0; height: 100vh;
    z-index: 300; border-right: none;
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
  }
  body.nav-open .sidebar        { width: var(--sidebar-w-open); }
  .sidebar__label               { opacity: 0; }
  body.nav-open .sidebar__label { opacity: 1; }

  .main { margin-left: 0; }

  /* Header */
  .header { padding: 0 10px 0 0; gap: 6px; }
  .header__burger { width: 44px; min-width: 44px; }
  .header__logo   { font-size: 16px; }
  .header__logo-icon { width: 28px; height: 28px; font-size: 14px; }
  .header__tabs   { display: none; }
  .btn-login      { display: none; }
  .header__actions { gap: 6px; }
  .btn-signup     { padding: 7px 12px; font-size: 12px; }

  /* Hero */
  .hero { min-height: 300px; }
  .hero__content { padding: 36px 20px; }
  .hero__cta { padding: 13px 30px; font-size: 15px; }

  /* Games */
  .games-section { padding: 32px 14px 24px; }
  .games-grid    { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* Cashback */
  .cashback-section { flex-direction: column; padding: 40px 20px; text-align: center; }
  .cashback-section__img { font-size: 80px; }

  /* Payments */
  .payments-bar { padding: 16px 20px; gap: 20px; }

  /* Footer */
  .footer       { padding: 32px 20px 20px; }
  .footer__top  { gap: 28px; }
  .footer__cols { gap: 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ===================================================== */
@media (max-width: 480px) {
  .games-grid  { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 24px; }
}
