/* ידע ברגע - דף נחיתה מסך אחד (בנטו, לילה כחול וזהב) */

:root {
  --yb-navy-1: #050b22;
  --yb-navy-2: #0a1240;
  --yb-navy-3: #14235f;
  --yb-blue: #38bdf8;
  --yb-gold: #f5c04a;
  --yb-gold-2: #ffe08a;
  --yb-ink: #eaf1ff;
  --yb-muted: #b7c6ee;
  --yb-pad: clamp(10px, 1.4vw, 22px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--yb-ink);
  font-family: Heebo, Rubik, system-ui, sans-serif;
  background: var(--yb-navy-1);
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
}

/* ---------- מסך ---------- */

.yb-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--yb-pad);
  height: 100dvh;
  padding: var(--yb-pad);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, #1b2f7a 0%, transparent 55%),
    radial-gradient(110% 80% at 10% 100%, #22135c 0%, transparent 60%),
    linear-gradient(160deg, var(--yb-navy-2), var(--yb-navy-1) 70%);
}

.yb-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.yb-glow-a {
  inset-inline-end: -8vw;
  top: -12vh;
  width: 42vw;
  height: 42vw;
  background: rgba(56, 189, 248, 0.35);
}

.yb-glow-b {
  inset-inline-start: -10vw;
  bottom: -16vh;
  width: 38vw;
  height: 38vw;
  background: rgba(245, 192, 74, 0.22);
}

/* ---------- סרגל עליון ---------- */

.yb-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 1.5vw, 20px);
}

.yb-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.yb-brand img {
  width: clamp(38px, 4vw, 54px);
  height: clamp(38px, 4vw, 54px);
  flex: 0 0 auto;
  border-radius: 16px;
  border: 2px solid rgba(245, 192, 74, 0.7);
  object-fit: cover;
}

.yb-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.yb-brand-text strong {
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 900;
  background: linear-gradient(180deg, var(--yb-gold-2), var(--yb-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.yb-brand-text span {
  font-size: clamp(10px, 1.1vw, 14px);
  color: var(--yb-muted);
}

.yb-bar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.yb-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 14px);
  min-width: 0;
  justify-self: center;
}

.yb-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 4.6vw, 50px);
  height: clamp(38px, 4.6vw, 50px);
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 0 2px rgba(245, 192, 74, 0.85), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.yb-social svg {
  width: 55%;
  height: 55%;
  pointer-events: none;
}

.yb-social-whatsapp svg {
  width: 72%;
  height: 72%;
}

.yb-social:hover {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.yb-social-whatsapp {
  background: #25d366;
}

.yb-social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.yb-social-tiktok {
  background: linear-gradient(135deg, #25f4ee 0%, #000000 50%, #fe2c55 100%);
}

.yb-social-facebook {
  background: #1877f2;
}

.yb-link {
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--yb-muted);
  font-size: clamp(11px, 1.1vw, 14px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.yb-link:hover {
  color: var(--yb-ink);
}

.yb-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: clamp(8px, 1vw, 12px) clamp(14px, 1.7vw, 24px);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.yb-btn:hover {
  transform: translateY(-2px);
}

.yb-btn-ghost {
  border: 2px solid rgba(56, 189, 248, 0.55);
  color: var(--yb-ink);
  background: rgba(20, 35, 95, 0.5);
}

.yb-btn-gold {
  color: #2a1a00;
  background: linear-gradient(180deg, var(--yb-gold-2), var(--yb-gold));
  box-shadow: 0 10px 24px -10px rgba(245, 192, 74, 0.9);
}

/* ---------- רשת בנטו ---------- */

.yb-grid {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 1;
  min-height: 0;
  gap: var(--yb-pad);
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 1.15fr 1fr;
  grid-template-areas:
    "video trial trial"
    "video forest zoom"
    "video forest rec";
}

.yb-grid {
  grid-template-rows: 1fr 1fr 1fr;
}

.yb-tile-video {
  grid-area: video;
}
.yb-tile-trial {
  grid-area: trial;
}
.yb-tile-forest {
  grid-area: forest;
}
.yb-tile-zoom {
  grid-area: zoom;
}
.yb-tile-rec {
  grid-area: rec;
}

/* ---------- אריח ---------- */

.yb-tile {
  position: relative;
  display: flex;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  align-items: flex-end;
  padding: clamp(10px, 1.3vw, 20px);
  border: 1.5px solid rgba(148, 187, 255, 0.28);
  border-radius: clamp(16px, 1.8vw, 26px);
  background: rgba(9, 18, 52, 0.6);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  color: var(--yb-ink);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.yb-tile:hover,
.yb-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--yb-gold);
  box-shadow: 0 22px 50px -22px rgba(245, 192, 74, 0.55);
  outline: none;
}

.yb-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.yb-tile-trial .yb-tile-img {
  object-fit: cover !important;
  object-position: left center !important;
  opacity: 1 !important;
  transform: scale(1.45) !important;
  transform-origin: left center !important;
}

.yb-tile::after {
  content: none;
}

/* תאורה/הדגשה מאחורי הכיתוב בתיבות */
.yb-tile-body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -14px -10px -14px;
  border-radius: 18px;
  background: radial-gradient(
    120% 100% at 50% 100%,
    rgba(2, 6, 22, 0.85) 0%,
    rgba(2, 6, 22, 0.55) 45%,
    transparent 75%
  );
  filter: blur(8px);
  pointer-events: none;
}


.yb-tile-body {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.yb-kicker {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 11px;
  background: rgba(245, 192, 74, 0.22);
  border: 1px solid rgba(245, 192, 74, 0.65);
  color: var(--yb-gold-2);
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, 0.55);
}

.yb-title {
  font-size: clamp(17px, 2.1vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 4px 18px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(0, 0, 0, 0.55);
  letter-spacing: -0.01em;
}

.yb-text {
  font-size: clamp(11px, 1.05vw, 15px);
  line-height: 1.45;
  font-weight: 600;
  color: #f2f6ff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 3px 12px rgba(0, 0, 0, 0.65);
}

.yb-cta {
  align-self: flex-start;
  margin-top: 6px;
  border-radius: 999px;
  padding: clamp(6px, 0.8vw, 10px) clamp(12px, 1.5vw, 20px);
  background: linear-gradient(180deg, var(--yb-gold-2), var(--yb-gold));
  color: #2a1a00;
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 800;
  box-shadow: 0 10px 22px -12px rgba(245, 192, 74, 0.9);
}

.yb-play {
  position: absolute;
  z-index: 1;
  inset-inline-end: clamp(12px, 1.5vw, 24px);
  top: clamp(12px, 1.5vw, 24px);
  display: grid;
  place-items: center;
  width: clamp(46px, 5vw, 72px);
  height: clamp(46px, 5vw, 72px);
  border-radius: 50%;
  background: rgba(245, 192, 74, 0.95);
  color: #22160a;
  box-shadow: 0 0 0 8px rgba(245, 192, 74, 0.18);
}

.yb-play svg {
  width: 60%;
  height: 60%;
}

.yb-tile-video:hover .yb-play {
  background: var(--yb-gold-2);
}

/* ---------- חלון סרטון ---------- */

.yb-modal[hidden] {
  display: none;
}

.yb-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vw, 40px);
}

