/* Forge | engagement.css — badges, streak, landing page */

/* Streak pill in the header */
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236,72,153,0.14) 0%, rgba(139,92,246,0.14) 100%);
  border: 1px solid rgba(236,72,153,0.28);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-pink);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease-in),
              box-shadow var(--t-fast) var(--ease-in);
}
.streak-pill:active { transform: scale(0.96); }
.streak-pill svg { width: 14px; height: 14px; fill: var(--accent-pink); stroke: var(--accent-pink); }
.streak-pill.done { opacity: 0.55; cursor: default; }

/* Badge unlock popup */
.badge-popup-backdrop {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(5,6,12,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in 200ms var(--ease-in);
}
.badge-popup {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: var(--sh-lg);
  animation: badge-pop 520ms var(--ease-in);
}
@keyframes badge-pop {
  0%   { opacity: 0; transform: scale(0.8) translateY(10px); }
  60%  { opacity: 1; transform: scale(1.04) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.badge-popup .bp-ring {
  width: 96px; height: 96px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--gradient-forge);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 32px rgba(79,126,255,0.32),
              0 0 0 10px rgba(79,126,255,0.10);
  animation: badge-ring-spin 4s linear infinite;
  position: relative;
}
.badge-popup .bp-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(139,92,246,0.35);
  animation: badge-ring-spin 8s linear infinite reverse;
}
@keyframes badge-ring-spin {
  to { transform: rotate(360deg); }
}
.badge-popup .bp-ring svg {
  width: 44px; height: 44px;
  animation: badge-ring-spin 4s linear infinite reverse;
  position: relative;
  z-index: 1;
}
.badge-popup .bp-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 6px;
}
.badge-popup .bp-name {
  font-size: 22px; font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.badge-popup .bp-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Same-country chip on user profile */
.same-country-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(34,197,94,0.14);
  color: var(--success);
  font-size: 11px; font-weight: 700;
}
.same-country-chip svg { width: 11px; height: 11px; }

/* Landing page */
.lp-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
.lp-hero {
  padding: 60px 20px 40px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(79,126,255,0.16), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(139,92,246,0.14), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(236,72,153,0.10), transparent 55%);
}
.lp-logo {
  width: 120px; height: 120px;
  border-radius: 28px;
  margin: 0 auto 20px;
  box-shadow: 0 20px 60px rgba(79,126,255,0.32);
}
.lp-tag {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 12px;
}
.lp-title {
  font-size: 34px; font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 560px;
  margin: 0 auto 14px;
}
.lp-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 24px;
}
.lp-cta-row {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.lp-cta-row .btn { min-width: 160px; }
.lp-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}
.lp-section h2 {
  font-size: 22px; font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.02em;
}
.lp-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 620px) {
  .lp-features { grid-template-columns: 1fr 1fr; }
}
.lp-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.lp-feature .lf-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.lp-feature .lf-icon svg { width: 20px; height: 20px; }
.lp-feature h3 {
  font-size: 16px; font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.lp-feature p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.lp-footer {
  text-align: center;
  padding: 40px 20px 60px;
  color: var(--muted-2);
  font-size: 12px;
}
.lp-footer a { color: var(--muted); margin: 0 8px; }
