/* New design system for winbrit.com */
/* Typography is loaded via Google Fonts in HTML (Poppins + Manrope) */

:root {
  --wb-bg: #f7f8fb;
  --wb-surface: #ffffff;
  --wb-ink: #1c1f29;
  --wb-muted: #667085;
  --wb-primary: #6a5acd; /* slate purple */
  --wb-accent: #00bfa6;  /* teal */
  --wb-border: #e6e8ef;
  --wb-card-shadow: 0 6px 16px rgba(28, 31, 41, 0.08);
  --wb-focus-color: #6a5acd;
}

/* Resets */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--wb-ink); background: var(--wb-bg); line-height: 1.5; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
:focus-visible { outline: 2px solid var(--wb-focus-color); outline-offset: 2px; }

/* Utilities */
.wb-container, .container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.wb-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--wb-border); }
.wb-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.wb-brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--wb-ink); }
.wb-logo { width: 44px; height: 44px; border-radius: 8px; }
.wb-nav { display: flex; gap: 16px; }
.wb-nav a { color: var(--wb-ink); font-weight: 600; }
.wb-nav a:hover { color: var(--wb-primary); }

/* Hero */
.wb-hero { padding: 48px 0 24px; }
.wb-hero__title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.wb-hero__sub { color: var(--wb-muted); max-width: 820px; }
.wb-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.wb-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--wb-border); background: var(--wb-surface); color: var(--wb-ink); border-radius: 9999px; padding: 6px 12px; font-weight: 600; box-shadow: var(--wb-card-shadow); }
.wb-badge img { width: 18px; height: 18px; object-fit: contain; }

/* Sections */
.wb-section { padding: 32px 0; }
.wb-section__title { font-family: "Poppins", sans-serif; font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px; text-align: center; }

/* Card grid */
.wb-card-grid { display: flex; }
@media (max-width: 1024px) { .wb-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .wb-card-grid { grid-template-columns: 1fr; } }

