/* MV_SeedPhotos (#209) — the contributor's "Open the owner's shared photos"
   offer banner. Mirrors the "sent for review" banner's frame (css/contrib-submit.css)
   so the contributor's floating banners read alike, with a calm accent (this is an
   invitation, not a locked state). */

.seed-photos-offer {
  position: absolute;
  top: var(--space-sm);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(620px, calc(100% - 2 * var(--space-md)));
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.seed-photos-offer__icon {
  flex: 0 0 auto;
  font-size: var(--font-size-lg);
  line-height: 1.2;
}

.seed-photos-offer__text {
  flex: 1 1 auto;
  min-width: 0;
}

.seed-photos-offer__headline {
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.seed-photos-offer__sub {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
}

.seed-photos-offer__open {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* A quiet dismiss — present, but it doesn't compete with the primary action. */
.seed-photos-offer__dismiss {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  line-height: 1;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
}

.seed-photos-offer__dismiss:hover {
  color: var(--color-text);
  background: var(--color-surface-alt, rgba(0, 0, 0, 0.04));
}

.seed-photos-offer__dismiss:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* ---- Touch / small viewports (MOBILE/TOUCH PARITY RULE) ---- */
@media (max-width: 640px) {
  .seed-photos-offer {
    flex-wrap: wrap;
    /* room for the corner dismiss so the headline never runs under it */
    padding-right: calc(var(--space-md) + var(--touch-target-min, 44px));
  }
  .seed-photos-offer__open {
    flex: 1 1 100%;
    min-height: var(--touch-target-min, 44px);
    order: 3;
  }
  /* Anchor the dismiss to the top-right corner rather than letting it wrap to
     its own row — cleaner than a stray ✕ between the text and the button. */
  .seed-photos-offer__dismiss {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    min-width: var(--touch-target-min, 44px);
    min-height: var(--touch-target-min, 44px);
  }
}
