/* Seznam integrací (homepage/integration.blade.php). Vše je pod .lf-list. */

.lf-list {
  --lf-accent: #cb0c9f;
  --lf-accent-dark: #a30a80;
  --lf-tint: #fbf3fa;
  --lf-ink: #191a20;
  --lf-text: #33333b;
  --lf-text-soft: #45434d;
  --lf-line: #eee9ee;
  --lf-soft: #f6f5f8;
  color: var(--lf-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.lf-list__container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* Atribut hidden musí přebít display z pravidel níže */
.lf-list [hidden] {
  display: none !important;
}

/* Horní část */
.lf-list__hero {
  padding: 140px 0 56px;
  background: var(--lf-tint);
  color: var(--lf-text-soft);
}

.lf-list__hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: center;
}

.lf-list__intro {
  flex: 999 1 520px;
  min-width: 0;
}

.lf-list__eyebrow {
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lf-accent-dark);
}

.lf-list h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lf-ink);
}

/* Barevný konec nadpisu drží pohromadě, na telefonu by se v delších jazycích nevešel */
@media (min-width: 768px) {
  .lf-list h1 em {
    white-space: nowrap;
  }
}

.lf-list h1 em {
  font-style: normal;
  color: var(--lf-accent);
}

.lf-list__lead {
  max-width: 620px;
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--lf-text-soft);
}

.lf-list__search-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--lf-ink);
}

.lf-list__search {
  position: relative;
  max-width: 620px;
}

.lf-list__search i {
  position: absolute;
  top: 21px;
  left: 18px;
  font-size: 18px;
  color: var(--lf-accent-dark);
}

.lf-list__search input {
  width: 100%;
  height: 60px;
  padding: 0 20px 0 50px;
  border: 1px solid #e3d5e0;
  border-radius: 14px;
  background: #fff;
  color: var(--lf-ink);
  font: inherit;
  font-size: 17px;
}

.lf-list__search input::placeholder {
  color: #6a6470;
}

/* Loga platforem pod hledáním, odkaz na seznam */
.lf-list__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin-top: 16px;
  color: var(--lf-accent-dark);
  font-size: 14px;
  font-weight: 600;
}

.lf-list__logos:hover {
  color: var(--lf-accent);
}

.lf-list__logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 52px;
  border: 1px solid #efe3ec;
  border-radius: 10px;
  background: #fff;
}

.lf-list__logos img {
  display: block;
  width: 96px;
  height: 36px;
  object-fit: contain;
}

.lf-list__logos em {
  margin-left: 8px;
  font-style: normal;
  text-decoration: underline;
  white-space: nowrap;
}

/* Časová osa nasazení */
.lf-timeline {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid #efe3ec;
  border-radius: 18px;
  background: #fff;
}

.lf-timeline h2 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--lf-ink);
}

.lf-timeline ol {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.lf-timeline__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.lf-timeline__mark span {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--lf-accent);
  color: #fff;
  font-weight: 700;
}

.lf-timeline__mark::after {
  content: "";
  flex: 1;
  height: 2px;
  background: #efd3e8;
}

.lf-timeline__end .lf-timeline__mark span {
  background: var(--lf-ink);
  font-size: 12px;
}

.lf-timeline__end .lf-timeline__mark::after {
  display: none;
}

.lf-timeline strong {
  display: block;
  font-weight: 600;
  color: var(--lf-ink);
}

.lf-timeline p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--lf-text-soft);
}

.lf-list__anchor {
  scroll-margin-top: 110px;
}

/* Filtr */
.lf-list__filters {
  background: #fff;
  border-bottom: 1px solid var(--lf-line);
}

.lf-list__filters-inner {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  overflow-x: auto;
}

.lf-filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d9d3d9;
  border-radius: 22px;
  background: #fff;
  color: var(--lf-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.lf-filter span {
  font-size: 13px;
  opacity: .75;
}

.lf-filter[aria-pressed="true"] {
  border-color: var(--lf-ink);
  background: var(--lf-ink);
  color: #fff;
}

/* Skupiny */
.lf-list__main {
  padding-top: 48px;
  padding-bottom: 64px;
}

.lf-group {
  margin-bottom: 56px;
  scroll-margin-top: 160px;
}

.lf-group__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.lf-group__head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--lf-ink);
}

