/* ═══════════════════════════════════════════════════════
   Greatly Social v3.1 — features.css
   מבנה דף הבית (עמודת צד, מרווחים), פרסומות, פוטר דינמי,
   ניוזלטר, עוגיות, וואטסאפ, שיתוף, פירורי לחם, סגנונות עיצוב חדשים
═══════════════════════════════════════════════════════ */

/* ───────── גודל טקסט ועובי כותרות (מהפאנל) ───────── */
body { font-size: var(--gst-fs, 16px); }
.gst-entry-content { font-size: calc(var(--gst-fs, 16px) + 1px); }
.gst-sec-head h2, .gst-hs-title, .gst-single h1, .gst-archive h1, .gst-banner h2, .gst-related h2, .gst-nl h2 { font-weight: var(--gst-hw, 700); }

/* ───────── מרווחים ורשתות ───────── */
.gst-sec { padding-block: var(--gst-sec-pad, 96px); }
.gst-sw-grid, .gst-art-grid, .gst-deal-grid, .gst-archive-grid { gap: var(--gst-gap, 20px); }
@media (max-width: 960px) { .gst-sec { padding-block: var(--gst-sec-pad-m, 64px); } }

/* ───────── עמודת צד בדף הבית ───────── */
.gst-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--gst-side-w, 320px); gap: 34px; align-items: start; position: relative; z-index: 1; }
.gst-home-layout--start { grid-template-columns: var(--gst-side-w, 320px) minmax(0, 1fr); }
.gst-home-layout--start .gst-home-side { order: -1; }
.gst-home-main { min-width: 0; }
.gst-home-layout .gst-sec { padding-inline: 0; }
.gst-home-layout .gst-sec > .gst-wrap { padding: 0; max-width: none; }
.gst-home-layout .gst-sec--bg2, .gst-home-layout .gst-sec--accent { padding-inline: clamp(18px, 2.4vw, 32px); border-radius: var(--gs-radius-lg, 24px); margin-block: 8px; }
.gst-home-layout .gst-sec--bg { border-top: 1px solid var(--gs-line); }
.gst-home-layout .gst-sec:first-child { border-top: 0; }
.gst-home-side-in { display: flex; flex-direction: column; gap: 22px; padding-block: var(--gst-sec-pad, 96px) 40px; }
.gst-home-side-in.is-sticky { position: sticky; top: calc(var(--gst-offset, 90px) + 8px); align-self: start; padding-top: 28px; }
.gst-box { background: var(--gs-card-bg); border: var(--gs-card-bw) solid var(--gs-card-bd); box-shadow: var(--gs-card-sh); border-radius: var(--gs-radius); padding: 20px; }
.gst-box-title { font-family: var(--gs-font-head); font-size: 17px; font-weight: var(--gst-hw, 700); color: var(--gs-strong); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--gs-primary); }
.gst-box-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; counter-reset: none; }
.gst-box-list li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--gs-line); }
.gst-box-list li:last-child { border-bottom: 0; }
.gst-box-n { font-family: var(--gs-font-mono); font-size: 12px; color: var(--gs-primary); font-weight: 700; flex: none; }
.gst-box-list a { color: var(--gs-text); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.gst-box-list a:hover { color: var(--gs-primary); }
.gst-box ul { list-style: none; padding: 0; margin: 0; }
@media (max-width: 1040px) {
  .gst-home-layout, .gst-home-layout--start { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gst-home-side-in, .gst-home-side-in.is-sticky { position: static; padding-block: 0 48px; }
  .gst-home-layout--start .gst-home-side { order: 2; }
}

/* ───────── פרסומות ───────── */
.gst-ad-row { padding-block: 26px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.gst-home-layout .gst-ad-row { padding: 18px 0; }
.gst-ad { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gst-ad img { display: block; max-width: 100%; height: auto; border-radius: var(--gs-radius); }
.gst-ad--wide img { width: 100%; }
.gst-ad--leader { max-width: 728px; margin-inline: auto; }
.gst-ad--box { max-width: 300px; margin-inline: auto; }
.gst-ad--fit { width: auto; margin-inline: auto; }
.gst-ad-tag { align-self: flex-start; font-family: var(--gs-font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--gs-muted); }
.gst-ad--leader .gst-ad-tag, .gst-ad--box .gst-ad-tag { align-self: center; }
.gst-ad-code { width: 100%; text-align: center; overflow: hidden; }
.gst-ad-promo {
  width: 100%; padding: 26px 28px; border-radius: var(--gs-radius-lg, 22px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background: linear-gradient(135deg, var(--gs-primary), color-mix(in srgb, var(--gs-primary) 45%, var(--gs-accent))); color: var(--gs-on-primary);
}
.gst-ad-promo b { font-family: var(--gs-font-head); font-size: 22px; line-height: 1.25; }
.gst-ad-promo p { margin: 0 0 8px; opacity: .92; line-height: 1.6; }
.gst-ad-promo .gst-btn { background: var(--gs-on-primary); color: var(--gs-primary); box-shadow: none; }
.gst-home-side .gst-ad { gap: 8px; }
.gst-ad-sticky {
  position: fixed; z-index: 980; inset-inline: 0; bottom: 0; padding: 10px 52px 10px 16px; display: flex; justify-content: center;
  background: rgba(var(--gs-bg-rgb), .94); backdrop-filter: blur(12px); border-top: 1px solid var(--gs-line); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35);
}
.gst-ad-sticky[hidden] { display: none; }
.gst-ad-sticky .gst-ad { width: auto; max-width: 970px; flex-direction: row; align-items: center; }
.gst-ad-x { position: absolute; top: 8px; inset-inline-end: 12px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; font-size: 20px; line-height: 1; color: var(--gs-strong); background: rgba(var(--gs-on-rgb), .1); }
.gst-ad-x:hover { background: var(--gs-primary); color: var(--gs-on-primary); }
.gst-dev-desktop { display: none; } .gst-dev-mobile { display: flex; }
@media (min-width: 761px) { .gst-dev-desktop { display: flex; } .gst-dev-mobile { display: none; } }

/* ───────── פירורי לחם ───────── */
.gst-crumbs { margin: 6px 0 22px; position: relative; z-index: 1; }
.gst-crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--gs-muted); }
.gst-crumbs li + li::before { content: '‹'; margin-inline: 10px; opacity: .55; }
.gst-crumbs a { color: var(--gs-muted-light); } .gst-crumbs a:hover { color: var(--gs-primary); }
.gst-crumbs [aria-current] { color: var(--gs-strong); font-weight: 600; }
.gst-page-content .gst-crumbs { max-width: 860px; margin-inline: auto; padding-inline: 20px; }

/* ───────── שיתוף וכותב ───────── */
.gst-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 8px; }
.gst-share-t { font-size: 14px; color: var(--gs-muted); margin-inline-end: 4px; font-weight: 600; }
.gst-share-b {
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: var(--gs-btn-r); cursor: pointer;
  color: var(--gs-strong); background: rgba(var(--gs-on-rgb), .07); border: 1px solid var(--gs-line); transition: background .2s, color .2s, transform .3s cubic-bezier(.22,1,.36,1);
}
.gst-share-b:hover { background: var(--gs-primary); color: var(--gs-on-primary); border-color: transparent; transform: translateY(-2px); }
.gst-author { display: flex; gap: 16px; align-items: center; margin-top: 30px; padding: 20px; border-radius: var(--gs-radius); background: var(--gs-card-bg); border: var(--gs-card-bw) solid var(--gs-card-bd); }
.gst-author img { border-radius: 50%; flex: none; }
.gst-author p { margin: 4px 0 0; color: var(--gs-muted); font-size: 14px; line-height: 1.6; }
.gst-comments { margin-top: 44px; color: var(--gs-text); }
.gst-comments h2, .gst-comments .comment-reply-title { font-family: var(--gs-font-head); font-size: 24px; color: var(--gs-strong); margin: 0 0 18px; }
.gst-comment-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.gst-comment-list .comment-body { padding: 16px 18px; border-radius: var(--gs-radius); background: var(--gs-card-bg); border: var(--gs-card-bw) solid var(--gs-card-bd); }
.gst-comment-list .children { list-style: none; padding-inline-start: 22px; margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.gst-comment-list .avatar { border-radius: 50%; margin-inline-end: 10px; vertical-align: middle; }
.gst-comments input[type="text"], .gst-comments input[type="email"], .gst-comments input[type="url"], .gst-comments textarea {
  width: 100%; padding: 12px 14px; border-radius: calc(var(--gs-radius) * .7); border: 1px solid var(--gs-line); background: rgba(var(--gs-on-rgb), .05); color: var(--gs-text); font: inherit;
}
.gst-comments p { margin: 0 0 14px; }

/* ───────── ניוזלטר ───────── */
.gst-nl { position: relative; z-index: 1; padding: 56px 0 0; }
.gst-nl-in {
  display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 36px clamp(22px, 4vw, 48px);
  border-radius: var(--gs-radius-lg, 24px); color: var(--gs-on-primary);
  background: linear-gradient(135deg, var(--gs-primary), color-mix(in srgb, var(--gs-primary) 40%, var(--gs-accent)));
}
.gst-nl h2 { font-family: var(--gs-font-head); font-size: clamp(22px, 2.6vw, 32px); margin: 0 0 6px; color: inherit; }
.gst-nl p { margin: 0; opacity: .9; font-size: 16px; }
.gst-nl-ctl { flex: 1 1 340px; max-width: 460px; }
.gst-nl-form { display: flex; gap: 8px; }
.gst-nl-form input[type="email"] { flex: 1; min-width: 0; padding: 14px 18px; border-radius: var(--gs-btn-r); border: 0; background: #fff; color: #14101F; font: inherit; }
.gst-nl-form .gst-btn { background: var(--gs-strong); color: var(--gs-bg); box-shadow: none; white-space: nowrap; }
.gst-footer .gst-nl-form { flex-direction: column; margin-top: 12px; }
.gst-footer .gst-nl-form input[type="email"] { background: rgba(var(--gs-on-rgb), .08); color: var(--gs-text); border: 1px solid var(--gs-line); padding: 11px 14px; }
.gst-footer .gst-nl-form .gst-btn { background: var(--gs-primary); color: var(--gs-on-primary); }

/* ───────── פוטר דינמי ───────── */
.gst-footer { padding-top: 64px; }
.gst-footer-grid { grid-template-columns: repeat(var(--fc, 4), minmax(0, 1fr)); }
.gst-footer-brand { grid-column: span 2; }
.gst-footer-col.is-wide { grid-column: span 2; }
.gst-footer-top { text-align: center; margin-bottom: 40px; display: flex; flex-direction: column; align-items: center; }
.gst-footer-top .gst-footer-tagline { max-width: 520px; }
.gst-footer-top .gst-social { justify-content: center; }
.gst-footer-text p { font-size: 14px; line-height: 1.75; margin: 0 0 10px; color: var(--gs-muted); }
.gst-footer-text a { color: var(--gs-accent); }
.gst-footer-col h4 { font-size: 14px; }
.gst-footer-bottom { flex-wrap: wrap; gap: 10px 24px; }
.gst-menu--bottom { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.gst-menu--bottom a { color: var(--gs-muted); font-size: 12.5px; } .gst-menu--bottom a:hover { color: var(--gs-strong); }
.gst-footer-credit { font-size: 12px; opacity: .7; }
.gst-foot-gradient .gst-footer { background: linear-gradient(180deg, var(--gs-bg2), color-mix(in srgb, var(--gs-primary) 22%, var(--gs-bg))); }
.gst-foot-light .gst-footer { background: transparent; border-top: 1px solid var(--gs-line); }
.gst-foot-bold .gst-footer { background: var(--gs-primary); color: var(--gs-on-primary); border-top: 0; }
.gst-foot-bold .gst-footer a, .gst-foot-bold .gst-footer-col h4, .gst-foot-bold .gst-footer-tagline, .gst-foot-bold .gst-footer-text p, .gst-foot-bold .gst-footer-copy, .gst-foot-bold .gst-menu--bottom a { color: var(--gs-on-primary) !important; }
.gst-foot-bold .gst-footer a { opacity: .88; } .gst-foot-bold .gst-footer a:hover { opacity: 1; }
.gst-foot-bold .gst-footer-bottom { border-top-color: rgba(255,255,255,.25); }
.gst-foot-bold .gst-social a { background: rgba(255,255,255,.18); }
@media (max-width: 960px) {
  .gst-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gst-footer-brand, .gst-footer-col.is-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .gst-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .gst-footer-brand, .gst-footer-col.is-wide { grid-column: auto; }
}

/* ───────── וואטסאפ צף / חזרה למעלה / עוגיות ───────── */
.gst-wa {
  position: fixed; z-index: 960; bottom: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #25D366;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.gst-wa:hover { transform: scale(1.08); color: #fff; }
.gst-wa--end { inset-inline-end: auto; inset-inline-start: auto; left: 22px; }
.gst-wa--start { left: auto; right: 22px; }
html[dir="ltr"] .gst-wa--end { left: auto; right: 22px; } html[dir="ltr"] .gst-wa--start { right: auto; left: 22px; }
.gst-totop { inset-inline-start: auto; }
.gst-totop--start { right: 22px; left: auto; } .gst-totop--end { left: 22px; right: auto; }
html[dir="ltr"] .gst-totop--start { left: 22px; right: auto; } html[dir="ltr"] .gst-totop--end { right: 22px; left: auto; }
body:has(.gst-wa--end) .gst-totop--end, body:has(.gst-wa--start) .gst-totop--start { bottom: 92px; }
.gst-cookie { position: fixed; z-index: 99990; display: flex; gap: 18px; align-items: center; background: var(--gs-bg2); color: var(--gs-text); border: 1px solid var(--gs-line); box-shadow: 0 18px 50px -12px rgba(0,0,0,.5); }
.gst-cookie[hidden] { display: none; }
.gst-cookie p { margin: 0; font-size: 14px; line-height: 1.6; } .gst-cookie a { color: var(--gs-accent); text-decoration: underline; }
.gst-cookie .gst-btn { padding: 10px 22px; font-size: 14px; flex: none; }
.gst-cookie--bar { inset-inline: 0; bottom: 0; padding: 16px clamp(16px, 4vw, 40px); justify-content: center; border-width: 1px 0 0; }
.gst-cookie--box { bottom: 18px; right: 18px; max-width: 380px; padding: 18px; border-radius: var(--gs-radius); flex-direction: column; align-items: flex-start; }
html[dir="ltr"] .gst-cookie--box { right: auto; left: 18px; }
@media (max-width: 600px) { .gst-cookie--bar { flex-direction: column; align-items: stretch; text-align: center; } .gst-cookie--box { inset-inline: 12px; max-width: none; } }

/* ───────── 404 ───────── */
.gst-404 { padding: 110px 0 120px; text-align: center; position: relative; z-index: 1; }
.gst-404-n { display: block; font-family: var(--gs-font-head); font-weight: 900; font-size: clamp(90px, 18vw, 190px); line-height: 1; background: linear-gradient(135deg, var(--gs-primary), var(--gs-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gst-404 h1 { font-family: var(--gs-font-head); color: var(--gs-strong); margin: 6px 0 10px; }
.gst-404 p { color: var(--gs-muted-light); font-size: 17px; }
.gst-404-search { max-width: 460px; margin: 24px auto; }
.gst-404-search form, .gst-404-search .search-form { display: flex; gap: 10px; }
.gst-404-search label { flex: 1; display: block; }
.gst-404-search input[type="search"] { width: 100%; padding: 13px 16px; border-radius: var(--gs-btn-r); border: 1px solid var(--gs-line); background: rgba(var(--gs-on-rgb), .06); color: var(--gs-text); font: inherit; }

/* ═══════ סגנונות עיצוב חדשים ═══════ */

/* כרטיסי ניאון זוהרים */
body.gst-card-neon .gst-btn-primary { box-shadow: 0 0 22px -2px rgba(var(--gs-primary-rgb), .75); }
body.gst-card-neon .gst-sec-head h2 { text-shadow: 0 0 22px rgba(var(--gs-primary-rgb), .45); }
body.gst-card-neon .gst-nav { border-bottom: 1px solid rgba(var(--gs-primary-rgb), .5); box-shadow: 0 8px 30px -12px rgba(var(--gs-primary-rgb), .55); }
body.gst-card-neon .gst-hs--cards .gst-hs-clip { box-shadow: 0 0 0 1px rgba(var(--gs-primary-rgb), .7), 0 0 36px -6px rgba(var(--gs-primary-rgb), .7); }
body.gst-card-neon .gst-anchors a.is-active { box-shadow: inset 0 0 0 1px var(--gs-primary), 0 0 18px -4px var(--gs-primary); }
body.gst-card-neon .gst-sw-panel:hover, body.gst-card-neon .gst-art-card:hover, body.gst-card-neon .gst-deal-card:hover { border-color: var(--gs-primary); }

/* נייר עיתון: קו עליון עבה, בלי עיגול, קווים דקים */
body.gst-card-paper .gst-sw-panel, body.gst-card-paper .gst-art-card, body.gst-card-paper .gst-deal-card, body.gst-card-paper .gst-box { border-top: 4px solid var(--gs-strong); border-radius: 0; }
body.gst-card-paper .gst-art-card:hover, body.gst-card-paper .gst-sw-panel:hover, body.gst-card-paper .gst-deal-card:hover { transform: none; border-top-color: var(--gs-primary); }
body.gst-card-paper .gst-art-thumb, body.gst-card-paper .gst-deal-thumb { border-radius: 0; }
body.gst-card-paper .gst-art-thumb img { filter: grayscale(1) contrast(1.05); transition: filter .5s; }
body.gst-card-paper .gst-art-card:hover .gst-art-thumb img { filter: none; }
body.gst-card-paper .gst-nav { border-bottom: 3px double var(--gs-strong); box-shadow: none; }
body.gst-card-paper .gst-footer { border-top: 4px double var(--gs-strong); }
body.gst-card-paper .gst-box-title { border-bottom-color: var(--gs-strong); }
body.gst-card-paper .gst-sec-head p, body.gst-card-paper .gst-entry-content { font-family: var(--gs-font-body); }
body.gst-card-paper .gst-btn { border-radius: 0; }
body.gst-card-paper .gst-home-layout .gst-sec--bg2 { border-radius: 0; }
body.gst-card-paper .gst-box-n { color: var(--gs-primary); font-family: var(--gs-font-head); font-size: 20px; font-weight: 900; }

/* כותרות אזור "קו כפול" בסגנון עיתון */
.gst-head-rule .gst-sec-head { border-top: 4px solid var(--gs-strong); border-bottom: 1px solid var(--gs-strong); padding: 16px 0 14px; position: relative; margin-bottom: 36px; }
.gst-head-rule .gst-sec-head::before { content: ''; position: absolute; inset-inline: 0; top: 4px; height: 1px; background: var(--gs-strong); opacity: .8; }
.gst-head-rule .gst-sec-head h2 { margin-bottom: 4px; letter-spacing: -.01em; }
.gst-head-rule .gst-sec-head .gst-label { color: var(--gs-primary); font-weight: 800; letter-spacing: .18em; }

/* משתנה צבע מותאם ל-hover של חלוניות קטלוג בערכות כהות */
@media (prefers-reduced-motion: reduce) { .gst-share-b, .gst-wa, .gst-ad-x { transition: none; } }
