/**
 * ForageCast Product Recovery — summary-first, task nav, mobile polish
 * Task-nav structure lives in design-system/css/wds-platform-ui.css
 */

/* Light educational surface for FC task strip (platform structure + product paint) */
.fc-task-nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 248, 244, 0.96));
}

.fc-summary {
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2rem;
  background:
    radial-gradient(700px 320px at 10% 0%, rgba(90, 120, 80, 0.12), transparent 55%),
    radial-gradient(600px 280px at 100% 10%, rgba(180, 150, 90, 0.1), transparent 50%),
    var(--wds-bg, #f7f5f0);
  border-bottom: 1px solid var(--wds-border-subtle, #ddd);
}

.fc-summary__title {
  margin: 0.25rem 0 0.35rem;
  font-family: var(--wds-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
}

.fc-summary__question {
  margin: 0 0 0.75rem;
  color: var(--wds-text-secondary, #555);
  font-size: 1.05rem;
}

.fc-summary__subtitle {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wds-text-tertiary, #777);
}

.fc-summary__list,
.fc-brief__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fc-summary__item,
.fc-brief__item {
  padding: 0.85rem 0;
  border-top: 1px solid var(--wds-border-subtle, #e4e0d8);
}

.fc-summary__species {
  font-family: var(--wds-font-display, Georgia, serif);
  font-size: 1.25rem;
  color: inherit;
  text-decoration: none;
  margin-right: 0.5rem;
}

.fc-summary__why {
  margin: 0.35rem 0 0;
  color: var(--wds-text-secondary, #555);
  font-size: 0.95rem;
  line-height: 1.45;
}

.fc-summary__why-label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wds-text-tertiary, #777);
  margin-right: 0.25rem;
}

.fc-summary__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.fc-honesty,
.fc-freshness {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--wds-text-tertiary, #777);
}

.fc-level {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--wds-border-subtle, #ccc);
  border-radius: 0.25rem;
}

.fc-level--high {
  border-color: #6a8f5a;
  color: #3d5a35;
  background: rgba(106, 143, 90, 0.12);
}

.fc-level--moderate {
  border-color: #b08a3c;
  color: #6a5420;
  background: rgba(176, 138, 60, 0.12);
}

.fc-level--low {
  border-color: #9a7a6a;
  color: #5c4034;
  background: rgba(154, 122, 106, 0.12);
}

.fc-loading,
.fc-empty {
  padding: 2rem 1.25rem;
  color: var(--wds-text-secondary, #555);
}

.fc-species-grid,
.fc-habitat-grid,
.fc-timeline {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .fc-species-grid,
  .fc-habitat-grid,
  .fc-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fc-species-card,
.fc-habitat-card,
.fc-timeline__card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--wds-border-subtle, #ddd);
  background: var(--wds-surface, #fff);
}

.fc-species-card h2,
.fc-habitat-card h2,
.fc-timeline__card h2 {
  margin: 0 0 0.25rem;
  font-family: var(--wds-font-display, Georgia, serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.fc-timeline__phases {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.fc-timeline__phase {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--wds-border-subtle, #ccc);
  opacity: 0.55;
}

.fc-timeline__phase.is-active {
  opacity: 1;
  font-weight: 600;
  border-color: #6a8f5a;
  background: rgba(106, 143, 90, 0.12);
}

.fc-heatmap--responsive {
  width: 100%;
  min-height: 280px;
  touch-action: none;
  overscroll-behavior: contain;
}

.fc-heatmap--tall {
  min-height: min(70vh, 520px);
}

.fc-heatmap-stage {
  will-change: transform;
}

.fc-journal-form {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.fc-journal-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--wds-border-subtle, #ccc);
  min-height: 5rem;
}

.fc-today--compact .fc-today__list {
  margin-top: 0.75rem;
}

.fc-momentum {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--wds-border-subtle, #ccc);
  color: var(--wds-text-secondary, #555);
  vertical-align: middle;
}

.fc-reliability {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
  border: 1px solid var(--wds-border-subtle, #d5ddd6);
  background: rgba(255, 255, 255, 0.7);
}

.fc-reliability--ready {
  border-color: #9bb89f;
  background: rgba(232, 242, 234, 0.9);
}

.fc-reliability--cached {
  border-color: #c9b68a;
  background: rgba(250, 244, 230, 0.95);
}

.fc-reliability--offline,
.fc-reliability--provider-unavailable,
.fc-reliability--location-unavailable {
  border-color: #c9a39a;
  background: rgba(250, 236, 232, 0.95);
}

.fc-species-detail h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wds-text-tertiary, #6a6a6a);
}

.fc-species-detail ul {
  margin: 0.25rem 0 0.5rem;
  padding-left: 1.15rem;
}

@media (max-width: 720px) {
  .fc-task-nav__link,
  .wds-task-nav__link {
    min-height: 2.75rem;
    padding: 0.65rem 0.85rem;
    display: inline-flex;
    align-items: center;
  }

  .fc-summary {
    padding: 1.15rem 0.9rem 1.5rem;
  }

  .fc-summary__links .wds-btn {
    min-height: 2.75rem;
  }

  .fc-species-card {
    padding: 0.85rem 0;
  }
}

.fc-summary__opportunity {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
}

.fc-insight-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--wds-text-secondary, #555);
  line-height: 1.5;
}

.fc-insight-list li {
  margin: 0.35rem 0;
}


@media (max-width: 640px) {
  .fc-summary__title {
    font-size: 1.85rem;
  }

  .fc-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .fc-heatmap__cell {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-heatmap-stage {
    will-change: auto;
  }
}
