/* ── המשך קריאה + אתגר כתבה ביום ─────────────────────────────
   נטען בכל עמוד כתבה. משתמש בטוקנים של styles.css בלבד. */

/* ---------- רצועה דקה בראש הכתבה ---------- */
.lk-next-top {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 0 20px;
}
.lk-next-top-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-tint, #EDF7FB);
  border: 1px solid var(--hairline, rgba(10, 22, 40, .08));
  border-radius: 14px;
}
.lk-next-top-label {
  flex: 0 0 auto;
  font-family: var(--font-display, sans-serif);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy, #0A1628);
  opacity: .75;
  white-space: nowrap;
}
.lk-chip-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.lk-chip-rail::-webkit-scrollbar { display: none; }
.lk-chip {
  flex: 0 0 auto;
  max-width: 260px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface, #fff);
  border: 1px solid var(--hairline, rgba(10, 22, 40, .08));
  color: var(--ink, #0A1628);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.lk-chip:hover {
  border-color: var(--teal, #2EA4A0);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 22, 40, .08);
}

/* ---------- גלריה נגללת בסוף הכתבה ---------- */
.lk-next {
  max-width: 1120px;
  margin: 48px auto 0;
  padding: 0 20px;
}
.lk-next-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.lk-next-head h3 {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--navy, #0A1628);
  margin: 0;
}
.lk-next-head a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--teal, #2EA4A0);
  text-decoration: none;
  white-space: nowrap;
}
.lk-next-head a:hover { text-decoration: underline; }

.lk-rail-wrap { position: relative; }
.lk-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
}
.lk-rail::-webkit-scrollbar { display: none; }

.lk-rail-card {
  flex: 0 0 clamp(220px, 74vw, 268px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--surface, #fff);
  border: 1px solid var(--hairline, rgba(10, 22, 40, .08));
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lk-rail-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-accent, var(--teal, #2EA4A0));
  box-shadow: 0 16px 34px -12px rgba(10, 22, 40, .22);
}
.lk-rail-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--bg-tint, #EDF7FB);
}
.lk-rail-body { padding: 13px 15px 16px; }
.lk-rail-cat {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--card-accent, var(--teal, #2EA4A0));
  margin-bottom: 6px;
}
.lk-rail-title {
  font-family: var(--font-display, sans-serif);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy, #0A1628);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* חיצי גלילה — מוסתרים במגע, שם השליטה במקלדת/עכבר */
.lk-rail-btn {
  position: absolute;
  top: 38%;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline, rgba(10, 22, 40, .08));
  background: rgba(255, 255, 255, .96);
  color: var(--navy, #0A1628);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(10, 22, 40, .14);
  z-index: 2;
}
.lk-rail-btn:hover { border-color: var(--teal, #2EA4A0); }
.lk-rail-btn[hidden] { display: none !important; }
.lk-rail-prev { right: -6px; }
.lk-rail-next { left: -6px; }
@media (hover: hover) and (min-width: 900px) {
  .lk-rail-btn { display: flex; }
}

/* ---------- אתגר: כתבה אחת ביום ---------- */
.lk-challenge {
  max-width: 1120px;
  margin: 44px auto 0;
  padding: 0 20px;
}
.lk-challenge-inner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(26px, 5vw, 40px);
  background: linear-gradient(135deg, #0A1628 0%, #123047 58%, #14514E 100%);
  color: #fff;
  text-align: center;
}
.lk-challenge-inner::after {
  content: "";
  position: absolute;
  inset: auto -18% -60% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(46, 164, 160, .38), transparent 68%);
  pointer-events: none;
}
.lk-challenge-kicker {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(212, 165, 55, .18);
  border: 1px solid rgba(212, 165, 55, .45);
  color: #F0C868;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 14px;
}
.lk-challenge h3 {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(1.4rem, 4.4vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
}
.lk-challenge p {
  max-width: 46ch;
  margin: 0 auto 22px;
  font-size: clamp(.95rem, 2.4vw, 1.05rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}
.lk-challenge-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #25D366;
  color: #06251A;
  font-family: var(--font-display, sans-serif);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 32px -10px rgba(37, 211, 102, .6);
  transition: transform .18s, box-shadow .18s;
}
.lk-challenge-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(37, 211, 102, .72);
}
.lk-challenge-cta svg { width: 20px; height: 20px; fill: currentColor; }
.lk-challenge-note {
  margin: 14px 0 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
}

@media (max-width: 700px) {
  .lk-next-top-inner { flex-direction: column; align-items: stretch; gap: 9px; }
  .lk-next-top-label { white-space: normal; }
}

/* posts.css קובע צבע כהה לכל h3/p בתוך הכתבה, ולכן צריך לרשום
   במפורש את הצבעים על רקע כהה, אחרת הכותרת נבלעת ברקע. */
.lk-challenge .lk-challenge-inner h3,
.lk-challenge .lk-challenge-inner .lk-challenge-kicker { color: #fff; }
.lk-challenge .lk-challenge-inner h3 { color: #fff !important; }
.lk-challenge .lk-challenge-inner .lk-challenge-kicker { color: #F0C868 !important; }
.lk-challenge .lk-challenge-inner p { color: rgba(255,255,255,.82) !important; }
.lk-challenge .lk-challenge-inner .lk-challenge-note { color: rgba(255,255,255,.55) !important; }
.lk-challenge .lk-challenge-inner .lk-challenge-cta { color: #06251A !important; }
.lk-challenge-inner > * { position: relative; z-index: 1; }

/* ---------- באנר הטיפ היומי ---------- */
.lk-tip {
  background: linear-gradient(100deg, #0A1628 0%, #123047 60%, #14514E 100%);
  color: #fff;
  border-bottom: 1px solid rgba(212, 165, 55, .35);
}
.lk-tip-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lk-tip-icon { font-size: 1.05rem; line-height: 1; flex: 0 0 auto; }
.lk-tip-text {
  flex: 1 1 auto;
  margin: 0;
  font-size: .88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9) !important;
}
.lk-tip-text strong { color: #F0C868; font-weight: 800; }
.lk-tip-cta {
  flex: 0 0 auto;
  padding: 7px 16px;
  border-radius: 999px;
  background: #F0C868;
  color: #0A1628 !important;
  font-family: var(--font-display, sans-serif);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s;
}
.lk-tip-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(240, 200, 104, .6);
}
.lk-tip-close {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.lk-tip-close:hover { color: #fff; background: rgba(255, 255, 255, .1); }

@media (max-width: 720px) {
  .lk-tip-inner { flex-wrap: wrap; gap: 8px 10px; padding: 9px 16px; }
  .lk-tip-text { flex: 1 1 100%; order: 2; font-size: .82rem; }
  .lk-tip-cta { order: 3; width: 100%; text-align: center; }
  .lk-tip-close { order: 1; margin-inline-start: auto; }
  .lk-tip-icon { order: 0; }
}
