/*
 *  garden.css
 *  Flor — the garden card (side panel and settings page)
 *  Colours from Flor Cozy Kit; it follows the page's theme tokens (--ink-*, --fg).
 */

.garden {
  --g-sage: #a9c4ae; --g-peach: #ffb884; --g-butter: #f2d27a; --g-blush: #f4b6c2;
  --g-bed: #fde9d4; --g-sky: #e3eee4;
  font-family: 'Nunito', 'Flor IPA', 'Segoe UI', system-ui, sans-serif;
  display: grid; gap: 10px;
  padding: 12px 14px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--g-sky) 0%, var(--ink-1, #fffaf0) 75%);
  border: 1.5px solid var(--ink-3, #eadcc4);
  color: var(--fg, #2e4347);
}
html[data-chrome='garden-night'] .garden, .garden.night {
  --g-sage: #7fa28a; --g-peach: #e89a68; --g-butter: #d8c06e; --g-blush: #d98a9b;
  --g-bed: #3a2f4a; --g-sky: #322840;
}
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.g-title { font-family: 'Pangolin', 'Flor IPA', 'Nunito', cursive; font-weight: 400; font-size: 21px; line-height: 1.1; margin: 0; }
.g-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.g-chip { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--ink-1, #fffaf0); border: 1.5px solid var(--ink-3, #eadcc4); }

.g-bed {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 4px;
  min-height: 52px; padding: 8px 10px 6px; border-radius: 16px;
  background: var(--g-bed);
  box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--g-sage) 55%, transparent);
}
.g-plant { width: 30px; height: 30px; transition: transform .2s ease; }
.g-plant:hover { transform: translateY(-3px) rotate(-6deg); }
.g-gift { width: 26px; height: 26px; }

.g-note {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center;
  padding: 4px 2px;
}
.g-note-words { position: relative; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: var(--ink-1, #fffaf0); }
.g-note.new .g-note-words { background: color-mix(in srgb, var(--g-blush) 22%, var(--ink-1, #fffaf0)); }
.g-visitor { width: 48px; height: 48px; }
.g-note-words { display: grid; gap: 2px; min-width: 0; }
.g-chip img { width: 14px; height: 14px; vertical-align: -2px; }
.g-name { font-family: 'Pangolin', 'Flor IPA', cursive; font-weight: 400; font-size: 15px; color: var(--celadon, #a65530); }
.g-say { font-family: 'Pangolin', 'Flor IPA', 'Nunito', cursive; font-size: 16px; line-height: 1.3; margin: 0; }
.g-ru { font-size: 12.5px; color: var(--fg-dim, #566a6e); margin: 0; }
.g-inline { width: 18px; height: 18px; vertical-align: -4px; }
.g-thanks {
  grid-column: 1 / -1; justify-self: end;
  font: 700 13px 'Nunito', 'Flor IPA', system-ui, sans-serif; color: #2e4347;
  background: var(--g-peach); border: 0; border-radius: 99px; padding: 5px 14px; cursor: pointer;
}
.g-thanks:hover { filter: brightness(1.05); transform: translateY(-1px); }

.g-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.g-stat { display: grid; gap: 3px; min-width: 0; }
.g-stat-row { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 700; }
.g-stat-row > span:first-child { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.g-stat-icon { width: 16px; height: 16px; }
.g-stat-value { font-variant-numeric: tabular-nums; color: var(--fg-dim, #566a6e); white-space: nowrap; }
.g-bar { height: 9px; border-radius: 99px; background: color-mix(in srgb, var(--fg, #2e4347) 10%, transparent); overflow: hidden; }
.g-bar i { display: block; height: 100%; border-radius: 99px; transition: width .6s ease; }

.bob { animation: g-bob 3.4s ease-in-out infinite; }
@keyframes g-bob { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .bob, .g-plant, .g-bar i { animation: none; transition: none; } }

.g-title { display: inline-flex; align-items: center; gap: 6px; }
.g-owner { width: 30px; height: 30px; margin: -4px 0; }

/* Flor by day (cream) and by night (lamp-lit): the theme shows one. */
.g-owner.night, .flor-mark.night { display: none; }
html[data-chrome='garden-night'] .g-owner.day, .garden.night .g-owner.day,
html[data-chrome='garden-night'] .flor-mark.day { display: none; }
html[data-chrome='garden-night'] .g-owner.night, .garden.night .g-owner.night,
html[data-chrome='garden-night'] .flor-mark.night { display: inline-block; }

/* Friends: one more moves in each day; the newest live in the bed, the chip opens the album. */
.g-chip-btn { font-family: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.g-chip-btn:hover { transform: translateY(-1px); }
.g-chip-btn img { width: 18px; height: 18px; vertical-align: -4px; }
.g-friend { width: 36px; height: 36px; }
.g-album {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px; border-radius: 16px;
  background: var(--ink-1, #fffaf0); border: 1.5px dashed var(--ink-3, #eadcc4);
  max-height: 180px; overflow-y: auto;
}
.g-album[hidden] { display: none; }
.g-friend-mini { width: 32px; height: 32px; }
