/*
  LuckyJack UK — Global Styles
  - New color system, typography (Manrope/Rubik), components, animations
  - Supports new class names while keeping minimal compatibility for legacy ones
*/

:root {
  /* Palette */
  --bg: #0b1020;             /* base background */
  --surface: #0f1a2f;        /* card background */
  --surface-2: #121f36;      /* elevated surface */
  --text: #e6f1ff;           /* primary text */
  --muted: #9fb3c8;          /* secondary text */
  --primary: #7c3aed;        /* violet */
  --primary-2: #06b6d4;      /* cyan */
  --accent: #f59e0b;         /* amber */
  --success: #22c55e;        /* green */
  --danger: #ef4444;         /* red */
  --border: rgba(161, 181, 210, 0.18);
  --ring: rgba(6, 182, 212, 0.45);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 16px;
  --r-pill: 9999px;

  /* Sizing */
  --container: 1280px;

  /* Typography */
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  --font-heading: "Rubik", var(--font-body);
}

/* Base reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
ul, ol { padding-left: 0; }
ul, ol, li { list-style: none; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
button { font: inherit; }

/* Typography */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(124,58,237,0.18), transparent 60%),
              radial-gradient(900px 700px at 110% 10%, rgba(6,182,212,0.18), transparent 60%),
              var(--bg);
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; }
.display { font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem); font-weight: 800; }
.section__title { font-size: clamp(1.5rem, 1.25vw + 1rem, 2rem); margin: 0 auto 2rem; text-align: center; }

/* Accessibility helpers */
.skip-link {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: .5rem .75rem; background: var(--primary-2); color: #001018; border-radius: var(--r-1); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

/* Layout helpers */
.container { max-width: var(--container); width: 100%; padding: 0 20px; margin: 0 auto; }
.wrapper {  }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(8px); background: rgba(5, 10, 25, 0.65); border-bottom: 1px solid var(--border); }
.header { background: transparent; }
.site-header__brand, .header__logo { display: inline-block; max-width: 56px; margin: 10px auto; }
.brand__img, .logo__img { width: 100%; height: auto; object-fit: contain; }

.page-main{
   background-image: url(../img/wrapper.webp);
      background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    position: relative;
    z-index: 2;
}
.page-main:after{
    content: "";
    position: absolute;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgb(0, 0, 0));
    inset: 0;
    z-index: -1;
}

/* Hero */
.hero { padding: 2.25rem 0 1.25rem; }
.hero__subtitle { text-align: center; color: var(--muted); max-width: 820px; margin: .75rem auto 0; }
.hero__badges { display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0 auto 1rem; flex-wrap: wrap; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .7rem; border-radius: var(--r-pill); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)); }

/* Catalog (Offer Cards) */
.catalog__list { display: flex; flex-direction: column; gap: 1rem; }
.catalog__card {
  display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: var(--r-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)) , var(--surface);
  border: 1px solid var(--border);
  position: relative; isolation: isolate; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.catalog__card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(130deg, rgba(124,58,237,0.6), rgba(6,182,212,0.6)); opacity: .18;
}
.catalog__card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(6,182,212,0.15); }

.catalog__col--rank { display: flex; align-items: center; justify-content: center; min-width: 44px; }
.catalog__rank { width: 36px; height: 36px; border-radius: var(--r-pill); display: grid; place-items: center; color: #cbd5e1; background: rgba(148,163,184,0.12); font-weight: 700; }

.catalog__col--brand { flex: 0 0 260px; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .5rem; border-radius: var(--r-1); background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.catalog__logo { width: 100%; }
.catalog__divider { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(148,163,184,.25), transparent); }

.catalog__col--bonus { flex: 0 0 220px; display: grid; place-items: center; text-align: center; gap: .25rem; padding: .5rem; }
.catalog__col--bonus span:nth-child(2) { font-size: clamp(1.25rem, .9vw + 1rem, 1.75rem); font-weight: 700; color: #f1f5f9; }

.catalog__col--features { flex: 1; padding: 0 1rem; position: relative; }
.catalog__col--features ul { display: grid; gap: .35rem; }
.catalog__col--features li { display: flex; align-items: center; gap: .5rem; color: var(--text); }
.catalog__col--features img { width: 16px; height: 16px; object-fit: contain; filter: hue-rotate(35deg) saturate(1.4); }
.catalog__col--features::before,
.catalog__col--features::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 1px; height: 120px; background: linear-gradient(180deg, transparent, rgba(148,163,184,.35), transparent); }
.catalog__col--features::before { left: -4px; }
.catalog__col--features::after { right: -4px; }

.catalog__col--cta { flex: 0 0 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 0 .75rem; }
.catalog__payments { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; opacity: .95; }
.catalog__payments img { width: 86px; height: 28px; object-fit: contain; filter: grayscale(10%); }

/* Button */
.btn, .cta-button {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px 16px;
  font-weight: 800; letter-spacing: .25px; color: #03131a; border: 0; border-radius: var(--r-2);
  background: linear-gradient(90deg, var(--primary-2), var(--primary)); background-size: 200% 100%;
  transition: background-position .35s ease, transform .15s ease, box-shadow .25s ease;
}
.btn:hover, .cta-button:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124,58,237,.28); }
.btn:active, .cta-button:active { transform: translateY(0); box-shadow: inset 0 1px 6px rgba(0,0,0,.35); }

