/* =========================================================
   BOOKMAKER CARDS LIST
========================================================= */

.bookmaker-cards-list {
  display: grid;
  gap: 16px;

  width: 100%;
  margin: 36px 0;
}

/* =========================================================
   BOOKMAKER CARD
========================================================= */

.bookmaker-card {
  position: relative;

  display: grid;
  grid-template-columns:
    minmax(215px, 1.15fr)
    minmax(220px, 1.15fr)
    minmax(190px, 0.95fr)
    82px
    minmax(170px, 0.85fr);
  align-items: center;
  gap: clamp(18px, 2vw, 30px);

  min-width: 0;
  min-height: 142px;
  padding: 24px 26px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.025);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;

  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);

  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.bookmaker-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.13);

  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.21),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);

  transform: translateY(-3px);
}

/* =========================================================
   BRAND
========================================================= */

.bookmaker-card__brand {
  position: relative;

  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 17px;

  min-width: 0;
  padding-right: 8px;
}

.bookmaker-card__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 76px;
  height: 76px;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;

  transition:
    background 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}

.bookmaker-card:hover .bookmaker-card__logo-wrap {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);

  transform: translateY(-1px);
}

.bookmaker-card__logo {
  display: block;

  width: 100%;
  height: 100%;
  margin: 0 !important;

  object-fit: contain;

  border: 0;
  border-radius: 0;

  box-shadow: none;
}

