/* goonlab — the two things a visitor bots are open to can make
   (docs/bots/spec/69-editing-copying-more-pictures-and-the-homepage.md,
   section 4): the homepage's two buttons (templates/core/home.html) and the
   page behind "Studio" (templates/core/make.html). Loaded by those two pages
   only, and on the homepage only for such a visitor. It is not in the site's
   own goonlab.css: that file's content is part of the ?v= value every page
   asks for the site's files with (core.context_processors.STATIC_REV), and
   every other visitor's pages must stay exactly as they were. */

/* the homepage: the two buttons side by side in the studio banner's own
   box, each with its sentence under it; on a narrow screen one under the
   other (mobile.css stacks .home-cta and widens its buttons below 600px) */
.home-make { align-items: stretch; }
.home-make-choice {
  flex: 1 1 16rem; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem;
}
@media (max-width: 599px) {
  .home-make-choice { flex: none; }
}

/* the page behind "Studio" (templates/core/make.html): a video and a
   livestream bot as two equal cards side by side, each with a drawing, its
   name, one line, three short facts and its button at the foot; the whole
   card answers a press (the button's area is stretched over it). One under
   the other on a narrow screen; on a phone the drawing shrinks to a small box
   beside the name, so that both cards fit above the tab bar. */
.make-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.make-pick {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  padding: 1.5rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.15s ease;
}
.make-pick:hover { border-color: var(--accent-dim); }
.make-pick-pic { height: 7.5rem; aspect-ratio: 16 / 9; margin-bottom: 0.25rem; }
.make-pick-art { display: block; width: 100%; height: 100%; }
.make-art-line { fill: none; stroke: #705f86; stroke-width: 3; }
.make-art-thin { fill: none; stroke: #705f86; stroke-width: 3; stroke-linecap: round; }
.make-art-accent { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.make-art-accent-fill { fill: var(--accent); }
.make-art-violet-fill { fill: #8b5cf6; }
.make-pick-name { font-size: 1.25rem; margin: 0; }
.make-pick-line { margin: 0; color: var(--text); font-size: 1rem; line-height: 1.5; }
/* the bot's card: the maker's share under its first line, in the accent
   colour and bold (docs/bots/spec/98, section 3, point 3) */
.make-pick-earn { margin: 0; color: var(--accent); font-weight: 700; font-size: 1rem; line-height: 1.5; }
.make-pick-facts {
  list-style: none; margin: 0 0 0.5rem; padding: 0;
  display: grid; gap: 0.5rem;
  color: var(--muted); font-size: 1rem; line-height: 1.4;
}
.make-pick-facts li { position: relative; padding-left: 1.1rem; }
.make-pick-facts li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.5em;
  width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent);
}
.make-pick .make-pick-go { position: static; margin-top: auto; }
.make-pick-go::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.make-prices { margin-top: 1.5rem; text-align: center; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 720px) {
  .make-picks { grid-template-columns: 1fr; gap: 1rem; }
  .make-pick .make-pick-go { align-self: stretch; }
}
@media (max-width: 599px) {
  .make-pick {
    display: grid; grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-areas: "pic name" "line line" "facts facts" "go go";
    align-items: center; gap: 0.5rem 0.75rem; padding: 1rem;
  }
  .make-pick-pic { grid-area: pic; width: 4.5rem; height: auto; margin-bottom: 0; }
  .make-pick-name { grid-area: name; }
  .make-pick-line { grid-area: line; }
  /* the bot's card holds one line more: the maker's share, under its first */
  .make-pick:has(> .make-pick-earn) {
    grid-template-areas: "pic name" "line line" "earn earn" "facts facts" "go go";
  }
  .make-pick-earn { grid-area: earn; }
  .make-pick-facts { grid-area: facts; margin-bottom: 0.25rem; }
  .make-pick .make-pick-go { grid-area: go; width: 100%; }
}

/* the second card of the page behind "Studio", "An interactive video"
   (docs/bots/spec/125, section 7): the mark "New" beside its name, in the look
   of the launch pop-up's "New" (static/bots/launch.css .bots-launch-new, and
   the catalog tab's .catalog-tab-mark in css/goonlab.css); and the big mark
   "FREE", a badge filled with the accent colour and larger than "New". From
   960px "FREE" stands in the card's top right corner, beside the drawing; on
   a narrower screen it has a line of its own under the name. It takes no
   press: the card's own link lies under it. */
.make-pick-mark {
  display: inline-flex; align-items: center; vertical-align: middle;
  margin-left: 0.4rem; padding: 0 0.5rem;
  border: 1px solid var(--accent-dim); border-radius: 999px;
  background: linear-gradient(var(--tint), var(--tint)), var(--panel);
  color: var(--accent); font-size: 0.75rem; font-weight: 800; line-height: 1.5;
}
.make-pick-free {
  margin: 0; padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 4px var(--glow);
  font-size: 1.25rem; font-weight: 800; letter-spacing: 0.06em; line-height: 1.3;
  pointer-events: none;
}
@media (min-width: 960px) {
  .make-pick-free { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 1; }
}
@media (max-width: 599px) {
  .make-pick:has(> .make-pick-free) {
    grid-template-areas: "pic name" "free free" "line line" "earn earn" "facts facts" "go go";
  }
  .make-pick-free { grid-area: free; justify-self: start; }
}