.wb-card { background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: 16px; padding: 16px; box-shadow: var(--wb-card-shadow); display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto 1fr auto; gap: 12px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.wb-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(28,31,41,0.12); border-color: #d7daf0; }
.wb-rank { grid-row: 1; grid-column: 1; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: linear-gradient(135deg, var(--wb-primary), var(--wb-accent)); color: #fff; }
.wb-operator { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 12px; }
.wb-operator__logo { width: 140px; height: 44px; object-fit: contain; }
.wb-rating { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--wb-ink); }
.wb-rating small { color: var(--wb-muted); font-weight: 600; }
.wb-divider { grid-column: 1 / -1; height: 1px; background: var(--wb-border); }
.wb-bonus { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; }
.wb-bonus .wb-bonus__highlight { font-size: 22px; font-weight: 800; color: var(--wb-primary); }
.wb-features { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
@media (max-width: 480px) { .wb-features { grid-template-columns: 1fr; } }
.wb-features li { display: flex; align-items: center; gap: 8px; color: var(--wb-ink); font-weight: 600; }
.wb-features img { width: 16px; height: 16px; object-fit: contain; }
.wb-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; gap: 8px; }
.wb-payments { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wb-payments img { width: 100%; height: 22px; object-fit: contain; filter: grayscale(0.1) contrast(1.05); }

/* Buttons */
.wb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 14px; font-weight: 800; color: #fff; background: linear-gradient(90deg, var(--wb-primary), var(--wb-accent)); background-size: 200% 100%; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; transition: background-position .35s ease, transform .2s ease, box-shadow .2s ease; box-shadow: 0 6px 14px rgba(106, 90, 205, 0.25); }
.wb-btn:hover { background-position: 100% 0; transform: translateY(-2px); }
.wb-btn:active { transform: translateY(0); }

/* Feature grid */
.wb-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .wb-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .wb-feature-grid { grid-template-columns: 1fr; } }
.wb-feature { background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: 14px; padding: 16px; box-shadow: var(--wb-card-shadow); }
.wb-feature h3 { font-family: "Poppins", sans-serif; font-size: 18px; margin: 8px 0; }
.wb-feature p { color: var(--wb-muted); }

/* Editorial section */
.wb-editorial { background: #eef2ff; border-top: 1px solid #e0e4fb; border-bottom: 1px solid #e0e4fb; }
.wb-editorial .wb-container { max-width: 900px; }
.wb-editorial h2 { font-family: "Poppins", sans-serif; margin-bottom: 12px; }
.wb-editorial h3 { margin-top: 16px; margin-bottom: 8px; }
.wb-editorial p { color: #2b2f42; }

/* FAQ using <details> */
.wb-faq .wb-container { max-width: 900px; }
.wb-faq details { background: var(--wb-surface); border: 1px solid var(--wb-border); border-radius: 12px; padding: 12px 16px; box-shadow: var(--wb-card-shadow); }
.wb-faq details + details { margin-top: 10px; }
.wb-faq summary { list-style: none; cursor: pointer; font-weight: 800; }
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq p { margin: 8px 0 0; color: var(--wb-muted); }

/* Footer */
.wb-footer { background: #fff; border-top: 1px solid var(--wb-border); margin-top: 24px; }
.wb-footer__top { padding: 24px 0; }
.wb-footer__nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.wb-footer__nav a { color: var(--wb-ink); font-weight: 700; text-decoration: none; }
.wb-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 700px) { .wb-footer__grid { grid-template-columns: 1fr; } }
.wb-footer__help { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px;     border-radius: 20px;
  background: linear-gradient(90deg, var(--wb-primary), var(--wb-accent));height: max-content; width: max-content; padding: 10px;}
  .wb-footer__help img { width: 100px; height: 40px; object-fit: contain; }
  .wb-footer__copy { text-align: center; padding: 16px 0 24px; font-size: 14px; color: var(--wb-muted); border-top: 1px dashed var(--wb-border); }

  /* Cookie banner */
  .cookies-item { position: fixed; inset-inline: 0; bottom: 0; display: none; z-index: 1000; background: #111827; color: #fff; border-top: 2px solid var(--wb-primary); }
  .cookies-item .wb-container { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .cookies-item p { margin: 0; }
  .cookies-item__btns { display: flex; gap: 8px; }
  .cookies-item button { border: 0; border-radius: 10px; padding: 10px 12px; font-weight: 800; cursor: pointer; }
  #accept-cookies { background: #22c55e; color: #0a0d12; }
  #reject-cookies { background: #ef4444; color: #0a0d12; }

  /* Legal pages: keep structure but re-theme with new palette */
  .legal-page { padding: 5rem 0; background-image: url("../img/legal-page.webp"); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; color: var(--wb-ink); position: relative; z-index: 2; }
  .legal-page::before { position: absolute; content: ""; z-index: -1; inset: 0; background-color: rgba(255, 255, 255, 0.75); }
  .legal-page h2, .legal-page h3 { margin-bottom: 0.625rem; font-family: "Poppins", sans-serif; }
  .legal-page p { margin-bottom: 1rem; }
  .legal-page a { color: #3b82f6; }
  .legal-page a:hover { color: #1d4ed8; }
  .legal-page__title { margin-bottom: 1.5rem; font-size: clamp(28px, 4vw, 44px); line-height: 1.35; text-align: center; }
  .legal-page__content { padding: 2rem; border-radius: 1.5rem; background: var(--wb-surface); border: 1px solid var(--wb-border); box-shadow: var(--wb-card-shadow); }
  @media screen and (max-width: 768.98px) { .legal-page__content { padding: 1rem; } 

  .wb-footer__help{
    width: auto!important;
  }

  .wb-nav{
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px!important;
  }
}

/* Backwards compatibility for any old sections that may remain */
.header, .intro, .offers, .notice, .info, .reviews, .safe-play, .footer { /* intentionally left without explicit old styles to reduce visual similarity */ }
