@layer properties, theme, base, components, utilities;
@layer components {
  .bookmakers-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bookmaker-list-card { min-width: 0; }
  .bookmaker-position { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: #e5f3ec; color: #35634e; font-weight: 800; font-size: 14px; }
  .bookmaker-description { font-size: 1rem; line-height: 1.8; color: var(--color-ink-2, #475569); max-width: 95ch; }
  .bookmaker-description p + p { margin-top: 12px; }
  .bookmaker-bonus { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; position: relative; overflow: hidden; padding: 14px 18px; border: 1px solid #f2cf70; border-left: 5px solid #e5a51b; border-radius: 14px; background: linear-gradient(115deg, #fff3cb 0%, #fff9e8 65%, #fff0bc 100%); box-shadow: 0 4px 14px rgb(180 125 12 / 9%); }
  .bookmaker-bonus > div:first-child { grid-column: 1; grid-row: 1; color: #886018; font-size: 11px; letter-spacing: 0.1em; font-weight: 700; }
  .bookmaker-bonus > div:nth-child(2) { grid-column: 1; grid-row: 2; margin-top: 5px; color: #64420b; font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.35; font-weight: 800; }

  .bookmaker-bonus-details { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; width: fit-content; align-items: center; margin-left: auto; margin-top: 0; padding: 6px 12px; border: 1px solid #d9ad48; border-radius: 7px; background: #fffdf6; color: #64420b; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .2s; }
  .bookmaker-bonus-details:hover { background: #ffe7a2; }
  .bookmaker-bonus-details:focus-visible { outline: 2px solid #886018; outline-offset: 3px; }
  .bookmaker-list-card .btn-primary { background: #e5f3ec; color: #35634e; border: 1px solid #c5dfd0; box-shadow: none; }
  .bookmaker-list-card .btn-primary:hover { background: #d4eadf; color: #254c3a; }
  @media (max-width: 480px) { .bookmaker-position { width: 24px; height: 28px; font-size: 12px; } .bookmaker-list-card > div:first-child { gap: 10px; } }
}
@layer components {
  .bookmaker-list-card { --bk-accent: #2563b9; --bk-tint: #edf4ff; position: relative; overflow: hidden; padding: 30px 22px 22px !important; border: 1px solid #e1e7ef; border-radius: 20px; background: #fff; box-shadow: 0 4px 18px rgb(15 31 61 / 4%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .bookmaker-list-card[data-bookmaker='fonbet'] { --bk-accent: #c93945; --bk-tint: #fff0f1; }
  .bookmaker-list-card[data-bookmaker='marathon'] { --bk-accent: #2862a8; --bk-tint: #edf4ff; }
  .bookmaker-list-card[data-bookmaker='pari'] { --bk-accent: #10877f; --bk-tint: #eaf8f5; }
  .bookmaker-list-card[data-bookmaker='leon'] { --bk-accent: #b6343c; --bk-tint: #fff0f1; }
  .bookmaker-list-card[data-bookmaker='winline'] { --bk-accent: #bb621a; --bk-tint: #fff3e7; }
  .bookmaker-list-card[data-bookmaker='betcity'] { --bk-accent: #2466aa; --bk-tint: #edf4ff; }
  .bookmaker-list-card[data-bookmaker='betboom'], .bookmaker-list-card[data-bookmaker='melbet'] { --bk-accent: #9b750d; --bk-tint: #fff8df; }
  .bookmaker-list-card[data-bookmaker='liga-stavok'] { --bk-accent: #167c55; --bk-tint: #ecf8f1; }
  .bookmaker-list-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 10px; background: linear-gradient(90deg, var(--bk-accent), color-mix(in srgb, var(--bk-accent) 55%, white)); }
  .bookmaker-list-card > div:first-child { align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #edf0f5; }
  .bookmaker-list-card .bookmaker-position { width: 28px; height: 30px; border-radius: 8px; background: var(--bk-tint); color: var(--bk-accent); font-size: 12px; }
  .bookmaker-list-card > div:first-child > img { width: 52px; height: 52px; padding: 5px; border-radius: 12px; border-color: #edf0f5; }
  .bookmaker-list-card h2 { font-size: 19px; line-height: 1.35; font-weight: 800; letter-spacing: -.025em; color: #152640; }
  .bookmaker-list-card .badge-license { font-size: 9px; }
  .bookmaker-list-card > div:first-child > div:last-child { padding: 9px; border-radius: 11px; background: var(--bk-tint); }
  .bookmaker-list-card > div:first-child > div:last-child > div:first-child { color: var(--bk-accent); }
  .bookmaker-list-card .bookmaker-description { font-size: 13px; line-height: 1.75; color: #687588; }
  .bookmaker-list-card .bookmaker-description p + p { margin-top: 10px; }
  .bookmaker-list-card .bookmaker-bonus { padding: 14px; border-left-width: 3px; border-radius: 12px; box-shadow: none; }
  .bookmaker-list-card .bookmaker-bonus > div:nth-child(2) { font-size: 19px; }
  .bookmaker-list-card > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; border-top: 1px solid #edf0f5; padding-top: 16px; }
  .bookmaker-list-card > div:last-child > a { padding: 10px 8px; font-size: 12px; border-radius: 9px; }
  .bookmaker-list-card > div:last-child > .btn-primary { grid-column: 1 / -1; background: var(--bk-accent); border-color: var(--bk-accent); color: #fff; }
  .bookmaker-list-card > div:last-child > .btn-primary:hover { filter: brightness(.92); color: #fff; }
  .bookmaker-list-card a:focus-visible { outline: 2px solid var(--bk-accent); outline-offset: 3px; }
  @media (min-width: 900px) { .bookmakers-list { grid-template-columns: repeat(2,minmax(0,1fr)) !important; align-items: stretch; } }
  @media (hover: hover) { .bookmaker-list-card:hover { transform: translateY(-3px); border-color: var(--bk-accent); box-shadow: 0 12px 30px rgb(15 31 61 / 9%); } }
  @media (max-width: 479px) { .bookmaker-list-card { padding: 26px 18px 18px !important; border-radius: 16px; } .bookmaker-list-card > div:first-child { gap: 8px; } .bookmaker-list-card > div:first-child > img { width: 42px; height: 42px; } .bookmaker-list-card h2 { font-size: 17px; } .bookmaker-bonus-details { padding: 6px 8px; } }
  @media (prefers-reduced-motion: reduce) { .bookmaker-list-card { transition: none; } .bookmaker-list-card:hover { transform: none; } }
}