.bookmaker-card__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  color: var(--accent);
  background: rgba(255, 49, 87, 0.065);

  border-radius: 10px;

  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.bookmaker-card__title {
  min-width: 0;
  margin: 0;

  overflow: hidden;

  color: var(--text);

  font-size: clamp(22px, 2vw, 28px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: normal;
}

/* =========================================================
   META LABEL
========================================================= */

.bookmaker-card__meta-label {
  display: block;

  margin: 0 0 10px;

  color: var(--accent);

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* =========================================================
   BONUS
========================================================= */

.bookmaker-card__bonus {
  min-width: 0;
}

.bookmaker-card__bonus-value {
  display: block;

  width: 100%;
  max-width: 300px;

  color: var(--text);

  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.025em;

  overflow-wrap: break-word;
}

/* =========================================================
   PROMO CODE
========================================================= */

.bookmaker-card__promo {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;

  min-width: 0;
  min-height: 54px;

  padding: 7px 7px 7px 13px;

  overflow: hidden;

  background: linear-gradient(180deg, #25243b 0%, #202137 100%);

  border: 1px solid rgba(255, 47, 91, 0.48);
  border-radius: 11px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 7px 18px rgba(0, 0, 0, 0.13);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.bookmaker-card__promo:hover {
  border-color: rgba(255, 47, 91, 0.68);

  background: linear-gradient(180deg, #29273f 0%, #222239 100%);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.16),
    0 0 12px rgba(255, 47, 91, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* =========================================================
   PROMO LABEL
========================================================= */

.bookmaker-card__promo .bookmaker-card__meta-label {
  grid-column: 1;
  grid-row: 1;

  margin: 0 0 3px;
  padding: 0;

  color: var(--accent);

  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

/* =========================================================
   PROMO INNER WRAPPER
========================================================= */

.bookmaker-card__promo-box {
  display: contents;
}

.bookmaker-card__promo-box::after {
  display: none;

  content: none;
}

/* =========================================================
   PROMO VALUE
========================================================= */

.bookmaker-card__promo-value {
  grid-column: 1;
  grid-row: 2;

  display: block;

  min-width: 0;
  padding: 0;

  overflow: hidden;

  color: #ffffff;

  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0.01em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   COPY BUTTON
========================================================= */

.bookmaker-card__copy {
  position: relative;
  z-index: 2;

  grid-column: 2;
  grid-row: 1 / 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  align-self: center;

  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;

  color: var(--accent);

  background: linear-gradient(180deg, #28243a 0%, #211f35 100%);

  border: 1px solid rgba(255, 47, 91, 0.32);
  border-radius: 8px;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);

  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

/* Hide Copy text */

.bookmaker-card__copy-text {
  display: none;
}

/* =========================================================
   COPY ICON
========================================================= */

.bookmaker-card__copy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);

  font-size: 14px;
  line-height: 1;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

/* =========================================================
   COPY BUTTON HOVER
========================================================= */

.bookmaker-card__copy:hover {
  color: #ffffff;

  background: linear-gradient(180deg, rgba(255, 47, 91, 0.16), rgba(255, 47, 91, 0.07));

  border-color: rgba(255, 47, 91, 0.7);

  box-shadow:
    0 0 12px rgba(255, 47, 91, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transform: translateY(-1px);
}

.bookmaker-card__copy:hover .bookmaker-card__copy-icon {
  color: #ffffff;
}

/* =========================================================
   COPIED STATE
========================================================= */

.bookmaker-card__copy.is-copied {
  color: #ffffff;

  background: linear-gradient(180deg, rgba(255, 47, 91, 0.22), rgba(255, 47, 91, 0.1));

  border-color: var(--accent);

  box-shadow: 0 0 12px rgba(255, 47, 91, 0.12);
}

.bookmaker-card__copy.is-copied .bookmaker-card__copy-icon {
  color: #ffffff;
}

/* =========================================================
   RATING
========================================================= */

.bookmaker-card__rating {
  min-width: 0;

  text-align: center;
}

.bookmaker-card__rating-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
}

.bookmaker-card__rating-value {
  color: var(--text);

  font-size: 32px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.05em;
}

.bookmaker-card__rating-max {
  color: var(--muted-dark);

  font-size: 9px;
  font-weight: 700;
}

.bookmaker-card__stars {
  position: relative;

  display: inline-block;

  margin-top: 8px;

  color: rgba(255, 255, 255, 0.16);

  font-size: 9px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.bookmaker-card__stars::before {
  content: '★★★★★';

  position: absolute;
  inset: 0;

  width: var(--rating);

  overflow: hidden;

  color: #f2c75a;

  white-space: nowrap;
}

.bookmaker-card__stars::after {
  content: '★★★★★';
}

/* =========================================================
   CTA
========================================================= */

.bookmaker-card__cta {
  min-width: 0;
}

.bookmaker-card__button {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  width: 100%;
  min-height: 48px;
  padding: 10px 38px 10px 16px;

  overflow: hidden;

  color: #fff !important;
  text-decoration: none;

  background:
    linear-gradient(180deg, #27243c 0%, #1d1e34 50%, #17192d 100%) padding-box,
    linear-gradient(110deg, rgba(255, 38, 92, 0.7) 0%, rgba(124, 91, 158, 0.72) 45%, rgba(111, 117, 149, 0.58) 100%) border-box;

  border: 1px solid transparent;
  border-radius: 10px;

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;

  transition:
    transform 200ms ease,
    filter 200ms ease,
    box-shadow 200ms ease;
}

/* =========================================================
   BOTTOM ACCENT
========================================================= */

.bookmaker-card__button::after {
  position: absolute;
  bottom: 0;
  left: 0;

  width: 32%;
  height: 2px;

  content: '';

  background: linear-gradient(90deg, #ff285c 0%, #d72b79 60%, rgba(215, 43, 121, 0) 100%);

  border-radius: 0 999px 999px 0;

  opacity: 0.9;

  transition:
    width 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
}

/* =========================================================
   HOVER
========================================================= */

.bookmaker-card__button:hover {
  color: #fff !important;

  filter: brightness(1.07);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(255, 36, 91, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);

  transform: translateY(-2px);
}

.bookmaker-card__button:hover::after {
  width: 55%;
  opacity: 1;
}

/* =========================================================
   ARROW
========================================================= */

.bookmaker-card__button-icon {
  position: absolute;
  top: 50%;
  right: 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(255, 255, 255, 0.82);

  font-size: 14px;
  line-height: 1;

  transform: translateY(-50%);

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.bookmaker-card__button:hover .bookmaker-card__button-icon {
  color: #fff;

  transform: translateY(-50%) translateX(3px);
}

/* =========================================================
   MEDIUM DESKTOP / TABLET
========================================================= */

@media (min-width: 769px) and (max-width: 1100px) {
  .bookmaker-card {
    grid-template-columns:
      minmax(180px, 1.05fr)
      minmax(180px, 1fr)
      minmax(165px, 0.9fr)
      70px
      minmax(145px, 0.8fr);
    gap: 16px;

    min-height: 128px;
    padding: 20px;
  }

  .bookmaker-card__brand {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }

  .bookmaker-card__logo-wrap {
    width: 62px;
    height: 62px;
    padding: 6px;

    border-radius: 13px;
  }

  .bookmaker-card__title {
    font-size: 19px;
  }

  .bookmaker-card__meta-label {
    margin-bottom: 8px;

    font-size: 8px;
  }

  .bookmaker-card__bonus-value {
    font-size: 15px;
    line-height: 1.35;
  }

  .bookmaker-card__promo-box {
    min-height: 44px;
    padding-left: 11px;
  }

  .bookmaker-card__promo-value {
    font-size: 12px;
  }

  .bookmaker-card__copy {
    min-width: 36px;
    width: 36px;
    padding: 0;
  }

  .bookmaker-card__copy-text {
    display: none;
  }

  .bookmaker-card__rating-value {
    font-size: 26px;
  }

  .bookmaker-card__stars {
    font-size: 7px;
    letter-spacing: 0;
  }

  .bookmaker-card__button {
    padding-inline: 10px;

    font-size: 9px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {
  .bookmaker-cards-list {
    gap: 12px;
    margin: 28px 0;
  }

  .bookmaker-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'brand rating'
      'bonus bonus'
      'promo promo'
      'cta cta';
    gap: 18px 12px;

    min-height: auto;
    padding: 17px;

    border-radius: 16px;
  }

  .bookmaker-card__brand {
    grid-area: brand;

    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;

    padding: 0;
  }

  .bookmaker-card__logo-wrap {
    width: 58px;
    height: 58px;
    padding: 5px;

    border-radius: 13px;
  }

  .bookmaker-card__title {
    font-size: 19px;
    line-height: 1.12;
    white-space: normal;
  }

  .bookmaker-card__rating {
    grid-area: rating;

    align-self: center;
    justify-self: end;
  }

  .bookmaker-card__rating-value {
    font-size: 24px;
  }

  .bookmaker-card__rating-max {
    font-size: 8px;
  }

  .bookmaker-card__stars {
    margin-top: 5px;

    font-size: 7px;
    letter-spacing: 0;
  }

  .bookmaker-card__bonus {
    display: block;

    grid-area: bonus;

    width: 100%;
    padding-top: 2px;
  }

  .bookmaker-card__meta-label {
    margin-bottom: 8px;

    font-size: 9px;
  }

  .bookmaker-card__bonus-value {
    width: 100%;
    max-width: none;

    font-size: 17px;
    line-height: 1.35;
  }

  .bookmaker-card__promo {
    grid-area: promo;

    width: 100%;
  }

  .bookmaker-card__promo-box {
    min-height: 46px;
    padding-left: 13px;
  }

  .bookmaker-card__promo-value {
    font-size: 14px;
  }

  .bookmaker-card__copy {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  .bookmaker-card__copy-text {
    display: none;
  }

  .bookmaker-card__cta {
    grid-area: cta;

    width: 100%;
  }

  .bookmaker-card__button {
    min-height: 48px;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .bookmaker-card {
    padding: 14px;
    gap: 16px 9px;
  }

  .bookmaker-card__brand {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
  }

  .bookmaker-card__logo-wrap {
    width: 50px;
    height: 50px;
  }

  .bookmaker-card__title {
    font-size: 17px;
  }

  .bookmaker-card__rating-value {
    font-size: 21px;
  }

  .bookmaker-card__rating-max {
    display: none;
  }

  .bookmaker-card__bonus-value {
    font-size: 15px;
  }

  .bookmaker-card__promo-box {
    min-height: 44px;
    padding-left: 11px;
  }

  .bookmaker-card__promo-value {
    font-size: 13px;
  }

  .bookmaker-card__copy-text {
    display: none;
  }

  .bookmaker-card__button {
    font-size: 10px;
  }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
  .bookmaker-card:hover,
  .bookmaker-card:hover .bookmaker-card__logo-wrap,
  .bookmaker-card__copy:hover,
  .bookmaker-card__button:hover {
    transform: none;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .bookmaker-card,
  .bookmaker-card__logo-wrap,
  .bookmaker-card__promo-box,
  .bookmaker-card__copy,
  .bookmaker-card__button,
  .bookmaker-card__button-icon {
    transition: none;
  }
}