.lf-group__head p {
  margin: 0;
  color: var(--lf-text-soft);
}

.lf-group__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
}

.lf-group__grid--cards {
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

/* Velká karta doplňku */
.lf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--lf-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lf-card:hover {
  border-color: var(--lf-accent);
  box-shadow: 0 8px 24px rgba(25, 26, 32, 0.08);
}

.lf-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--lf-ink);
}

.lf-card__time {
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--lf-text-soft);
}

.lf-card__time i {
  margin-right: 4px;
  color: #6a6470;
}

.lf-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.lf-card__actions a {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d9d3d9;
  border-radius: 10px;
  color: var(--lf-ink);
  font-size: 14px;
  font-weight: 600;
}

.lf-card__actions a.lf-card__primary {
  border-color: var(--lf-accent);
  background: var(--lf-accent);
  color: #fff;
}

.lf-card__actions a.lf-card__primary:hover {
  border-color: var(--lf-accent-dark);
  background: var(--lf-accent-dark);
  color: #fff;
}

/* Hlavní odkaz se roztáhne přes celou kartu, druhý odkaz zůstává nad ním klikatelný */
.lf-card__actions a.lf-card__primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.lf-card__actions a:not(.lf-card__primary) {
  position: relative;
  z-index: 1;
}

/* Logo */
.lf-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--lf-soft);
  color: var(--lf-accent-dark);
  font-weight: 700;
}

.lf-tile img {
  object-fit: contain;
  mix-blend-mode: multiply;
}

.lf-tile--large {
  width: 100%;
  height: 96px;
  margin-bottom: 16px;
  border-radius: 14px;
  font-size: 28px;
}

.lf-tile--large img {
  width: 76%;
  height: 60px;
}

.lf-tile--small {
  width: 124px;
  height: 64px;
  font-size: 20px;
}

.lf-tile--small img {
  width: 100px;
  height: 44px;
}

/* Řádek platformy */
.lf-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 12px 18px 12px 12px;
  border: 1px solid var(--lf-line);
  border-radius: 16px;
  color: var(--lf-text);
  transition: border-color .15s;
}

.lf-row:hover {
  border-color: var(--lf-accent);
  color: var(--lf-text);
}

.lf-row--soft {
  border-color: var(--lf-soft);
  background: var(--lf-soft);
}

.lf-row--soft .lf-tile {
  background: #fff;
}

.lf-row--soft .lf-tile img {
  mix-blend-mode: normal;
}

.lf-row__text {
  flex: 1;
  min-width: 0;
}

.lf-row__text strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--lf-ink);
}

.lf-row__text span {
  display: block;
  font-size: 14px;
  color: var(--lf-text-soft);
}

.lf-row > i {
  color: var(--lf-accent);
}

/* Prázdný výsledek a závěr */
.lf-list__empty {
  padding: 32px 16px 56px;
  text-align: center;
}

.lf-list__empty h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  color: var(--lf-ink);
}

.lf-list__empty p {
  margin: 0 0 18px;
  color: var(--lf-text);
}

.lf-list__btn,
.lf-list__btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--lf-accent);
  color: #fff;
  font-weight: 600;
}

.lf-list__btn:hover {
  background: var(--lf-accent-dark);
}

.lf-list__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-radius: 20px;
  background: var(--lf-tint);
}

.lf-list__cta > div {
  flex: 1 1 380px;
}

.lf-list__cta h2 {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--lf-ink);
}

.lf-list__cta p {
  margin: 0;
  color: var(--lf-text);
}

@media (max-width: 991.98px) {
  .lf-list__hero {
    padding-top: 120px;
  }
}

@media (max-width: 575.98px) {
  .lf-list__hero {
    padding-bottom: 32px;
  }

  .lf-group__head h2 {
    font-size: 23px;
  }

  .lf-list__cta {
    padding: 20px;
  }
}
