/* mod_efekt-DataFetcher 3.0 – dane z serwisów XML (np. jambox.pl)
   Kolory dziedziczą zmienne z user.css (--efekt-*), z wartościami zapasowymi. */

.mod-edf {
  --jb-navy:   var(--efekt-navy, #172c54);
  --jb-blue:   var(--efekt-blue, #2a5098);
  --jb-accent: var(--efekt-orange, #ff9233);
  --jb-radius: var(--efekt-radius, 12px);
  --jb-shadow: 0 4px 14px rgba(23, 44, 84, .08);
  --jb-shadow-hover: 0 12px 26px rgba(23, 44, 84, .16);
}

.mod-edf, .mod-edf *, .mod-edf *::before, .mod-edf *::after { box-sizing: border-box; }

/* ---------- siatka ---------- */
.mod-edf__grid {
  display: grid;
  grid-template-columns: repeat(var(--edf-cols, 3), minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 991.98px) { .mod-edf__grid { grid-template-columns: repeat(min(2, var(--edf-cols, 3)), minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mod-edf__grid { grid-template-columns: 1fr; } }
.mod-edf__item { margin: 0; min-width: 0; }
.mod-edf [hidden] { display: none !important; }

/* ---------- karta ---------- */
.mod-edf__card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--jb-radius); overflow: hidden;
  box-shadow: var(--jb-shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.mod-edf__card:hover { transform: translateY(-3px); box-shadow: var(--jb-shadow-hover); }
.mod-edf__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.mod-edf__title { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--jb-navy); }
.mod-edf__title a { color: var(--jb-navy); text-decoration: none; }
.mod-edf__title a:hover { color: var(--jb-accent); }
.mod-edf__date { margin: 0; color: var(--jb-accent); font-size: .85rem; font-weight: 600; }
.mod-edf__text { margin: 0; color: #4a5568; font-size: .92rem; line-height: 1.5; }
.mod-edf__html { color: #4a5568; font-size: .92rem; line-height: 1.55; }
.mod-edf__html img { max-width: 100%; height: auto; border-radius: 8px; }
.mod-edf__html p { margin: 0 0 .5rem; }
.mod-edf__more { margin-top: auto; font-weight: 600; color: var(--jb-blue); text-decoration: none; }
.mod-edf__more:hover { color: var(--jb-accent); }

.mod-edf__thumb { position: relative; display: block; background: #0b1528; }
.mod-edf__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mod-edf__thumb--wide { aspect-ratio: 683 / 350; }
.mod-edf__thumb--photo { aspect-ratio: 4 / 3; background: #f3f6fb; }
.mod-edf__thumb--photo img { object-fit: contain; padding: .75rem; }
.mod-edf__thumb--icon { background: #f3f6fb; padding: 1.25rem; display: flex; justify-content: center; }
.mod-edf__thumb--icon img { width: auto; max-height: 110px; object-fit: contain; }

.mod-edf__chip {
  position: absolute; left: .6rem; bottom: .6rem; padding: .2rem .55rem; border-radius: 999px;
  background: rgba(11, 21, 40, .85); color: #fff; font-size: .75rem; font-weight: 600;
}

/* ---------- promocje ---------- */
.mod-edf__promo {
  display: block; border-radius: var(--jb-radius); overflow: hidden; background: #0b1528;
  box-shadow: 0 4px 14px rgba(23, 44, 84, .12); transition: transform .2s ease, box-shadow .2s ease; text-decoration: none;
}
.mod-edf__promo:hover, .mod-edf__promo:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(23, 44, 84, .22); }
.mod-edf__promo img { display: block; width: 100%; height: auto; }
.mod-edf__promo-title { display: block; padding: .6rem .8rem; color: #fff; font-weight: 600; font-size: .95rem; }

/* ---------- aktualności ---------- */
.mod-edf__news { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.mod-edf__news-item {
  background: #fff; border-radius: var(--jb-radius); box-shadow: var(--jb-shadow);
  padding: 1rem 1.15rem; border-left: 4px solid var(--jb-accent);
}
.mod-edf__news-item .mod-edf__title { margin: .15rem 0 .35rem; }

/* ---------- możliwości (galeria zrzutów) ---------- */
.mod-edf__slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; background: #0b1528; aspect-ratio: 16 / 9; }
.mod-edf__slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.mod-edf__slides:focus-visible { outline: 3px solid var(--jb-accent); outline-offset: -3px; }
.mod-edf__slides-hint { margin: -.1rem 0 0; padding: .25rem .9rem; font-size: .75rem; color: #8a93a6; text-align: right; }
.mod-edf__feature-head { display: flex; gap: .75rem; align-items: center; }
.mod-edf__icon { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: 0 0 56px; }

/* ---------- JAMBOX mobile (cennik) ---------- */
.mod-edf__plan {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: .5rem;
  background: #fff; border-radius: var(--jb-radius); box-shadow: var(--jb-shadow);
  padding: 1.4rem 1.25rem 1.25rem; border-top: 4px solid var(--jb-blue);
}
.mod-edf__plan.is-highlight { border-top-color: var(--jb-accent); box-shadow: 0 14px 30px rgba(255, 146, 51, .25); transform: translateY(-4px); }
.mod-edf__ribbon {
  position: absolute; top: -12px; right: 1rem; background: var(--jb-accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
}
.mod-edf__plan-type { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: #6b7385; }
.mod-edf__plan-name { margin: 0; font-size: 1.35rem; color: var(--jb-navy); }
.mod-edf__price { margin: .1rem 0 .3rem; color: var(--jb-navy); }
.mod-edf__price-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.mod-edf__price-unit { font-size: .9rem; color: #6b7385; margin-left: .25rem; }
.mod-edf__features { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mod-edf__features li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-bottom: 1px dashed #e2e7f0; font-size: .92rem; }
.mod-edf__features li span { color: #6b7385; }
.mod-edf__features li strong { color: var(--jb-navy); text-align: right; }
.mod-edf__features li.is-off strong { color: #a0a8b8; font-weight: 500; }
.mod-edf__btn {
  margin-top: auto; display: block; text-align: center; padding: .65rem 1rem; border-radius: 999px;
  background: var(--jb-accent); color: #fff; font-weight: 700; text-decoration: none;
}
.mod-edf__btn:hover { background: #e97c1c; color: #fff; }

/* ---------- JAMBOX w liczbach ---------- */
.mod-edf__stat {
  height: 100%; text-align: center; background: linear-gradient(160deg, var(--jb-navy), var(--jb-blue));
  color: #fff; border-radius: var(--jb-radius); padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .15rem;
}
.mod-edf__stat-value { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.mod-edf__stat-unit { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.mod-edf__stat-label { margin-top: .4rem; font-weight: 700; color: var(--jb-accent); }
.mod-edf__stat-sub { font-size: .85rem; opacity: .85; }

/* ---------- tabele (słowniki, kanały) ---------- */
.mod-edf__table-wrap { overflow-x: auto; border-radius: var(--jb-radius); box-shadow: var(--jb-shadow); }
.mod-edf__table { width: 100%; border-collapse: collapse; background: #fff; font-size: .92rem; }
.mod-edf__dict { border-radius: var(--jb-radius); overflow: hidden; box-shadow: var(--jb-shadow); }
.mod-edf__table th { background: var(--jb-navy); color: #fff; text-align: left; padding: .6rem .8rem; font-weight: 600; }
.mod-edf__table td { padding: .5rem .8rem; border-bottom: 1px solid #edf1f7; vertical-align: middle; }
.mod-edf__table tbody tr:nth-child(even) td { background: #f7f9fc; }
.mod-edf__table .is-num { text-align: right; width: 1%; white-space: nowrap; }
.mod-edf__ch-cell { display: flex; align-items: center; gap: .6rem; }
.mod-edf__ch-cell img { width: 60px; height: 40px; object-fit: contain; }

/* ---------- kanały ---------- */
.mod-edf__toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.mod-edf__search { flex: 1 1 260px; max-width: 420px; border-radius: 999px; padding-left: 1rem; }
.mod-edf__counter { color: #6b7385; font-size: .9rem; }
.mod-edf__logos {
  list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
}
.mod-edf__logo-tile {
  position: relative; background: #fff; border-radius: 10px; box-shadow: var(--jb-shadow);
  padding: .7rem .5rem .55rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.mod-edf__logo-tile img { width: 80px; height: 53px; object-fit: contain; }
.mod-edf__logo-name { font-size: .75rem; line-height: 1.2; color: var(--jb-navy); font-weight: 600; }
.mod-edf__nr {
  position: absolute; top: .35rem; left: .4rem; font-size: .68rem; font-weight: 700;
  color: #fff; background: var(--jb-blue); border-radius: 6px; padding: .05rem .35rem;
}
.mod-edf__dot { position: absolute; top: .45rem; right: .45rem; width: 9px; height: 9px; border-radius: 50%; background: #22a06b; }
.mod-edf__channel { padding: .9rem 1rem 1.1rem; gap: .5rem; }
.mod-edf__channel-head { display: flex; gap: .8rem; align-items: center; }
.mod-edf__ch-logo { width: 80px; height: 53px; object-fit: contain; flex: 0 0 80px; background: #f3f6fb; border-radius: 8px; padding: .25rem; }
.mod-edf__badges { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.mod-edf__badge {
  display: inline-block; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px;
  background: #eef2f8; color: var(--jb-navy); vertical-align: middle;
}
.mod-edf__badge.is-hd { background: var(--jb-navy); color: #fff; }
.mod-edf__badge.is-ok { background: #def5ea; color: #157a50; }
.mod-edf__badge.is-muted { background: #f1f2f5; color: #7a8294; }
.mod-edf__params { margin: 0; font-size: .8rem; color: #6b7385; }
.mod-edf__pkgs { margin: 0; font-size: .8rem; color: #6b7385; }
.mod-edf__empty { padding: 1rem; text-align: center; color: #6b7385; }

.mod-edf__source { margin: .75rem 0 0; font-size: .75rem; color: #8a93a6; text-align: right; }
.mod-edf__source a { color: inherit; }
