/* The story card (business_hub/story_cards): a 9:16 card on the hero colour, made to be
   screenshotted on a phone and posted. Theme-independent like the landing hero. */

@layer components {
  .story {
    min-height: 100dvh;
    margin: 0;
    background: var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .story_help {
    width: 100%;
    max-width: 480px;
    margin: 0;
    padding: 0.75rem var(--content-padding);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
  }

  .story_help_back {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
  }

  .story_card {
    width: min(100vw, 480px);
    aspect-ratio: 9 / 16;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: linear-gradient(180deg, var(--color-hero) 0%, var(--color-hero-floor) 100%);
    color: white;
  }

  .story_header {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    align-items: center;
  }

  .story_avatar {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-weight: var(--font-weight-bold);
  }

  .story_name {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
  }

  .story_category {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
  }

  .story_title {
    margin: 0.5rem 0 0;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    text-wrap: balance;
  }

  .story_days {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    flex: 1;
  }

  .story_day {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .story_day_name {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 0.8);
  }

  .story_day_slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .story_slot {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-pill);
    background: white;
    color: var(--color-hero);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-base);
  }

  .story_empty {
    flex: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--line-height-lg);
  }

  .story_footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .story_cta {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
  }

  .story_url {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    word-break: break-all;
  }

  .story_made_with {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);

    .story_made_with_mark {
      width: 12px;
      height: 12px;
    }
  }
}
