/* The creators & press page (share.html). Builds on styles.css. */
.share-page main { padding-top: 48px; }
.share-page .panel + .panel { margin-top: 0; }
.note { margin-top: 18px; font-size: 0.95rem; opacity: 0.8; }
.note a, .rules a, .facts a, .share-page .lead a { color: #1f6fd1; }
.panel-navy .note a, .panel-navy .facts a { color: #1f6fd1; }
.cta-row { margin-top: 26px; }

.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.jump a {
  display: inline-block;
  padding: 0.3em 1em;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  font: 800 1.05rem/1.3 var(--display);
  text-decoration: none;
}
.jump a:hover { background: var(--yellow); }

/* Size tabs */
.fmt-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 8px; }
.fmt-tabs button {
  padding: 0.3em 1em;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: 800 1.05rem/1.3 var(--display);
  cursor: pointer;
}
.fmt-tabs button[aria-selected='true'] { background: var(--navy); color: #fff; }

/* Video cards */
.vids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 16px;
  text-align: left;
  align-items: start;
}
.vid {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  border: var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 5px 0 var(--navy);
}
.vid-group[hidden] { display: none; }
.vid-group .sub-head { margin-top: 30px; }
.vid-group .sub-head span { font-family: var(--body); font-size: 0.85em; opacity: 0.8; }
.vid-frame { overflow: hidden; border: 3px solid var(--navy); border-radius: 14px; background: var(--navy); }
.vid-frame video { width: 100%; height: 100%; object-fit: contain; }
.r9x16 { aspect-ratio: 9 / 16; }
.r1x1 { aspect-ratio: 1; }
.r4x5 { aspect-ratio: 4 / 5; }
.r16x9 { aspect-ratio: 16 / 9; }
.vid h3 { margin-top: 12px; font-size: 1.3rem; }
.vid-meta { font-size: 0.95rem; opacity: 0.75; }
.vid-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vid-btns .btn { flex: 1 1 auto; justify-content: center; padding: 0.35em 0.9em; font-size: 1.05rem; cursor: pointer; }
.btn-share, .btn-share-link, .btn-copy { background: #fff; }
.btn:disabled { cursor: progress; opacity: 0.7; transform: none; }

/* Captions */
.captions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; text-align: left; }
.captions li { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: var(--line); border-radius: 20px; background: #fff; }
.captions .btn-copy { align-self: flex-start; margin-top: auto; }
.caption-text {
  padding: 12px 14px;
  border: 2px dashed #9fb3d6;
  border-radius: 14px;
  background: #f6f9ff;
  font-size: 1rem;
  text-align: left;
  user-select: all;
  -webkit-user-select: all;
}
.hashtags { max-width: 46em; margin: 16px auto 12px; font: 800 1.15rem/1.5 var(--display); color: #1f6fd1; }
.btn-copy { font-size: 1.05rem; padding: 0.35em 1.2em; cursor: pointer; }
.facts-tiles { margin-top: 16px; }

/* Your link */
.link-maker { max-width: 620px; margin: 28px auto 0; padding: 20px; border: var(--line); border-radius: 22px; background: #fff; text-align: left; }
.link-maker label { font: 800 1.15rem/1.3 var(--display); }
.link-row { display: flex; align-items: center; margin-top: 8px; border: 3px solid var(--navy); border-radius: 14px; background: #f6f9ff; }
.link-row .at { padding: 0 4px 0 14px; font: 800 1.3rem/1 var(--display); opacity: 0.6; }
.link-row input { flex: 1; min-width: 0; padding: 12px 12px 12px 2px; border: 0; background: transparent; color: var(--navy); font: 700 1.1rem/1.2 var(--body); outline: none; }
.link-row:focus-within { outline: 4px solid var(--yellow); outline-offset: 2px; }
.link-out { display: block; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--navy); color: #fff; font: 700 0.95rem/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.link-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.link-btns .btn { cursor: pointer; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.social-links a {
  display: inline-block;
  padding: 0.35em 1.1em;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 var(--navy);
  font: 800 1.05rem/1.3 var(--display);
  text-decoration: none;
}
.social-links a:hover { background: var(--yellow); }

/* Creators */
.rules { max-width: 46em; margin: 16px auto 0; text-align: left; }
.rules li { padding: 10px 0 10px 34px; position: relative; border-bottom: 2px dashed #f0c79a; }
.rules li::before { content: '\2714'; position: absolute; left: 4px; top: 9px; color: #2fb457; font-size: 1.15rem; }

/* Press kit */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; text-align: left; }
.press-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: var(--line); border-radius: 22px; background: var(--cream); }
.press-card .btn-copy { align-self: flex-start; }
.about-label { margin-top: 6px; font: 800 1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 1rem; }
.facts dt { font-family: var(--display); font-weight: 800; }
.facts dd { margin: 0; }
.asset-grid { display: grid; gap: 14px; margin-top: 16px; }
.asset-logos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.asset-chars { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.asset-shots { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.asset-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 8px 8px 10px;
  border: 3px solid var(--navy);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 0 var(--navy);
  font: 800 0.95rem/1.25 var(--display);
  text-decoration: none;
  transition: transform 0.15s;
}
.asset-grid a:hover { transform: translateY(-3px); }
.asset-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 10px; background: #e9f4ff; }
.asset-chars img { aspect-ratio: 1; }
.asset-grid span { margin-top: 8px; }
.asset-grid span::after { content: ' \2193'; }

.toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  padding: 10px 22px;
  transform: translate(-50%, 140%);
  border: var(--line);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 0 5px 0 var(--navy);
  font: 800 1.1rem/1.3 var(--display);
  visibility: hidden;
  transition: transform 0.25s, visibility 0.25s;
  pointer-events: none;
}
.toast.on { transform: translate(-50%, 0); visibility: visible; }

@media (max-width: 520px) {
  .vids { grid-template-columns: 1fr 1fr; gap: 12px; }
  .vid-group .sub-head { padding: 0.15em 0.9em; border-radius: 22px; }
  .vid-group .sub-head span { font-size: 0.75em; }
  .vid { padding: 8px 8px 12px; border-radius: 18px; }
  .vid h3 { font-size: 1.05rem; }
  .vid-btns .btn { font-size: 0.95rem; padding: 0.3em 0.6em; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .asset-grid a { transition: none; }
}
