/* תבנית כתבה משותפת לכל עמודי הלוקיישנים */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #17191c;
  --ink-soft: #464a50;
  --ink-faint: #767b82;
  --accent: #1d5fbf;
  --accent-ink: #ffffff;
  --accent-soft: #edf4fd;
  --gold: #5b9bec;
  --sand: #f5f6f7;
  --line: #e6e7e9;
  --rule: #17191c;
  --strip: #1f2a37;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121519;
    --surface: #1a1e23;
    --ink: #f1f2f4;
    --ink-soft: #c3c7cd;
    --ink-faint: #8f959d;
    --accent: #7cb2ff;
    --accent-ink: #17191c;
    --accent-soft: #16243a;
    --gold: #4a86d6;
    --sand: #1d2228;
    --line: #2c323a;
    --rule: #f1f2f4;
    --strip: #0b0f14;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121519;
  --surface: #1a1e23;
  --ink: #f1f2f4;
  --ink-soft: #c3c7cd;
  --ink-faint: #8f959d;
  --accent: #7cb2ff;
  --accent-ink: #17191c;
  --accent-soft: #16243a;
  --gold: #5b9bec;
  --sand: #1d2228;
  --line: #2c323a;
  --rule: #f1f2f4;
  --strip: #0b0f14;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Assistant', 'Arial', sans-serif;
  font-size: 19px;
  line-height: 1.75;
}

a { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 3px solid var(--rule);
  background: var(--surface);
}

.masthead-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.brand strong {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 24px;
}

.brand span {
  font-size: 14px;
  color: var(--ink-soft);
}

.social {
  display: flex;
  gap: 8px;
}

.social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
}

.social a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.social svg { width: 18px; height: 18px; }

/* ---------- Article header ---------- */

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

.crumbs {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 18px;
}

.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 6px;
}

.article h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}

.subtitle {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-weight: 500;
}

.byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  font-size: 15px;
  flex-wrap: wrap;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.byline-text { flex: 1; min-width: 160px; line-height: 1.4; }
.byline-text strong { display: block; }
.byline-text span { color: var(--ink-faint); }

.share { display: flex; gap: 6px; }

.share a, .share button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
}

.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Body ---------- */

.article p { margin: 0 0 20px; }

.article h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.25;
  margin: 48px 0 6px;
  scroll-margin-top: 16px;
}

.article h2 .num {
  color: var(--accent);
  margin-inline-end: 6px;
}

.article h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 700;
  font-size: 23px;
  margin: 32px 0 4px;
}

.place {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.toc {
  background: var(--sand);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 28px 0 8px;
  font-size: 17px;
}

.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-inline-start: 22px; }
.toc li { margin: 2px 0; }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--accent); border-color: var(--accent); }

/* Figures: נשארות בתוך עמודת הטקסט, לא משתלטות */

figure { margin: 26px 0; }

figure img {
  width: 100%;
  border-radius: 4px;
  background: var(--sand);
  object-fit: cover;
}

.fig-wide img { aspect-ratio: 16 / 9; max-height: 400px; }

.fig-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fig-pair img { aspect-ratio: 4 / 3; }

.fig-pair figcaption { grid-column: 1 / -1; }

figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-faint);
  margin-top: 8px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--line);
}

/* "מאחורי הקלעים": מסגרת עיתונאית צנועה */

.aside {
  border-top: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 20px 4px;
  margin: 26px 0;
  font-size: 17px;
  line-height: 1.65;
}

.aside-label {
  display: block;
  font-weight: 800;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 4px;
}

.pullquote {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  margin: 30px 0;
  padding: 4px 22px 4px 0;
  border-inline-start: 4px solid var(--accent);
}

/* כפתור לסרטון באינסטגרם */

.watch {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 8px 0 12px;
  transition: border-color .15s;
}

.watch:hover { border-color: var(--accent); }

.watch-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.watch-icon svg { width: 20px; height: 20px; }

.watch-text { line-height: 1.35; flex: 1; }
.watch-text strong { display: block; font-size: 17px; }
.watch-text span { font-size: 14px; color: var(--ink-faint); }

.watch-arrow { font-size: 22px; color: var(--accent); }

hr.section-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 44px 0 0;
}

/* קריאה לפעולה: עזרו לי למצוא */

