/* css/farm.css — החווה (js/farm.js). השמיים, הכרטיסים והכותרות — מ-craft.css */
.farm-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plots { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin-top: 10px; }   /* 128 — 8 בשורה במסך רחב (16 = שתי שורות) */
.plot { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 178px;
  padding: 12px 6px 10px; border-radius: 16px; border: 2px solid #5b3a1e; color: #fff8eb; font: inherit;
  background: linear-gradient(#8a5a2b 0 34%, #6b4321 34% 100%); overflow: hidden; }
.plot-soil { position: absolute; inset: auto 0 0 0; height: 66%;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 6px, transparent 6px 16px); pointer-events: none; }
.plot > :not(.plot-soil) { position: relative; }
.plot.watered { border-color: #2563eb; }
.plot.watered .plot-soil { background: repeating-linear-gradient(0deg, rgba(30,64,175,.28) 0 6px, transparent 6px 16px); }
.plot.ready { border-color: #facc15; box-shadow: 0 0 0 3px rgba(250,204,21,.35); }
.plot.empty { cursor: pointer; place-content: center; border-style: dashed; opacity: .85; }
.plot.empty:hover, .plot.empty:focus-visible { opacity: 1; transform: translateY(-2px); }
.plot-label { font-weight: 700; }
.plot-no { position: absolute; top: 6px; inset-inline-start: 8px; font-size: 12px; opacity: .75; }
/* מה שגדל: תמונת הפריט על "גבעה" בהירה (שגם Black / White Apricorn ייראו על החום), גדלה עם השלב; הנבט בפינה */
.plot-crop { position: relative; width: 60px; height: 60px; display: grid; place-items: center; line-height: 1; }
.plot-crop::before { content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255,248,235,.42), rgba(255,248,235,.12) 62%, transparent 72%); }
.plot-fruit { position: relative; display: grid; place-items: center; transform: scale(var(--grow, 1));
  transition: transform .6s ease; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.plot-fruit .item-emoji { font-size: 34px !important; }
.plot.stage-0 { --grow: .7; }
.plot.stage-1 { --grow: .82; }
.plot.stage-2 { --grow: .92; }
.plot-sprout { position: absolute; bottom: 0; inset-inline-end: -4px; font-size: 20px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.plot.ready .plot-fruit { animation: plot-bob 1.6s ease-in-out infinite; }
.plot.ready .plot-sprout { animation: plot-twinkle 1.6s ease-in-out infinite; }
@keyframes plot-twinkle { 50% { opacity: .35; transform: scale(.8); } }
@keyframes plot-bob { 50% { transform: translateY(-4px); } }
.plot-name { font-weight: 700; font-size: 13px; line-height: 1.2; text-align: center; }
.plot-bar { width: 100%; height: 8px; border-radius: 99px; background: rgba(0,0,0,.35); overflow: hidden; }
.plot-bar i { display: block; height: 100%; width: calc(var(--p) * 1%); background: linear-gradient(90deg, #4ade80, #facc15); }
.plot-time { font-variant-numeric: tabular-nums; font-size: 13px; }
.plot-btns .muted { color: #dbeafe; }
.plot-btns .btn-xs { padding-inline: 7px; white-space: nowrap; }   /* "💧 השקה (−30%)" בשורה אחת גם ב-8 בשורה */
.seeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.seed { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg-elevated, rgba(127,127,127,.08)); }
.seed.none { opacity: .5; }
.seed-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.seed-opt { display: grid; justify-items: center; gap: 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--border, #ccc);
  background: var(--bg-elevated, transparent); color: inherit; font: inherit; cursor: pointer; }
.seed-opt:hover, .seed-opt:focus-visible { border-color: #22c55e; }
.farm-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.farm-nums div { display: grid; gap: 2px; padding: 10px; border-radius: 12px; text-align: center; background: var(--bg-elevated, rgba(127,127,127,.08)); }
.farm-nums b { font-size: 22px; }
.farm-nums span { font-size: 13px; opacity: .8; }
.reduce-motion .plot.ready :is(.plot-fruit, .plot-sprout) { animation: none; }
/* מכבש המיצים */
.press-queue { display: grid; gap: 8px; margin: 8px 0 14px; }
.press-job { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 10px; padding: 8px 12px;
  border-radius: 12px; background: var(--bg-elevated, rgba(127,127,127,.08)); }
.press-job.ready { box-shadow: 0 0 0 2px rgba(250,204,21,.6); }
.press-time { font-variant-numeric: tabular-nums; font-size: 13px; }
.press-recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.press-recipe { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-elevated, rgba(127,127,127,.08)); }
.press-recipe.wide { grid-column: 1 / -1; }
.press-out { display: flex; gap: 10px; align-items: center; }
.press-needs { display: flex; flex-wrap: wrap; gap: 6px; }
.press-need { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 13px;
  background: rgba(127,127,127,.12); }
.press-need.short { color: #ef4444; }
@media (max-width: 560px) { .press-job { grid-template-columns: auto 1fr auto; } .press-job .plot-bar { grid-column: 1 / -1; } }
/* החממה (js/farm-eggs.js) — קן לכל מקום; הביצה מתנדנדת כשמוכנה */
.eggs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.egg-slot { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; min-height: 176px;
  padding: 12px 8px 10px; border-radius: 16px; border: 2px solid #a16207; color: inherit; font: inherit; text-decoration: none;
  background: radial-gradient(ellipse at 50% 85%, #b45309 0 22%, transparent 23%), linear-gradient(#fef3c7, #fde68a); color: #422006; }
.egg-slot.egg-rare { border-color: #2563eb; }
.egg-slot.egg-special { border-color: #ca8a04; box-shadow: 0 0 0 2px rgba(250,204,21,.35); }
.egg-slot.empty { cursor: pointer; place-content: center; border-style: dashed; opacity: .85; }
.egg-slot.empty:hover, .egg-slot.empty:focus-visible { opacity: 1; transform: translateY(-2px); }
.egg-nest { width: 70px; height: 26px; border-radius: 50%; background: repeating-linear-gradient(110deg, #92400e 0 4px, #b45309 4px 8px); }
.egg-art { filter: drop-shadow(0 3px 2px rgba(0,0,0,.3)); }
.egg-name { font-weight: 700; font-size: 13px; text-align: center; line-height: 1.2; }
.egg-time { font-variant-numeric: tabular-nums; font-size: 13px; }
.egg-slot .plot-bar { background: rgba(66,32,6,.2); }
.egg-slot.ready { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
.egg-slot.ready .egg-art { animation: egg-wobble 1.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes egg-wobble { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-9deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-4deg); } }
/* הבקיעה: רועדת → נסדקת (הבזק) → הפוקימון קופץ החוצה */
.hatch-stage { position: relative; height: 170px; display: grid; place-items: center; }
.hatch-egg, .hatch-mon { grid-area: 1 / 1; transition: opacity .35s ease, transform .35s ease; }
.hatch-mon { opacity: 0; transform: scale(.4); }
.hatch-stage.shake .hatch-egg { animation: egg-shake .35s ease-in-out infinite; transform-origin: 50% 90%; }
.hatch-stage.crack .hatch-egg { animation: egg-shake .12s linear infinite; filter: brightness(1.6) drop-shadow(0 0 18px #fff); }
.hatch-stage.open .hatch-egg { animation: none; opacity: 0; transform: scale(1.5); }
.hatch-stage.open .hatch-mon { opacity: 1; transform: scale(1); }
.hatch-stage.open::before { content: ""; position: absolute; inset: 10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 65%); animation: hatch-flash .8s ease-out forwards; }
.hatch-mon.shiny .hatch-plate { box-shadow: 0 0 0 3px #facc15, 0 0 22px #facc15; }
.hatch-result { text-align: center; }
@keyframes egg-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes hatch-flash { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(1.4); } }
.reduce-motion .egg-slot.ready .egg-art, .reduce-motion .hatch-stage * { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .egg-slot.ready .egg-art, .hatch-stage *, .hatch-stage::before { animation: none !important; } }

/* 🤝 העוזר בחווה (farm-helper.js) */
.helper-card, .helper-empty { display: flex; gap: 12px; align-items: center; }
.helper-card img { image-rendering: pixelated; flex: none; }
.helper-card.gone img { filter: grayscale(1); opacity: .6; }
.helper-info { flex: 1; display: grid; gap: 4px; min-width: 0; }
.helper-empty > div { flex: 1; }
.helper-xp { height: 8px; border-radius: 99px; background: var(--bg-elevated, rgba(127,127,127,.15)); overflow: hidden; max-width: 260px; }
.helper-xp i { display: block; height: 100%; background: var(--success, #22c55e); border-radius: inherit; }
.helper-pick { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.helper-opt { display: flex; gap: 10px; align-items: center; text-align: start; padding: 6px 10px; border-radius: 12px;
  border: 1px solid transparent; background: var(--bg-elevated, rgba(127,127,127,.08)); color: inherit; cursor: pointer; }
.helper-opt.on, .helper-opt:hover { border-color: var(--primary, #3b82f6); }
.helper-opt img { image-rendering: pixelated; flex: none; }

/* נוחות (13.11.2026): שתילה בכל החלקות הריקות, וכפתור פרמיום נעול */
.plant-all-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(127, 127, 127, .12); cursor: pointer; }
.plant-all-row input { width: 18px; height: 18px; }
#harvest-replant.is-locked { opacity: .7; }
