/* ============================================================
   Hopla AI - Components
   components.css  (requires colors_and_type.css)
   ============================================================ */

/* ---- Primary pill button (purple, white text) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  font-size: var(--t-body);
  line-height: 1;
  border: none;
  cursor: pointer;
  border-radius: var(--r-pill);
  padding: 16px 28px;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--sh-purple);
}
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.985); }

.btn-ghost {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }

.btn-sm { padding: 11px 20px; font-size: var(--t-small); }

/* ---- Pill badges ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: var(--w-medium);
  font-size: var(--t-micro);
  line-height: 1;
  padding: 7px 13px;
  border-radius: var(--r-pill);
}
.pill-purple { background: var(--purple); color: #fff; }
.pill-tint   { background: var(--tint-strong); color: var(--purple); }
/* "Bientôt" badge */
.pill-bientot {
  background: var(--bientot-bg);
  color: var(--bientot-fg);
  font-weight: var(--w-medium);
}
.pill-outline {
  background: #fff;
  color: var(--fg2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* ---- White card container ---- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: var(--s-8);
}
.card-lg { border-radius: var(--r-lg); padding: var(--s-10); }

/* ---- App store / Google Play badges (official localized assets) ---- */
.store-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
/* --badge-h controls the shared height of BOTH badges; override per context */
.store-badge2 {
  --badge-h: 56px;
  position: relative;
  display: inline-flex;
  height: var(--badge-h);
}
.store-badge2 img {
  height: var(--badge-h);
  width: auto;
  display: block;
}
/* LIVE: clickable, soft shadow that follows the rounded corners */
.store-badge2.live {
  transition: transform var(--dur) var(--ease);
  border-radius: 12px;
}
.store-badge2.live img { filter: drop-shadow(0 6px 14px rgba(60,40,110,0.16)); }
.store-badge2.live:hover { transform: translateY(-2px); }
/* Google Play badge PNG carries ~23% baked-in vertical padding, so at equal
   height its visible box reads smaller than the App Store SVG. Scale it up to
   match. */
.store-badge2.live img[src*="googleplay"] { transform: scale(1.3); }
/* COMING SOON: greyed, no shadow, not clickable */
.store-badge2.soon {
  pointer-events: none;
  cursor: default;
}
.store-badge2.soon img { filter: grayscale(1); opacity: 0.55; transform: scale(1.08); }
/* the intentional "Bientôt" pill, top-right corner */
.store-badge2 .soon-pill {
  position: absolute;
  top: -7px;
  right: -6px;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(124,58,237,0.38);
  pointer-events: none;
}
@media (max-width: 480px) {
  .store-badges { flex-direction: column; }
}

/* ---- Star mascot (simple, friendly) ---- */
.hopla-star {
  display: inline-block;
  color: var(--purple);
}

/* ---- Wordmark ---- */
.wordmark {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.wordmark .dot { color: var(--purple); }