.callout {
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 40px 0;
}

.callout h2 { margin-top: 0 !important; color: var(--bg); font-size: 26px !important; }
.callout p { margin-bottom: 14px !important; }
.callout a.btn {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 999px;
}

/* שאלות נפוצות */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

.faq details p { margin: 10px 0 4px !important; font-size: 17px; }

/* על הכותב */

.author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-top: 3px solid var(--rule);
  padding-top: 20px;
  margin-top: 48px;
}

.author-box .avatar { width: 60px; height: 60px; font-size: 24px; }

.author-box h2 { margin: 0 0 2px !important; font-size: 22px !important; }

.author-box .tagline { color: var(--accent); font-weight: 700; margin-bottom: 8px; display: block; }

.author-box p { font-size: 17px; margin-bottom: 12px !important; }

.credits {
  margin-top: 40px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-faint);
}

.credits p { margin: 0 0 8px !important; }

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--ink-faint);
  padding: 24px 16px 40px;
}

/* ---------- Home ---------- */

.home {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 60px;
}

.home-intro h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.home-intro p { color: var(--ink-soft); font-size: 20px; max-width: 640px; margin: 0 0 32px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.card:hover h2 { color: var(--accent); }

.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.card-body { padding: 14px 16px 18px; }

.card .kicker { font-size: 14px; margin-bottom: 2px; }

.card h2 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 23px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .article h2 { font-size: 26px; }
  .pullquote { font-size: 22px; }
  .masthead .social { display: none; }
}

/* ---------- חוצץ בין חלקים: רצועת פילם ---------- */

.article > h2:not(:first-of-type)::before {
  content: "";
  display: block;
  height: 22px;
  margin: 0 0 30px;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, var(--bg) 0 9px, transparent 9px 20px) center / 100% 8px no-repeat,
    var(--strip);
}

.article > h2 { margin-top: 56px; }

.article h2 .num {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 6px;
  margin-inline-end: 10px;
  background: var(--gold);
  color: var(--strip);
  border-radius: 3px;
  text-align: center;
  font-size: 0.8em;
  vertical-align: 0.12em;
}

.kicker {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 3px 10px;
  border-radius: 3px;
}

.card .kicker { background: none; color: var(--accent); padding: 0; }

.masthead { border-bottom: 4px solid var(--accent); }

.aside { border-top-color: var(--gold); }
.aside-label { color: var(--accent); }

.watch-icon { background: linear-gradient(135deg, var(--gold), var(--accent)); color: #fff; }

.pullquote { border-inline-start-color: var(--gold); }

.callout { background: var(--strip); color: #f1f2f4; }
.callout h2 { color: #f1f2f4; }
.callout a.btn { background: var(--gold); color: var(--strip); }

hr.section-rule { display: none; }

/* מפה מוטמעת (עובדת רק באתר עצמו) */

.map {
  margin: 22px 0 10px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  max-height: 340px;
  width: 100%;
  background: var(--sand);
}

.map iframe { width: 100%; height: 100%; border: 0; display: block; }

img.avatar { object-fit: cover; padding: 0; background: var(--sand); }

/* הטמעת ריל מאינסטגרם. לפני הטעינה נראית ככפתור .watch */

blockquote.ig-reel {
  margin: 12px auto 16px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  max-width: 420px;
  width: 100% !important;
  min-width: 0 !important;
}

blockquote.ig-reel .watch { margin: 0; }

iframe.instagram-media {
  margin: 12px auto 16px !important;
  max-width: 420px !important;
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 8px !important;
}

/* תוכן העניינים: מסגרת בולטת */

.toc {
  background: var(--accent-soft);
  border: 2px solid var(--gold);
  border-inline-start: 6px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px 16px;
  margin: 30px 0 12px;
}

.toc strong {
  color: var(--accent);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.toc strong::before { content: "🎬 "; }

.toc ol { padding-inline-start: 24px; }
.toc li { margin: 5px 0; }
.toc li::marker { color: var(--accent); font-weight: 800; }
.toc a { font-weight: 600; border-bottom-color: transparent; }
.toc a:hover { border-bottom-color: var(--accent); }

/* פינת הבונוסים */

.bonus-banner {
  position: relative;
  margin: 56px 0 8px;
  padding: 26px 24px 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), var(--sand));
  border: 2px dashed var(--gold);
  text-align: center;
}

.bonus-banner .bonus-gift {
  display: block;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
}

.article .bonus-banner h2 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--accent);
}

