/**
 * algo4r-banner.css — baner programu Premium "Trend Nawigator".
 * Shortcode: [algo4r_premium_banner]
 *
 * Wszystko scope'owane pod .a4rb (w tym CSS variables) — NIE dotyka :root,
 * żeby nie kolidować z motywem Goldco2026 ani innymi shortcode'ami algo4r.
 * Klasy prefiksowane a4rb__ z tego samego powodu.
 */

.a4rb {
  /* paleta scoped do banera */
  --a4rb-krem: #FAF8F3;
  --a4rb-krem2: #F5F2EA;
  --a4rb-grafit: #1A1918;
  --a4rb-txt2: #6B6560;
  --a4rb-txt3: #A09A93;
  --a4rb-zloto: #B8902E;
  --a4rb-szampan: #C4A882;
  --a4rb-zloto-soft: #E8DCC0;
  --a4rb-zloto-text: #8A6A16;
  --a4rb-zloto-strong: #9C7A1C;
  --a4rb-cta: #1a5c2a;
  --a4rb-cta-hover: #2d9e4f;
  --a4rb-border: rgba(160, 140, 120, 0.18);
  --a4rb-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --a4rb-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --a4rb-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--a4rb-krem);
  border: 1px solid var(--a4rb-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(120, 100, 80, .12), 0 4px 12px rgba(120, 100, 80, .06);
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  font-family: var(--a4rb-sans);
  color: var(--a4rb-grafit);
  transition: box-shadow .4s var(--a4rb-spring), transform .4s var(--a4rb-spring);
}
.a4rb *, .a4rb *::before, .a4rb *::after { box-sizing: border-box; }
.a4rb:hover { box-shadow: 0 20px 52px rgba(120, 100, 80, .18), 0 6px 16px rgba(120, 100, 80, .08); transform: translateY(-2px); }

/* stretched-link: cała karta klikalna */
.a4rb__link { position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.a4rb__link:focus-visible { outline: 2px solid var(--a4rb-cta); outline-offset: 3px; }
.a4rb:hover .a4rb__cta { background: var(--a4rb-cta-hover); box-shadow: 0 6px 18px rgba(26, 92, 42, .28); }
/* regulamin musi pozostać osobno klikalny — ponad nakładką, widoczny jako link */
.a4rb__discl a { position: relative; z-index: 2; color: var(--a4rb-zloto-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .2s var(--a4rb-spring); }
.a4rb__discl a:hover, .a4rb__discl a:focus-visible { color: var(--a4rb-cta); text-decoration-thickness: 2px; }

/* LEWA kolumna */
.a4rb__left { padding: 24px 22px 18px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--a4rb-border); }
.a4rb__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--a4rb-zloto-text); }
.a4rb__eyebrow::before { content: ""; width: 14px; height: 1.5px; background: var(--a4rb-zloto); }
.a4rb__h { margin: 0; font-family: var(--a4rb-serif); font-weight: 600; font-size: 30px; line-height: 1.05; letter-spacing: -.01em; color: var(--a4rb-grafit); }
.a4rb__h-sub { display: block; font-size: 20px; line-height: 1.15; margin-top: 3px; font-weight: 600; }
.a4rb__h em { font-style: normal; color: var(--a4rb-zloto-strong); }
.a4rb__cond { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--a4rb-txt2); }
.a4rb__cond b { color: var(--a4rb-grafit); font-weight: 600; }

/* wizualna wskazówka klikalności (nie osobny link — klik obsługuje nakładka) */
.a4rb__cta { margin-top: 2px; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; background: var(--a4rb-cta); color: #fff; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 999px; pointer-events: none; transition: background .3s var(--a4rb-spring), box-shadow .3s var(--a4rb-spring); }
.a4rb__cta svg { width: 15px; height: 15px; transition: transform .3s var(--a4rb-spring); }
.a4rb:hover .a4rb__cta svg { transform: translateX(3px); }
.a4rb__discl { font-size: 8.5px; line-height: 1.5; color: var(--a4rb-txt2); margin-top: auto; }

/* PRAWA kolumna */
.a4rb__right { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 11px; background: linear-gradient(160deg, #fff, var(--a4rb-krem2)); }
.a4rb__head { display: flex; align-items: center; justify-content: space-between; }
.a4rb__name { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--a4rb-grafit); }
.a4rb__live { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a4rb-zloto-text); background: var(--a4rb-zloto-soft); padding: 3px 7px; border-radius: 999px; }
.a4rb__live svg { width: 9px; height: 9px; }

/* mini-kafelki korzyści (2x2) */
.a4rb__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.a4rb__tile { background: #fff; border: 1px solid var(--a4rb-border); border-radius: 11px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; }
.a4rb__tile-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--a4rb-zloto-soft); display: flex; align-items: center; justify-content: center; color: var(--a4rb-zloto-text); }
.a4rb__tile-ic svg { width: 15px; height: 15px; }
.a4rb__tile-t { font-size: 11.5px; font-weight: 700; color: var(--a4rb-grafit); line-height: 1.18; }

/* realny wykres (statyczna migawka) + teaser premium */
.a4rb__chart { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--a4rb-border); background: #eef1ec; flex: 1; min-height: 148px; }
.a4rb__chart img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.a4rb__phase { position: absolute; left: 10px; top: 9px; z-index: 2; max-width: calc(100% - 16px); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; line-height: 1.2; color: var(--a4rb-grafit); background: rgba(255, 255, 255, .92); padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.a4rb__phase svg { width: 11px; height: 11px; flex: none; color: var(--a4rb-zloto-text); }
.a4rb__fog { position: absolute; inset: 0 0 0 64%; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); background: linear-gradient(90deg, rgba(247, 249, 245, 0) 0%, rgba(247, 249, 245, .5) 40%, rgba(247, 249, 245, .74) 100%); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; }
.a4rb__lock { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; color: var(--a4rb-grafit); background: rgba(255, 255, 255, .92); padding: 6px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0, 0, 0, .12); }
.a4rb__lock svg { width: 11px; height: 11px; color: var(--a4rb-zloto-text); }
.a4rb__tag { position: absolute; left: 10px; bottom: 9px; font-size: 8.5px; font-weight: 600; letter-spacing: .04em; color: var(--a4rb-grafit); background: rgba(255, 255, 255, .85); padding: 3px 7px; border-radius: 6px; }
.a4rb__foot { font-size: 9.5px; color: var(--a4rb-txt2); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .a4rb, .a4rb * { transition: none !important; animation: none !important; }
  .a4rb:hover { transform: none !important; }
}

@media (max-width: 620px) {
  .a4rb { grid-template-columns: 1fr; }
  .a4rb__left { border-right: none; border-bottom: 1px solid var(--a4rb-border); }
  .a4rb__chart { min-height: 160px; }
}