.yb-modal-back {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 20, 0.9);
  backdrop-filter: blur(6px);
}

.yb-modal-box {
  position: relative;
  width: min(100%, 1100px);
}

.yb-modal-frame video {
  width: 100%;
  max-height: 82dvh;
  border-radius: 18px;
  border: 2px solid rgba(245, 192, 74, 0.5);
  background: #000;
  display: block;
}

.yb-modal-close {
  position: absolute;
  inset-inline-end: -6px;
  top: -46px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--yb-gold-2), var(--yb-gold));
  color: #2a1a00;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

/* ---------- טאבלט ---------- */

@media (max-width: 1024px) {
  .yb-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.3fr 1fr 1fr;
    grid-template-areas:
      "video video"
      "trial forest"
      "zoom rec";
  }
}

/* ---------- טלפון ---------- */

@media (max-width: 640px) {
  .yb-bar-actions .yb-btn-ghost {
    display: none;
  }

  .yb-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.25fr 1fr 0.85fr;
    grid-template-areas:
      "video video"
      "trial forest"
      "zoom rec";
  }

  .yb-tile {
    align-items: flex-end;
  }

  .yb-tile-zoom .yb-text,
  .yb-tile-rec .yb-text,
  .yb-tile-video .yb-text {
    display: none;
  }

  .yb-tile-forest .yb-text,
  .yb-tile-trial .yb-text {
    display: none;
  }

  .yb-tile-trial .yb-kicker,
  .yb-tile-forest .yb-kicker {
    display: none;
  }
}

@media (max-width: 640px) and (min-height: 720px) {
  .yb-tile-video .yb-text,
  .yb-tile-trial .yb-text,
  .yb-tile-forest .yb-text {
    display: block;
  }
}

/* ---------- מסך רחב נמוך ---------- */

@media (max-height: 520px) {
  .yb-brand-text span,
  .yb-tile-zoom .yb-text,
  .yb-tile-rec .yb-text {
    display: none;
  }
}

/* אלמנטים שמוסתרים דינמית מתוך עורך עמוד הבית */
.yb-play[hidden],
.yb-kicker[hidden],
.yb-cta[hidden],
.yb-tile[hidden] {
  display: none !important;
}

/* ---------- טלפון: גלילה אנכית ועמודה קריאה ---------- */

@media (max-width: 700px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .yb-screen {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: visible;
  }
}

@media (max-width: 640px) {
  .yb-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "video"
      "trial"
      "forest"
      "zoom"
      "rec";
    gap: 12px;
  }

  .yb-tile {
    min-height: 190px;
  }

  .yb-tile-video {
    min-height: 220px;
  }

  /* בטלפון יש מקום לכיתובים, מחזירים אותם */
  .yb-tile-video .yb-text,
  .yb-tile-trial .yb-text,
  .yb-tile-forest .yb-text,
  .yb-tile-zoom .yb-text,
  .yb-tile-rec .yb-text {
    display: block;
  }

  .yb-tile-trial .yb-kicker,
  .yb-tile-forest .yb-kicker {
    display: block;
  }

  .yb-bar-actions .yb-btn-ghost {
    display: none;
  }

  .yb-btn,
  .yb-cta,
  .yb-play {
    min-height: 44px;
  }

  .yb-brand-text span {
    display: none;
  }

  .yb-socials {
    flex-wrap: nowrap;
    gap: 6px;
  }

  .yb-social {
    width: 40px;
    height: 40px;
  }
}

/* ---------- טלפון: שורת עליונה בשתי שורות כדי שהכניסה לא תכסה את הסושיאל ---------- */

@media (max-width: 700px) {
  .yb-bar {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "socials socials";
    gap: 10px;
  }

  .yb-brand {
    grid-area: brand;
    min-width: 0;
  }

  .yb-bar-actions {
    grid-area: actions;
  }

  .yb-socials {
    grid-area: socials;
    justify-self: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .yb-social {
    width: 44px;
    height: 44px;
  }

  .yb-bar-actions .yb-btn-gold {
    padding: 8px 14px;
    font-size: 13px;
  }
}