.article > .bonus-banner h2::before { content: none; }

.bonus-banner p { font-size: 17px; color: var(--ink-soft); max-width: 540px; margin-inline: auto !important; }

.thanks {
  margin-top: 28px !important;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-radius: 8px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* קישורים בגוף הטקסט: כחול, כמו באתרי חדשות */
:root { --link: #1558b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --link: #7cb2ff; } }
:root[data-theme="dark"] { --link: #7cb2ff; }

.article p a,
.article figcaption a,
.article .credits a,
.article details a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article p a:hover,
.article figcaption a:hover { text-decoration-thickness: 2px; }

.callout p a { color: inherit; }

/* תמונות השוואה: בנייד אחת מתחת לשנייה */
@media (max-width: 600px) {
  .fig-pair { grid-template-columns: 1fr; gap: 10px; }
  .fig-pair img { aspect-ratio: 4 / 3; }
}

/* הגדלת תמונה בלחיצה */
.article figure img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 15, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox p {
  color: #f1f2f4;
  font-size: 15px;
  line-height: 1.5;
  max-width: 640px;
  text-align: center;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ערכת כחול-לבן: מספרי התחנות בלבן על כחול */
.article h2 .num { color: #ffffff; background: var(--accent); }
.callout a.btn { color: #ffffff; background: var(--accent); }

/* אייקוני רשתות קטנים בשורת הכותב */
.share { align-items: center; }
.share .share-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}
.share .share-icon svg { width: 16px; height: 16px; }

/* "גאגים" מהסרט בכיתובי התמונות */
figcaption .gag {
  display: block;
  font-family: 'Frank Ruhl Libre', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 2px;
}
figcaption .gag[dir="ltr"] { text-align: right; }

/* ובנימה אישית */
.personal {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 20px;
  line-height: 1.75;
  color: var(--ink);
  padding-inline-start: 18px;
  border-inline-start: 3px solid var(--gold);
}
.personal p { margin-bottom: 16px !important; }
.personal .signature {
  font-weight: 900;
  font-size: 22px;
  color: var(--accent);
}
@media (max-width: 560px) { .personal { font-size: 18px; } }

.personal::after { content: ""; display: block; clear: both; }
.personal .personal-photo {
  float: left;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 6px 18px 10px 0;
  border: 3px solid var(--gold);
  cursor: default;
}
@media (max-width: 560px) {
  .personal .personal-photo { width: 84px; height: 84px; margin-inline-end: 0; }
}

.personal-heading { display: block; }
.personal-heading .heading-avatar {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-inline-end: 12px;
  border: 2px solid var(--gold);
  cursor: default;
}

/* אייקוני רשתות בצבעי המותג */
a[aria-label="אינסטגרם"]:not(.watch),
a[aria-label="טיקטוק"]:not(.watch),
a[aria-label="פייסבוק"]:not(.watch) {
  color: #ffffff !important;
  border-color: transparent !important;
  transition: transform .15s, filter .15s;
}
a[aria-label="אינסטגרם"]:not(.watch) {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important;
}
a[aria-label="טיקטוק"]:not(.watch) {
  background: #000000 !important;
  box-shadow: inset -2px 0 0 #25f4ee, inset 2px 0 0 #fe2c55;
}
a[aria-label="פייסבוק"]:not(.watch) { background: #1877f2 !important; }
a[aria-label="אינסטגרם"]:not(.watch):hover,
a[aria-label="טיקטוק"]:not(.watch):hover,
a[aria-label="פייסבוק"]:not(.watch):hover { transform: scale(1.08); filter: brightness(1.08); }

/* תיבת ההזמנה בסוף */
.callout p { font-size: 18px; }
.callout-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #f1f2f4 !important;
  font-weight: 800;
  font-size: 19px;
}
.callout-arrow { font-size: 26px; line-height: 1; color: var(--gold); }
.callout-ig {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  transition: transform .15s;
}
.callout-ig svg { width: 24px; height: 24px; }
.callout-cta:hover .callout-ig { transform: scale(1.08); }
