/* ==============================
   Bookmaker Card Base
============================== */

.bookmaker-card {
  --gold: #f6bd3b;
  --gold-soft: #ffe18a;
  --bg: #101113;
  --bg-2: #070809;
  --text: #f8f8f8;
  --muted: rgba(255, 255, 255, 0.58);
  --line: rgba(246, 189, 59, 0.24);

  position: relative;
  overflow: hidden;

  max-width: 980px;
  margin: 32px auto;

  border-radius: 24px;
  border: 1px solid rgba(246, 189, 59, 0.28);

  background: radial-gradient(circle at 85% 0%, rgba(246, 189, 59, 0.06), transparent 30%), linear-gradient(180deg, #111315 0%, #070809 100%);

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.bookmaker-card:hover {
  border-color: rgba(246, 189, 59, 0.48);

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(246, 189, 59, 0.08);
}

/* ==============================
   Card Shimmer Animation
============================== */

.bookmaker-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  z-index: 1;

  width: 35%;
  height: 100%;

  pointer-events: none;

  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.045) 45%, rgba(246, 189, 59, 0.08) 50%, rgba(255, 255, 255, 0.045) 55%, transparent 100%);

  transform: skewX(-18deg);
  animation: cardShimmer 7s ease-in-out infinite;
}

@keyframes cardShimmer {
  0%,
  68% {
    left: -45%;
    opacity: 0;
  }

  74% {
    opacity: 1;
  }

  100% {
    left: 115%;
    opacity: 0;
  }
}

/* ==============================
   Card Main Layout
============================== */

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

  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 330px;
  grid-template-areas: 'logo info actions';
  align-items: center;
  gap: 28px;

  padding: 20px 24px;
}

.bookmaker-card__logo-box {
  grid-area: logo;
}

.bookmaker-card__content {
  grid-area: info;
}

.bookmaker-card__actions {
  grid-area: actions;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: stretch;
}

/* ==============================
   Logo
============================== */

.bookmaker-card__logo-box img,
.bookmaker-card__logo-placeholder {
  width: 96px;
  height: 96px;
  margin: 0 !important;

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

  border-radius: 20px;
  object-fit: contain;

  background: linear-gradient(135deg, #ffe18a, #f6bd3b);

  box-shadow:
    0 14px 34px rgba(246, 189, 59, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.bookmaker-card__logo-placeholder {
  color: #111;
  font-size: 52px;
  font-weight: 950;
  line-height: 1;
}

/* ==============================
   Content
============================== */

.bookmaker-card__title {
  margin: 0 0 6px;

  color: var(--text);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.1;
}

.bookmaker-card__bonus {
  max-width: 520px;

  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

/* ==============================
   Promo Code
============================== */

.bookmaker-card__code {
  position: relative;
  overflow: hidden;

  min-width: 0;
  min-height: 54px;
  padding: 7px 10px;

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

  border-radius: 14px;
  border: 1px dashed rgba(246, 189, 59, 0.25);

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

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.bookmaker-card__code:hover {
  border-color: rgba(246, 189, 59, 0.42);
  background: rgba(246, 189, 59, 0.055);
}

.bookmaker-card__code-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.bookmaker-card__code-value {
  overflow: hidden;

  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 850;

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

.bookmaker-card__code-copy {
  padding: 7px 11px;

  border-radius: 10px;

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

  color: #fff;
  font-size: 12px;
  font-weight: 800;

  transition: 0.22s ease;
}

/* ==============================
   Promo Code Copied State
============================== */

.bookmaker-card__code.is-copied {
  background: rgba(246, 189, 59, 0.08);
  border-color: rgba(246, 189, 59, 0.55);

  color: #ffe18a;

  box-shadow:
    0 0 18px rgba(246, 189, 59, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bookmaker-card__code.is-copied .bookmaker-card__code-label {
  color: rgba(255, 225, 138, 0.72);
}

.bookmaker-card__code.is-copied .bookmaker-card__code-value {
  color: #ffe18a;
}

.bookmaker-card__code.is-copied .bookmaker-card__code-copy {
  background: rgba(246, 189, 59, 0.16);
  border: 1px solid rgba(246, 189, 59, 0.28);

  color: #ffe18a;
}

/* ==============================
   Rating
============================== */

.bookmaker-card__rating {
  min-height: 54px;
  padding: 7px 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  border: 1px solid rgba(246, 189, 59, 0.18);

  background: rgba(246, 189, 59, 0.055);

  text-align: center;
}

.bookmaker-card__rating-value {
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.05em;

  transition: 0.3s ease;
}

.bookmaker-card:hover .bookmaker-card__rating-value {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

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

  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
}

/* ==============================
   Button
============================== */

.bookmaker-card__button {
  grid-column: 1 / -1;

  min-height: 54px;

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

  border-radius: 14px;

  background: linear-gradient(135deg, #ffe18a, #f6bd3b);

  color: #120d05 !important;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;

  box-shadow: 0 12px 28px rgba(246, 189, 59, 0.18);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bookmaker-card__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(246, 189, 59, 0.24);
}

.bookmaker-card__button span {
  transition: 0.25s ease;
}

.bookmaker-card__button:hover span {
  transform: translateX(5px);
}

/* ==============================
   Features
============================== */

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

  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;

  padding: 12px 22px;

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

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

  transition: 0.25s ease;
}

.bookmaker-card__feature {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.bookmaker-card__feature:hover {
  color: #fff;
}

.bookmaker-card__feature span {
  color: var(--gold);
}

/* ==============================
   Tablet Responsive
============================== */

@media (max-width: 900px) {
  .bookmaker-card {
    max-width: 520px;
  }

  .bookmaker-card__main {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-areas:
      'logo info'
      'actions actions';

    gap: 16px;
    padding: 22px;
  }

  .bookmaker-card__logo-box img,
  .bookmaker-card__logo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 16px;
  }

  .bookmaker-card__logo-placeholder {
    font-size: 42px;
  }

  .bookmaker-card__title {
    font-size: 22px;
    line-height: 1.1;
  }

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

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

  .bookmaker-card__code,
  .bookmaker-card__rating,
  .bookmaker-card__button {
    min-height: 52px;
  }

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

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

  .bookmaker-card__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;

    padding: 16px 22px 20px;
  }

  .bookmaker-card__feature {
    font-size: 13px;
  }
}

/* ==============================
   Mobile Responsive
============================== */

@media (max-width: 480px) {
  .bookmaker-card {
    max-width: 100%;
    margin: 28px auto;
    border-radius: 22px;
  }

  .bookmaker-card__main {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .bookmaker-card__logo-box img,
  .bookmaker-card__logo-placeholder {
    width: 66px;
    height: 66px;
    border-radius: 15px;
  }

  .bookmaker-card__logo-placeholder {
    font-size: 36px;
  }

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

  .bookmaker-card__actions {
    grid-template-columns: minmax(0, 1fr) 78px;
    gap: 8px;
  }

  .bookmaker-card__code,
  .bookmaker-card__rating,
  .bookmaker-card__button {
    min-height: 50px;
  }

  .bookmaker-card__code {
    padding: 6px 8px;
    gap: 6px;
  }

  .bookmaker-card__code-label {
    font-size: 10px;
  }

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

  .bookmaker-card__code-copy {
    padding: 6px 9px;
    font-size: 11px;
  }

  .bookmaker-card__rating {
    padding: 6px;
    border-radius: 13px;
  }

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

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

  .bookmaker-card__features {
    grid-template-columns: 1fr 1fr;
  }
}
