/* ============================================================
   RATING CARDS — Modern Casino Comparison Table
   rating-cards.css
   ============================================================ */

/* ── Animations ─────────────────────────────────────────────── */
@keyframes rc-slide-in {
  0%   { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes rc-gold-pulse {
  0%,100% { box-shadow: 0 4px 24px rgba(212,175,55,.2), 0 0 0 2px rgba(212,175,55,.3); }
  50%     { box-shadow: 0 4px 32px rgba(212,175,55,.45), 0 0 0 2px rgba(212,175,55,.6); }
}

@keyframes rc-btn-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes rc-rank-pop {
  0%   { transform: scale(0) rotate(-15deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes rc-logo-glow {
  0%,100% { filter: brightness(1) drop-shadow(0 0 0px rgba(212,175,55,0)); }
  50%     { filter: brightness(1.08) drop-shadow(0 0 8px rgba(212,175,55,.5)); }
}

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



/* ── Container ─────────────────────────────────────────────── */
.rating-cards-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 32px 0 48px;
}

/* ── Single Card ────────────────────────────────────────────── */
.rc-card {
  display: grid;
  grid-template-columns: 220px 1fr minmax(220px, 320px) 185px;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
  overflow: visible;
  transition: box-shadow .25s ease, transform .2s ease;
  position: relative;
}

.rc-card:hover {
  box-shadow: 0 8px 32px rgba(212,175,55,.18), 0 0 0 1.5px rgba(212,175,55,.25);
  transform: translateY(-2px);
}

/* ── Rank badge ─────────────────────────────────────────────── */
.rc-card::before {
  content: attr(data-rank);
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #D4AF37, #b8932a);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px 4px 8px;
  border-radius: 0 0 10px 0;
  line-height: 1.4;
  z-index: 2;
  animation: rc-rank-pop .45s cubic-bezier(.22,1,.36,1) .4s both;
}

/* ── Logo cell ──────────────────────────────────────────────── */
.rc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px;
  background: #fdfaf0;
  min-height: 120px;
  border-right: 1px solid #f0e5b0;
  border-radius: 18px 0 0 18px;
}

.rc-logo a {
  display: block;
  line-height: 0;
}

.rc-logo img {
  width: 170px;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: transform .25s ease, filter .25s ease;
}

.rc-card:hover .rc-logo img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

/* ── Features cell ──────────────────────────────────────────── */
.rc-features {
  padding: 18px 20px;
  border-right: 1px solid #f0e5b0;
}

.rc-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rc-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #3a3a4a;
  line-height: 1.45;
}

.rc-features-list li .fi,
.rc-features-list li img {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Style any icon/emoji spans that come from CMS */
.rc-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #3a3a4a;
  line-height: 1.45;
  margin-bottom: 6px;
  white-space: normal;
}

.rc-features .feature-item:last-child {
  margin-bottom: 0;
}

/* ── Bonus cell ─────────────────────────────────────────────── */
.rc-bonus {
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid #f0e5b0;
}

.rc-bonus-badge {
  display: inline-block;
  background: linear-gradient(135deg, #D4AF37 0%, #b8932a 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 10px;
  letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(212,175,55,.4);
}

.rc-bonus-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1600;
  line-height: 1.35;
}

/* ── CTA cell ───────────────────────────────────────────────── */
.rc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-radius: 0 18px 18px 0;
}

.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(100deg, #D4AF37 0%, #f0cc55 40%, #D4AF37 55%, #b8932a 100%);
  background-size: 200% auto;
  color: #1a1600 !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(212,175,55,.45);
  transition: box-shadow .2s ease, transform .2s ease, background-position .4s ease;
  animation: rc-btn-shimmer 3s linear 2s infinite;
}

.rc-btn:hover {
  background: linear-gradient(100deg, #e8c84a 0%, #f5d96a 50%, #c9a230 100%) !important;
  background-size: 200% auto !important;
  box-shadow: 0 8px 28px rgba(212,175,55,.65), 0 0 40px rgba(212,175,55,.25);
  transform: translateY(-2px);
  color: #1a1600 !important;
}

.rc-btn svg {
  width: 14px;
  height: 14px;
  opacity: .85;
}

/* ── #1 card highlight ──────────────────────────────────────── */
.rc-card[data-rank="1"] {
  box-shadow: 0 4px 24px rgba(212,175,55,.2), 0 0 0 2px rgba(212,175,55,.4);
}

.rc-card[data-rank="1"] .rc-logo {
  background: linear-gradient(160deg, #fef9e0 0%, #fdedb0 100%);
}

.rc-card[data-rank="1"] .rc-logo img {
  animation: rc-logo-glow 3s ease-in-out 1.5s infinite;
}

.rc-card[data-rank="1"] .rc-btn {
  background: linear-gradient(100deg, #e8c84a 0%, #f5d96a 40%, #D4AF37 55%, #b8932a 100%);
  background-size: 200% auto;
  box-shadow: 0 6px 22px rgba(212,175,55,.55);
  animation: rc-btn-shimmer 2s linear infinite, rc-float 3s ease-in-out 1s infinite;
}

/* ── Inline bonus/features from CMS ────────────────────────── */
/* Wrap whatever HTML comes from CMS inside rc-features */
.rc-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.rc-features ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #3a3a4a;
  line-height: 1.45;
  white-space: normal;
}

.rc-features span {
  white-space: normal !important;
}

/* bonus text inside rc-bonus */
.rc-bonus p,
.rc-bonus strong,
.rc-bonus span {
  font-size: 15px;
  font-weight: 600;
  color: #1a1600;
  line-height: 1.35;
  white-space: normal;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── 1060–1199px: slightly tighter 4-col ───────────────────── */
@media (max-width: 1199px) {
  .rc-card {
    grid-template-columns: 150px 1fr 185px 136px;
  }
  .rc-logo           { padding: 16px 14px; }
  .rc-logo img       { width: 145px; }
  .rc-features       { padding: 14px 14px; }
  .rc-features .feature-item,
  .rc-features ul li { font-size: 13px; white-space: normal; flex-wrap: wrap; }
  .rc-bonus          { padding: 14px 12px; }
  .rc-bonus-text     { font-size: 13px; }
  .rc-cta            { padding: 14px 12px; }
  .rc-btn            { padding: 11px 14px; font-size: 12px; letter-spacing: .05em; white-space: nowrap; }
}

/* ── ≤1059px: switch to 2-row layout (logo+features / bonus+cta) ── */
@media (max-width: 1059px) {
  .rc-card {
    grid-template-columns: 150px 1fr auto;
    grid-template-rows: auto auto;
  }

  /* Row 1: logo | features | cta */
  .rc-logo {
    grid-column: 1;
    grid-row: 1 / 3;          /* span both rows */
    border-right: 1px solid #f0e5b0;
    border-bottom: none;
    border-radius: 18px 0 0 18px;
    align-self: stretch;
    padding: 20px 16px;
    min-height: auto;
  }
  .rc-logo img { width: 140px; }

  .rc-features {
    grid-column: 2;
    grid-row: 1;
    border-right: 1px solid #f0e5b0;
    border-bottom: 1px solid #f0e5b0;
    padding: 18px 16px;
    align-self: center;
    font-size: 14px;
  }

  .rc-bonus {
    grid-column: 2;
    grid-row: 2;
    border-right: 1px solid #f0e5b0;
    border-bottom: none;
    padding: 14px 16px;
    text-align: left;
  }
  .rc-bonus-text { font-size: 15px; }

  .rc-cta {
    grid-column: 3;
    grid-row: 1 / 3;          /* span both rows */
    border-radius: 0 18px 18px 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px;
  }

  .rc-btn {
    white-space: nowrap;
    padding: 13px 18px;
    font-size: 13px;
  }
}

/* ── ≤767px: fully stacked ──────────────────────────────────── */
@media (max-width: 767px) {
  .rc-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    border-radius: 16px;
  }

  .rc-card::before { border-radius: 18px 0 10px 0; }

  .rc-logo, .rc-features, .rc-bonus, .rc-cta {
    grid-column: 1;
    border-right: none;
  }

  .rc-logo {
    grid-row: 1;
    grid-column: 1;
    border-bottom: 1px solid #f0e5b0;
    border-radius: 16px 16px 0 0;
    padding: 32px 20px 22px;
    min-height: auto;
    justify-content: center;
    align-self: auto;
  }
  .rc-logo img { width: 220px; }

  .rc-features {
    grid-row: 2;
    border-bottom: 1px solid #f0e5b0;
    border-right: none;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 14px;
  }

  .rc-features .feature-item,
  .rc-features ul li {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }

  .rc-features ul { align-items: center; }

  .rc-bonus {
    grid-row: 3;
    border-bottom: 1px solid #f0e5b0;
    padding: 18px 20px;
    text-align: center;
  }
  .rc-bonus-text  { font-size: 20px; }
  .rc-bonus-badge { font-size: 14px; padding: 6px 16px; }

  .rc-cta {
    grid-row: 4;
    grid-column: 1;
    border-radius: 0 0 16px 16px;
    padding: 18px 20px 24px;
    align-self: auto;
  }

  .rc-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 28px;
    font-size: 15px;
    justify-content: center;
  }

  .rc-card:hover { transform: none; }
}
