/* Grayl share-page styles.
 *
 * Dark theme matching the iOS app — Hanken Grotesk via Google Fonts,
 * gray950 background, simple stack layout. The share page is meant to
 * read instantly and route the visitor to the App Store, not to be a
 * standalone website. Two surfaces: the centered card (preview) and
 * the bottom CTA. */

:root {
  --bg:           #0c0c0c;  /* gray950 */
  --surface:      #1a1a1a;  /* gray900 */
  --text:         rgba(255, 255, 255, 1.0);
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary:  rgba(255, 255, 255, 0.4);
  --accent:       #7BF1A8;  /* successGreen */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 24px;
  gap: 24px;
  min-height: 100vh;
}

/* Brand mark — sits at the top of every share page so visitors who
 * land here from a tap-through know which app this is.
 * The SVG itself carries the rainbow gradient + sticker glow. */
.brand-mark {
  width:  56px;
  height: auto;
  display: block;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  background-size: cover;
  background-position: center;
}

.card-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 14px;
  font-weight: 500;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.15;
}

.card-meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.card-description {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
}

.private-pill {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

/* CTA — rainbow gradient pill matching the iOS app's accent
 * gradient (`LinearGradient.accent` in DesignTokens.swift). 134°
 * top-leading → bottom-trailing direction; same colour stops as
 * the app so the brand reads consistent across surfaces. */
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 480px;
  height: 56px;
  color: #000;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 28px;
  background: linear-gradient(
    134deg,
    #F7F5FA 0%,
    #FECCE5 10%,
    #D9B4FE 20%,
    #73EAFE 30%,
    #C5F4E0 40%,
    #F7F5FA 50%,
    #FEFACA 60%,
    #FCE7BC 70%,
    #FECCE5 80%,
    #D9B4FE 90%,
    #FECCE5 100%
  );
  box-shadow: 0 8px 24px rgba(255, 200, 230, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.cta:active {
  transform: scale(0.98);
}

.footnote {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  max-width: 320px;
}

/* Avatar profiles get circular, not square covers. */
.card-image.avatar {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  margin: 24px auto 0;
}