/* Ratings */
.rating, .score { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.rating__inner, .score__row { display: inline-flex; align-items: center; gap: .5rem; }
.rating__img, .score__stars { width: 72px; height: 12px; object-fit: cover; }
.rating__reviews, .score__reviews { color: #92a8c1; font-size: .85rem; font-weight: 600; }
.rating__text, .score__text { font-weight: 700; }

/* How it works */
.how-it-works { padding: 2.75rem 0; }
.how__steps { max-width: 900px; margin: 0 auto; display: grid; gap: .6rem; counter-reset: step; }
.how__step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2); padding: .875rem 1rem .875rem 2.75rem; position: relative; }
.how__step::before { counter-increment: step; content: counter(step); position: absolute; left: .9rem; top: .7rem; width: 28px; height: 28px; border-radius: var(--r-pill); display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, rgba(124,58,237,.45), rgba(6,182,212,.45)); color: #001018; }

/* Methodology / Notice (content) */
.methodology, .notice { padding: 2.5rem 0; }
.notice__title { margin: 1rem 0 .5rem; font-weight: 700; }
.notice__text { color: var(--muted); margin-bottom: .75rem; }

/* Providers */
.providers { padding: 2.5rem 0; }
.providers__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.providers__item { text-align: center; padding: .6rem; border-radius: var(--r-pill); border: 1px dashed var(--border); color: #cbd5e1; background: rgba(13, 23, 45, 0.55); }
@media (max-width: 900px) { .providers__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .providers__grid { grid-template-columns: repeat(2, 1fr); } }

/* FAQ / Info accordion */
.info { padding: 2.75rem 0; }
.info__inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.info__item { border: 1px solid var(--border); border-radius: var(--r-2); overflow: hidden; background: var(--surface-2); }
.info__question { width: 100%; text-align: left; padding: 1rem 2.5rem 1rem 1rem; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); color: var(--text); border: 0; cursor: pointer; position: relative; font-weight: 700; }
.info__question::after { content: "+"; position: absolute; right: 1rem; top: .9rem; transition: transform .25s ease; }
.info__item.active .info__question::after { transform: rotate(45deg); }
.info__answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.info__answer p { margin: 0; padding: 1rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background:
  radial-gradient(900px 500px at -5% 0%, rgba(124,58,237,0.12), transparent 60%),
  radial-gradient(900px 500px at 105% -10%, rgba(6,182,212,0.12), transparent 60%),
  linear-gradient(180deg, #0a0f1e, #0b1426 40%, #0b1426);
  padding: 2.25rem 0; color: var(--text);
}
.footer__list { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 1.25rem; }
.footer__link { color: #dce8f6; }
.footer__link:hover { color: var(--primary-2); }
.footer__description { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.footer__text { color: var(--muted); }
.footer__help { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.footer__help-link { max-width: 180px; width: 100%; padding: .5rem; }
.footer__copy { text-align: center; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); color: #c1d3e9; }
@media (max-width: 900px) { .footer__description { grid-template-columns: 1fr; } }

/* Cookie banner */
.cookies-item, .cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: none; align-items: center; justify-content: space-between; gap: .75rem;
  padding: 1rem; background: var(--surface-2); border-top: 1px solid var(--border); color: var(--text);
}
.cookies-item p, .cookie-banner p { margin: 0; }
.cookies-item__btns { display: flex; gap: .6rem; }
#accept-cookies, .cookie-banner__btn-accept { background: linear-gradient(90deg, var(--success), #34d399); color: #012217; border: 0; border-radius: var(--r-1); padding: .5rem .8rem; font-weight: 800; }
#reject-cookies, .cookie-banner__btn-reject { background: linear-gradient(90deg, var(--danger), #f87171); color: #190104; border: 0; border-radius: var(--r-1); padding: .5rem .8rem; font-weight: 800; }
#accept-cookies:hover, .cookie-banner__btn-accept:hover, #reject-cookies:hover, .cookie-banner__btn-reject:hover { filter: brightness(1.05) saturate(1.15); }

/* Legal pages (compat for existing pages) */
.legal-page { padding: 3rem 0; color: var(--text);
  background: radial-gradient(1000px 600px at 10% 0%, rgba(124,58,237,0.12), transparent 60%),
              radial-gradient(900px 600px at 100% 0%, rgba(6,182,212,0.12), transparent 60%),
              var(--bg);
}
.legal-page__title { font-size: clamp(1.75rem, 1.2vw + 1rem, 2.5rem); text-align: center; margin-bottom: 1rem; }
.legal-page__content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-3); padding: 1.25rem; }
.legal-page__content a { color: var(--primary-2); }
.legal-page__content a:hover { color: var(--primary); }

/* Legacy class compatibility (minimal) */
.header { height: 70px; }
.intro { color: var(--text); }
.offers { padding: 1.25rem 0; }
.offers__list { display: flex; flex-direction: column; gap: 1rem; }
.offers__list-item { background: transparent; border: 0; }
.rating__reviews { color: #92a8c1; }

/* Responsive rules to ensure at least 1 full card visible on mobile */
@media (max-width: 1024px) {
  .catalog__col--brand { flex-basis: 220px; }
  .catalog__col--bonus { flex-basis: 180px; }
  .catalog__col--cta { flex-basis: 240px; }
}
@media (max-width: 860px) {
  .catalog__card { flex-wrap: wrap; }
  .catalog__col--brand { flex: 1 1 100%; }
  .catalog__col--bonus { flex: 1 1 42%; }
  .catalog__col--features { flex: 1 1 58%; }
  .catalog__col--features::before { top: 0; transform: none; height: 100%; }
  .catalog__col--features::after { display: none; }
  .catalog__col--cta { flex: 1 1 100%; padding-top: .75rem; }
}
@media (max-width: 520px) {
  .catalog__col--bonus { flex: 1 1 100%; }
  .catalog__col--features { flex: 1 1 100%; padding: .5rem 0; }
}
