/* דף הבית – שני כיוונים: .home--a (הירו גדול) ו-.home--b (חם ורך) */
.home { min-height: 100vh; padding-bottom: 120px; }

.hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero__hello h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.2; }
.hero__hello p { font-size: var(--fs-body); opacity: .92; margin-top: 2px; }
.hero__actions { display: flex; gap: 8px; }
.hero__main { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.week { display: flex; flex-direction: column; }
.week__label { font-size: var(--fs-h2); font-weight: 700; }
.week__num { font-size: var(--fs-display); font-weight: 800; line-height: .95; letter-spacing: -2px; }
.week__of { font-size: var(--fs-small); font-weight: 600; opacity: .9; }
.hero__size { font-size: var(--fs-h2); font-weight: 700; margin-top: 14px; }

.block + .block { margin-top: 28px; }
.grid-2, .col { display: grid; gap: 28px; }
.home--b .grid-2, .home--b .col { gap: 14px; }
.grid-2 .block + .block, .col .block + .block { margin-top: 0; }

/* ===== כיוון א׳ – הירו גדול ===== */
.home--a { background: var(--surface); }
.home--a .hero {
  background: var(--smoky-pink); color: #fff;
  padding: calc(18px + env(safe-area-inset-top)) var(--margin) 52px;
}
.home--a .week__num { font-size: 104px; }
.home--a .sheet {
  position: relative; margin-top: -26px;
  background: var(--surface);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 24px var(--margin) 0;
}

/* ===== כיוון ב׳ – חם ורך ===== */
.home--b { background: var(--background); padding-top: calc(12px + env(safe-area-inset-top)); }
.home--b .hero {
  margin: 0 14px; padding: 20px 20px 22px;
  background: var(--smoky-pink); color: #fff;
  border-radius: var(--radius-l);
  overflow: hidden; position: relative;
}
.home--b .hero::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  left: -70px; bottom: -110px; background: rgba(255,255,255,.07);
}
.home--b .hero__main { flex-direction: row-reverse; }
.home--b .hero__art {
  flex: none; width: 128px; height: 128px; border-radius: 50%;
  background: var(--baby-pink); display: grid; place-items: center;
}
.home--b .hero__art .mango { width: 78px; height: 94px; }
.home--b .hero .progress { margin-top: 16px; position: relative; z-index: 1; }
.home--b .hero .progress__track { background: rgba(255,255,255,.28); }
.home--b .hero .progress__fill { background: #fff; }
.home--b .hero .progress__labels, .home--b .hero .progress__labels b { color: #fff; }
.home--b .sheet { padding: 22px 14px 0; }
.home--b .block {
  background: var(--surface); border-radius: var(--radius-m);
  padding: 18px; box-shadow: var(--shadow-card);
}
.home--b .block + .block { margin-top: 14px; }
.home--b .block--bare { background: none; box-shadow: none; padding: 4px 4px 0; }

/* ===== טאבלט: הירו לרוחב, מתחתיו שתי עמודות ===== */
@media (min-width: 700px) {
  :root { --margin: 40px; --fs-h1: 30px; }
  .hero__main { gap: 32px; }
  .home--a .hero { padding-bottom: 64px; }
  .home--a .hero__inner, .home--a .sheet__inner, .home--b .wrap { max-width: 980px; margin: 0 auto; }
  .home--a .week__num { font-size: 132px; }
  .home--a .hero__art .mango { width: 170px; height: 204px; }
  .home--b .hero { margin: 0 24px; padding: 28px 32px; }
  .home--b .hero__art { width: 168px; height: 168px; }
  .home--b .sheet { padding: 24px 24px 0; }
  .grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
  .grid-2 .block + .block { margin-top: 0; }
  .col { display: grid; gap: 24px; }
  .home--b .col { gap: 14px; }
  .home--a .col .block + .block, .home--b .col .block + .block { margin-top: 0; }
  .moods { gap: 12px; }
}

/* ===== מחשב: index.html עוטף את עצמו במסגרת טלפון (ראו app.js) ===== */
body.desktop-frame { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #EFDCE7; }
.device {
  width: 414px; height: 880px; max-height: calc(100vh - 40px);
  border-radius: 52px; border: 12px solid #1b1015; overflow: hidden;
  box-shadow: 0 30px 80px rgba(58,29,44,.3); background: #fff;
}
.device iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== כיוון משולב (ברירת מחדל) – הירו של א׳ לרוחב המסך, השאר מ-ב׳ ===== */
.home--c { padding-top: 0; }
.home--c .hero {
  margin: 0;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  padding: calc(18px + env(safe-area-inset-top)) var(--margin) 24px;
}
.home--c .hero__main { flex-direction: row; }
.home--c .hero__art { width: auto; height: auto; background: none; border-radius: 0; }
.home--c .hero__art .mango { width: 118px; height: 142px; }
.home--c .week__num { font-size: 104px; }
@media (min-width: 700px) {
  .home--c .wrap { max-width: none; }
  .home--c .hero { margin: 0; padding: 28px var(--margin) 32px; }
  .home--c .hero > * { max-width: 980px; margin-inline: auto; }
  .home--c .hero .progress { max-width: 980px; margin-inline: auto; }
  .home--c .week__num { font-size: 132px; }
  .home--c .hero__art .mango { width: 170px; height: 204px; }
  .home--c .sheet { max-width: 980px; margin: 0 auto; }
}

/* ===== מאמר היום ===== */
.article { display: flex; gap: 14px; align-items: center; color: inherit; text-decoration: none; }
.article__media { flex: none; width: 104px; height: 104px; border-radius: 18px; background: var(--background); display: grid; place-items: center; overflow: hidden; }
.article__media img { width: 100%; height: 100%; object-fit: contain; }
.article__body { min-width: 0; }
.article__tag { display: inline-block; font-size: var(--fs-tiny); font-weight: 700; color: var(--smoky-pink-dark); background: var(--baby-pink); padding: 2px 10px; border-radius: 99px; }
.article h2 { font-size: var(--fs-body); font-weight: 700; margin-top: 6px; line-height: 1.3; }
.article p { font-size: var(--fs-small); color: var(--text-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article__meta { display: block; font-size: var(--fs-tiny); color: var(--text-muted); margin-top: 6px; }
/* גרסת צילום: תמונה רחבה למעלה */
.article--photo { flex-direction: column; align-items: stretch; padding: 0 !important; overflow: hidden; }
.article--photo .article__media { width: 100%; height: 170px; border-radius: 0; }
.article--photo .article__media img { object-fit: cover; }
.article--photo .article__body { padding: 16px 18px 18px; }
.article__placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--smoky-pink-dark); font-size: var(--fs-small); font-weight: 600;
  background: repeating-linear-gradient(45deg, var(--baby-pink) 0 12px, #FBE0EB 12px 24px); width: 100%; height: 100%; justify-content: center; }

/* עמודות לא מתרחבות מעבר למסך (למשל בגלל שורת נושאים נגללת) */
.grid-2 { grid-template-columns: minmax(0, 1fr); }
.col { min-width: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.fruit-emoji { display: grid; place-items: center; line-height: 1; width: auto !important; height: auto !important; filter: drop-shadow(0 10px 14px rgba(58,29,44,.3)); }
.hero__stats { font-size: var(--fs-small); opacity: .9; margin-top: 4px; }
