/* =====================================================================
   WC2026 — offer cards
   Mobile: 2-column grid (logo/eval left · bonus/CTA right)
   Desktop: header row + 4-column card (casino · bonus · eval · play)
   ===================================================================== */
.offers-container { display: flex; flex-direction: column; gap: 16px; }

/* Desktop column labels — hidden on mobile/tablet */
.offers-header { display: none; }

.offer-block {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(8, 14, 12, .55);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: visible;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.offer-block:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 8px 24px rgba(0,0,0,.38);
}
.offer-block:active { transform: translateY(0); }
.offer-block:focus-within {
  border-color: rgba(246,201,69,.5);
  box-shadow: 0 0 0 2px rgba(246,201,69,.3), 0 8px 24px rgba(0,0,0,.38);
}

.offer-block.is-top {
  border-color: rgba(255,255,255,.16);
  background: rgba(8, 14, 12, .62);
}

/* Stretched link — entire card clickable */
.offer-card-link {
  position: absolute; inset: 0; z-index: 5;
  display: block; border-radius: inherit;
}
.offer-card-link:focus { outline: none; }
.offer-card-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Offer badge — pill on top border */
.exclusive-badge {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 2;
  transform: translateY(-50%);
  padding: 5px 12px;
  font-family: "Outfit", sans-serif;
  font-size: .58rem; font-weight: 800;
  letter-spacing: .06em; text-transform: none;
  color: #fff;
  background: #15803d;
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100% - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-block.has-badge { margin-top: 8px; }

/* Mobile / tablet — 2×2 grid mimicking the old left/right split */
.offer-inner-block {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "casino bonus"
    "eval play";
  min-height: 118px;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.offer-col-casino { grid-area: casino; }
.offer-col-bonus  { grid-area: bonus; }
.offer-col-eval   { grid-area: eval; }
.offer-col-play   { grid-area: play; }

.offer-col-casino,
.offer-col-eval {
  border-right: 1px solid rgba(255,255,255,.08);
}

.offer-col-casino,
.offer-col-bonus,
.offer-col-eval,
.offer-col-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
}

.is-top .offer-col-casino,
.is-top .offer-col-bonus,
.has-badge .offer-col-casino,
.has-badge .offer-col-bonus { padding-top: 22px; }
.is-top .offer-col-eval,
.is-top .offer-col-play,
.has-badge .offer-col-eval,
.has-badge .offer-col-play  { padding-top: 12px; }

.offer-logo {
  width: 100%;
  max-width: 120px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-logo img {
  width: auto; max-width: 100%; max-height: 44px;
  object-fit: contain;
}
.offer-logo-text {
  display: flex;
  align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: .95rem;
  text-transform: capitalize; color: var(--white);
  padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
}

/* Stars + score */
.rating-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.stars-container {
  position: relative; display: inline-block; color: transparent;
  font-size: 13px; letter-spacing: 1px; line-height: 1;
}
.stars-container::before { position: absolute; top: 0; left: 0; content: '★★★★★'; color: rgba(255,255,255,.2); }
.stars-container::after  { position: absolute; top: 0; left: 0; content: '★★★★★'; color: #facc15; overflow: hidden; }
.star-100::after { width: 100%; }
.star-90::after  { width: 90%; }
.star-80::after  { width: 80%; }
.star-70::after  { width: 70%; }
.star-50::after  { width: 50%; }
.star-score {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem; font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.vote-count {
  font-size: .62rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

/* Bonus column */
.welcome-bonus-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.welcome-bonus {
  font-family: "Outfit", sans-serif;
  font-size: .92rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.welcome-bonus--main {
  font-size: .95rem;
  text-transform: none;
}
.welcome-bonus--sub {
  font-size: .72rem;
  font-weight: 600;
  text-transform: none;
  color: rgba(255,255,255,.72);
}
.policy { display: none; }

.offer-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 130px;
  min-height: 36px;
  padding: 0 12px;
  font-family: "Outfit", sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
  border-radius: 8px;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(255,255,255,.2) 42%,
      rgba(255,255,255,.85) 50%,
      rgba(255,255,255,.2) 58%,
      transparent 100%
    ),
    linear-gradient(180deg, #fde047 0%, #eab308 100%);
  background-size: 220% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 200% 0, 0 0;
  animation: btnShine 2.6s ease-in-out infinite;
  box-shadow: 0 3px 0 #ca8a04, inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .16s ease, box-shadow .16s ease;
  pointer-events: none;
}
@keyframes btnShine {
  0% { background-position: 200% 0, 0 0; }
  45%, 100% { background-position: -120% 0, 0 0; }
}
.offer-block:hover .offer-btn {
  transform: scale(1.03);
  box-shadow: 0 4px 0 #ca8a04, 0 6px 14px rgba(234,179,8,.35), inset 0 1px 0 rgba(255,255,255,.45);
}
.offer-block:active .offer-btn {
  transform: scale(.98);
  box-shadow: 0 1px 0 #ca8a04, inset 0 1px 0 rgba(255,255,255,.45);
}

.btn-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.online-players {
  font-size: .6rem;
  font-weight: 600;
  color: #86efac;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 760px) {
  .offer-inner-block { min-height: 110px; }
  .offer-logo { max-width: 130px; }
  .offer-logo img { max-height: 48px; }
  .welcome-bonus--main { font-size: 1rem; }
  .offer-btn { max-width: 140px; min-height: 38px; font-size: .8rem; }
}

/* Desktop — table-style header + single-row 4-column cards */
@media (min-width: 900px) {
  .offers-header {
    display: block;
    margin-bottom: 8px;
  }

  .offers-header__inner {
    display: grid;
    grid-template-columns: 1.05fr 1.45fr 0.95fr 0.95fr;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
  }

  .offers-header .header-item {
    font-family: "Outfit", sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    text-align: center;
  }

  .offers-header .header-casino { text-align: left; }

  .offer-inner-block {
    grid-template-columns: 1.05fr 1.45fr 0.95fr 0.95fr;
    grid-template-areas: "casino bonus eval play";
    min-height: 96px;
    gap: 0;
  }

  .offer-col-casino,
  .offer-col-bonus,
  .offer-col-eval {
    border-right: 1px solid rgba(255,255,255,.08);
  }

  .offer-col-play { border-right: none; }

  .offer-col-casino,
  .offer-col-bonus,
  .offer-col-eval,
  .offer-col-play {
    padding: 18px 20px;
  }

  .is-top .offer-col-casino,
  .is-top .offer-col-bonus,
  .is-top .offer-col-eval,
  .is-top .offer-col-play,
  .has-badge .offer-col-casino,
  .has-badge .offer-col-bonus,
  .has-badge .offer-col-eval,
  .has-badge .offer-col-play {
    padding-top: 26px;
  }

  .exclusive-badge {
    left: 24px;
    font-size: .62rem;
    padding: 6px 14px;
  }

  .offer-block.has-badge { margin-top: 10px; }

  .offer-col-casino {
    align-items: center;
    justify-content: center;
  }

  .offer-logo {
    max-width: 140px;
    min-height: 48px;
  }

  .offer-logo img { max-height: 52px; }

  .welcome-bonus--main {
    font-size: 1.15rem;
    line-height: 1.15;
  }

  .welcome-bonus--sub {
    font-size: .82rem;
    margin-top: 2px;
  }

  .rating-container {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .stars-container { font-size: 14px; }

  .star-score {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
  }

  .vote-count { display: none; }

  .offer-btn {
    max-width: 170px;
    min-height: 42px;
    font-size: .82rem;
    border-radius: 999px;
  }

  .online-players { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .offer-btn { animation: none; background-position: 0 0, 0 0; }
}
