/* Signed-in dashboard, in the brand style of the public pages. Rules that
   restyle shared garden components are scoped to .dashboard so other pages
   keep their current look. Loads after gardens.css and account.css. */
.dashboard {
  max-width: 70rem;
  margin-inline: auto;
}

/* Section headings: centered over an ornamental rule, as on public pages */
.dashboard .brand-rule { margin-bottom: 1.5rem; }
.dash-section__more {
  margin-top: 1rem;
  text-align: center;
}

/* Cards: paper with a soft shadow in place of the dark border */
.dashboard :is(.garden-card, .dash-recent__card, .planting-event, .garden-empty, .info-callout) {
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  background-color: var(--color-paper);
  box-shadow: 0 1px 2px #19381f1a;
}
@media (hover: hover) {
  .dashboard :is(.garden-card--link, .dash-recent__card):hover {
    border-color: var(--brand-ink);
  }
}
.dashboard .info-callout--upgrade { border-color: var(--color-cta); }
.dashboard .planting-event--completed { background-color: var(--color-grey-green); }
.dashboard .garden-input { background-color: var(--color-paper); }
.dashboard .garden-link { color: var(--color-cta); }
.dashboard .btn {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
}
.dashboard :is(.dash-quick__title, .garden-category__label, .dash-step__title, .dash-milestone__title) {
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  color: var(--brand-ink);
}
.dashboard .dash-milestone--current { border-color: var(--color-cta); }
.dashboard .garden-empty--loading { margin-bottom: 3rem; }

/* Task rows: readable on paper */
.dashboard .planting-event { padding: 1rem; }
.dashboard .planting-event__title {
  font-size: var(--brand-fs-sm);
}
.dashboard :is(.planting-event__meta, .planting-event__window, .planting-event__instructions, .planting-event__action--quiet) {
  color: var(--color-text-muted);
}

.dash-section {
  margin-bottom: 3rem;
}

.dash-section__intro {
  margin-bottom: 1rem;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .75rem;
}

@media (min-width: 40rem) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Plant search */
.dash-search {
  display: flex;
  gap: .5rem;
}

.dash-search__input {
  display: inline-block;
  flex-grow: 1;
  width: auto;
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

/* Full-screen "Searching..." overlay; search_loading_controller removes .hidden */
.dash-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  align-items: center;
  justify-content: center;
  display: flex;
  background-color: #fffc;
}

@supports (color: color-mix(in lab, red, red)) {
  .dash-overlay {
    background-color: color-mix(in oklab, var(--color-white) 80%, transparent);
  }
}

.dash-overlay__content {
  text-align: center;
}

.dash-overlay__spinner {
  display: inline-block;
  margin-bottom: .75rem;
  width: 2rem;
  height: 2rem;
  border: 4px solid var(--color-green-200);
  border-top-color: var(--color-green-600);
  border-radius: 3.40282e38px;
  animation: garden-spin 1s linear infinite;
}

.dash-overlay__text {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}

/* Recently searched */
.dash-recent__title {
  margin-bottom: .5rem;
}

.dash-recent__list {
  display: flex;
  gap: .75rem;
  padding-bottom: .5rem;
  overflow-x: auto;
}

.dash-recent__card {
  flex-shrink: 0;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  padding: .75rem;
  width: 7rem;
  text-align: center;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
  transition-timing-function: var(--default-transition-timing-function);
  transition-duration: var(--default-transition-duration);
}

@media (hover: hover) {
  .dash-recent__card:hover {
    border-color: var(--color-green-400);
  }
}

.dash-recent__image,
.dash-recent__placeholder {
  margin-inline: auto;
  margin-bottom: .5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 3.40282e38px;
}

.dash-recent__image {
  object-fit: cover;
}

.dash-recent__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green-100);
  animation: garden-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.dash-recent__emoji {
  color: var(--color-green-600);
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
}

.dash-recent__name,
.dash-recent__type {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.dash-recent__name {
  color: var(--color-gray-700);
  font-weight: var(--font-weight-medium);
}

.dash-recent__type {
  color: var(--color-gray-400);
}

@media (hover: hover) {
  .dash-recent__card:hover .dash-recent__name {
    color: var(--color-green-600);
  }
}

/* Nudges */
.dash-nudge {
  border: 1px solid;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.dash-nudge--high   { border-color: var(--color-red-300);    background-color: var(--color-red-50); }
.dash-nudge--medium { border-color: var(--color-orange-300); background-color: var(--color-orange-50); }
.dash-nudge--low    { border-color: var(--color-green-200);  background-color: var(--color-green-50); }

.dash-nudge__row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.dash-nudge__icon {
  flex-shrink: 0;
  font-size: var(--text-xl);
  line-height: var(--text-xl--line-height);
}

.dash-nudge__title {
  color: var(--color-gray-800);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-semibold);
}

.dash-nudge__body {
  margin-top: .125rem;
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

/* Suggestion and perennial cards */
.dash-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .25rem;
}

.dash-card__tags {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.dash-card__action {
  color: var(--color-green-600);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
}

.dash-card__description {
  margin-bottom: .5rem;
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.dash-card__days {
  color: var(--color-gray-400);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.dash-perennial {
  display: flex;
  gap: .75rem;
}

.dash-perennial__image {
  flex-shrink: 0;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.dash-perennial__body {
  flex-grow: 1;
}

.dash-perennial__scientific {
  margin-bottom: .5rem;
  color: var(--color-gray-400);
  font-style: italic;
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.dash-perennial__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--color-gray-500);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

/* This week / upcoming / current garden */
.dash-current__title {
  margin-bottom: .5rem;
}

.dash-current__meta {
  margin-bottom: .75rem;
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

/* Onboarding steps */
.dash-step {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.dash-step__num {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 3.40282e38px;
  background-color: var(--color-gray-200);
  color: var(--color-gray-500);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
  font-weight: var(--font-weight-medium);
}

.dash-step__num--done {
  background-color: var(--color-green-600);
  color: var(--color-white);
}

.dash-step__title {
  font-weight: var(--font-weight-medium);
}

.dash-step__body {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.dash-step__link {
  display: inline-block;
  margin-top: .25rem;
}

/* Quick actions and category tiles */
.dash-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.dash-quick__title {
  font-weight: var(--font-weight-medium);
}

.dash-quick__count {
  color: var(--color-gray-400);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.dash-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

@media (min-width: 40rem) {
  .dash-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Planning ahead */
.dash-milestone--current {
  border-color: var(--color-green-600);
  box-shadow: 0 0 0 2px var(--color-green-200);
}

.dash-milestone__header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.dash-milestone__title {
  margin-bottom: .5rem;
  color: var(--color-gray-800);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
  font-weight: var(--font-weight-medium);
}

.dash-milestone__tasks {
  margin-bottom: .5rem;
}

.dash-milestone__task {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: var(--text-sm--line-height);
}

.dash-milestone__bullet {
  flex-shrink: 0;
  margin-top: .125rem;
  color: var(--color-green-600);
}

.dash-milestone__tip {
  border-radius: var(--radius-md);
  background-color: var(--color-green-50);
  padding: .5rem;
}

.dash-milestone__tip-text {
  color: var(--color-green-700);
  font-size: var(--text-xs);
  line-height: var(--text-xs--line-height);
}

.dash-milestone__tip-label {
  font-weight: var(--font-weight-medium);
}
