/* =====================================================================
   WC2026 — offer comparison cards (data from config.txt via parse.php)
   Mobile-first stacked layout; switches to a row on tablet/desktop.
   ===================================================================== */
.offers-container { display: flex; flex-direction: column; gap: 8px; }

.offer-block {
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.offer-block:hover { transform: translateY(-3px); border-color: rgba(31,211,104,.45); box-shadow: 0 16px 38px rgba(0,0,0,.45); }

/* #1 — gold */
.offer-block.is-top {
  border-color: rgba(246,201,69,.6);
  background:
    linear-gradient(180deg, rgba(246,201,69,.12), rgba(255,255,255,.02));
  box-shadow: 0 10px 28px rgba(246,201,69,.18), 0 6px 16px rgba(0,0,0,.4);
}
/* #2 — silver */
.offer-block.is-second {
  border-color: rgba(192,192,192,.65);
  background:
    linear-gradient(180deg, rgba(192,192,192,.10), rgba(255,255,255,.02));
  box-shadow: 0 10px 28px rgba(192,192,192,.15), 0 6px 16px rgba(0,0,0,.4);
}
/* #3 — bronze */
.offer-block.is-third {
  border-color: rgba(205,127,50,.65);
  background:
    linear-gradient(180deg, rgba(205,127,50,.10), rgba(255,255,255,.02));
  box-shadow: 0 10px 28px rgba(205,127,50,.15), 0 6px 16px rgba(0,0,0,.4);
}

/* whole-card link on mobile (hidden on desktop where buttons handle clicks) */
.mobile-link { position: absolute; inset: 0; z-index: 6; display: block; }

/* rank badge top-left */
.rank-badge {
  position: absolute; top: 0; left: 0; z-index: 7;
  min-width: 34px; height: 26px; padding: 0 8px;
  display: inline-grid; place-items: center;
  font-family: "Outfit", sans-serif; font-weight: 900; font-size: .78rem;
  color: #04130c; background: linear-gradient(180deg, #e9f7ee, #b9d8c4);
  border-bottom-right-radius: 10px;
}
.is-top .rank-badge { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.rank-badge .trophy { font-size: .95rem; }

/* ---- MOBILE: row layout (logo+rating | bonus+btn) ---- */
.offer-inner-block {
  display: flex; flex-direction: row; align-items: center;
  padding: 10px 12px 10px 42px;
  gap: 10px;
}

/* ---- LEFT: logo + rating ---- */
.offer-left-block {
  flex: 0 0 150px; width: 150px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.offer-logo {
  width: 100%; max-width: 150px; min-height: 54px;
  display: flex; align-items: center; justify-content: center;
}
.offer-logo a { display: flex; align-items: center; justify-content: center; width: 100%; }
.offer-logo img { width: auto; max-width: 100%; max-height: 66px; object-fit: contain; }
/* text fallback shown when logo image is missing */
.offer-logo-text {
  align-items: center; justify-content: center;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1rem;
  text-transform: capitalize; color: var(--white);
  padding: 6px 10px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(31,211,104,.25), rgba(246,201,69,.18));
  border: 1px solid var(--line);
}

.rating-container { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stars-container {
  position: relative; display: inline-block; color: transparent;
  font-size: 14px; letter-spacing: 1px;
}
.stars-container::before { position: absolute; top: 0; left: 0; content: '★★★★★'; color: rgba(255,255,255,.22); }
.stars-container::after  { position: absolute; top: 0; left: 0; content: '★★★★★'; color: var(--gold); 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%; }
.offer-score-inner { display: flex; gap: 8px; }
.site-rating-text { font-size: .68rem; font-weight: 600; color: var(--muted); }
.site-rating-number { color: var(--white); font-weight: 800; margin-left: 3px; }

/* ---- RIGHT: bonus + CTA ---- */
.offer-right-block { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.welcome-bonus-block { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; width: 100%; }
.welcome-title { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.welcome-bonus { font-family: "Outfit", sans-serif; font-size: .92rem; font-weight: 800; color: var(--white); line-height: 1.2; }
.policy { font-size: .65rem; color: var(--muted); }

.btn-block { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
.offer-btn {
  position: relative; z-index: 7;
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 38px; padding: 0 14px;
  font-family: "Outfit", sans-serif; font-size: .88rem; font-weight: 800;
  color: #3a2400; border-radius: 999px;
  background: linear-gradient(180deg, var(--cta-from), var(--cta-to));
  box-shadow: 0 6px 16px rgba(240,169,30,.4), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .16s ease, box-shadow .16s ease;
}
.offer-btn:hover { transform: scale(1.04); box-shadow: 0 12px 28px rgba(240,169,30,.5); }
.offer-btn:active { transform: scale(.98); }
.min-deposit { display: none; }
.min-deposit p { font-size: .68rem; color: var(--muted); }
.min-deposit span { color: var(--cream); font-weight: 700; }
.terms-line { font-size: .62rem; color: var(--muted); text-align: center; }

/* ===================== TABLET / DESKTOP: row layout =====================
   Left block fixed; right block flexes and the bonus text shrinks (min-width:0)
   so nothing overflows between 760px and full desktop. */
@media (min-width: 760px) {
  .offers-container { gap: 16px; }
  .mobile-link { display: none; }
  .offer-block { border-radius: var(--radius); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
  .offer-inner-block {
    flex-direction: row; align-items: center;
    padding: 22px 22px 22px 50px;
    gap: 18px;
  }
  .offer-left-block { flex: 0 0 auto; width: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 18px; min-width: 0; }
  .offer-logo { width: 140px; flex: 0 0 140px; max-width: 140px; min-height: 64px; }
  .offer-logo img { max-height: 70px; }
  .rating-container { align-items: flex-start; gap: 6px; }
  .stars-container { font-size: 19px; letter-spacing: 2px; }
  .offer-score-inner { flex-direction: column; gap: 2px; }
  .site-rating-text { font-size: .78rem; }
  .offer-right-block { flex: 1 1 auto; min-width: 0; flex-direction: row; align-items: center; justify-content: flex-end; gap: 18px; }
  .welcome-bonus-block { flex: 1 1 auto; min-width: 0; align-items: center; text-align: center; }
  .welcome-title { font-size: .7rem; }
  .welcome-bonus { font-size: 1.05rem; }
  .policy { font-size: .72rem; }
  .btn-block { flex: 0 0 auto; width: auto; align-items: center; }
  .offer-btn { width: auto; min-width: 170px; min-height: 52px; font-size: 1.08rem; }
  .min-deposit { display: block; }
  .rank-badge { height: 38px; font-size: .95rem; min-width: 40px; }
  .rank-badge .trophy { font-size: 1.15rem; }
}

@media (min-width: 1000px) {
  .offer-inner-block { padding-left: 56px; gap: 26px; }
  .offer-left-block { gap: 24px; }
  .offer-logo { width: 180px; flex: 0 0 180px; max-width: 180px; }
  .offer-right-block { gap: 26px; }
  .welcome-bonus { font-size: 1.25rem; }
  .offer-btn { min-width: 200px; }
}
