/*
 * Task #1440040: Smart Product CTAs — All Remaining Pages
 * Owns: CTA blocks on games, community, news, blog, ask, wins, guides,
 *       tools, squad, categories, states, profiles
 * Does NOT own: settlement detail, browse sidebar, bounty, claim-of-the-day
 */

/* ── Shared CTA card shell ────────────────────────────────────────────── */
.sr-page-cta {
  background: #fff;
  border: 1.5px solid rgba(0, 179, 125, 0.30);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
}

.sr-page-cta-eyebrow {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00875A;
  margin-bottom: 0.35rem;
}

.sr-page-cta-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.sr-page-cta-sub {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.83rem;
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

/* ── Pill buttons row ─────────────────────────────────────────────────── */
.sr-page-cta-pills {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.sr-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 100px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.42rem 1rem;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.12s;
  cursor: pointer;
  line-height: 1.3;
  border: 1.5px solid transparent;
}

/* Primary green */
.sr-cta-pill-green {
  background: #00B37D;
  color: #fff;
  border-color: #00B37D;
}
.sr-cta-pill-green:hover, .sr-cta-pill-green:focus-visible {
  background: #009966;
  border-color: #009966;
  color: #fff;
  transform: translateY(-1px);
}

/* Primary blue */
.sr-cta-pill-blue {
  background: #1a56db;
  color: #fff;
  border-color: #1a56db;
}
.sr-cta-pill-blue:hover, .sr-cta-pill-blue:focus-visible {
  background: #1447c0;
  border-color: #1447c0;
  color: #fff;
  transform: translateY(-1px);
}

/* Primary indigo / Pro */
.sr-cta-pill-indigo {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}
.sr-cta-pill-indigo:hover, .sr-cta-pill-indigo:focus-visible {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
  transform: translateY(-1px);
}

/* Amber / games */
.sr-cta-pill-amber {
  background: #d97706;
  color: #fff;
  border-color: #d97706;
}
.sr-cta-pill-amber:hover, .sr-cta-pill-amber:focus-visible {
  background: #b45309;
  border-color: #b45309;
  color: #fff;
  transform: translateY(-1px);
}

/* Secondary ghost */
.sr-cta-pill-ghost {
  background: #fff;
  color: #374151;
  border-color: #d1d5db;
}
.sr-cta-pill-ghost:hover, .sr-cta-pill-ghost:focus-visible {
  background: #f9fafb;
  color: #111827;
  transform: translateY(-1px);
}

/* Badge inside pill */
.sr-cta-pill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255,255,255,0.22);
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
  white-space: nowrap;
}
.sr-cta-pill-green .sr-cta-pill-badge { background: rgba(255,255,255,0.25); }
.sr-cta-pill-ghost .sr-cta-pill-badge { background: #f3f4f6; color: #374151; }

/* ── Pro upgrade banner (wide / hero style) ──────────────────────────── */
.sr-pro-upgrade-bar {
  background: linear-gradient(135deg, #f0fdf9 0%, #eff6ff 100%);
  border: 1.5px solid rgba(0, 179, 125, 0.25);
  border-radius: 14px;
  padding: 1.4rem 1.75rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sr-pro-upgrade-bar-text h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}

.sr-pro-upgrade-bar-text p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.83rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
}

.sr-pro-upgrade-bar-ctas {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ── Inline accent CTA (mid-content insert) ──────────────────────────── */
.sr-inline-cta {
  background: #f8fafc;
  border-left: 4px solid #00B37D;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sr-inline-cta-text {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.4;
}
.sr-inline-cta-text span {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: 0.2rem;
}

/* ── Squad / group bundle card ───────────────────────────────────────── */
.sr-squad-cta {
  background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  text-align: center;
}

.sr-squad-cta-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.sr-squad-cta h3 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 0.35rem;
}

.sr-squad-cta p {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.83rem;
  color: #6b7280;
  margin: 0 0 0.9rem;
  line-height: 1.4;
}

/* ── Games XP banner ─────────────────────────────────────────────────── */
.sr-game-cta {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1.5px solid rgba(217, 119, 6, 0.3);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sr-game-cta-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.sr-game-cta-body {
  flex: 1;
  min-width: 0;
}

.sr-game-cta-body strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #92400e;
  display: block;
  margin-bottom: 0.2rem;
}

.sr-game-cta-body span {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #b45309;
  line-height: 1.35;
}

/* ── Profile tier upgrade banner ─────────────────────────────────────── */
.sr-profile-upgrade {
  background: linear-gradient(135deg, #f0fdf9 0%, #eff6ff 100%);
  border: 1.5px solid rgba(0, 179, 125, 0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sr-profile-upgrade-text {
  flex: 1;
  min-width: 0;
}

.sr-profile-upgrade-text strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d1d1f;
  display: block;
  margin-bottom: 0.15rem;
}

.sr-profile-upgrade-text span {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.35;
}

/* ── Email capture mini bar ──────────────────────────────────────────── */
.sr-page-email-bar {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sr-page-email-bar-text {
  flex: 1;
  min-width: 140px;
}

.sr-page-email-bar-text strong {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d1d1f;
  display: block;
}

.sr-page-email-bar-text span {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
}

.sr-page-email-bar form {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.sr-page-email-bar input[type="email"] {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.83rem;
  padding: 0.42rem 0.75rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  min-width: 200px;
}
.sr-page-email-bar input[type="email"]:focus {
  border-color: #00B37D;
}

.sr-page-email-bar button {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 0.42rem 1rem;
  border: none;
  border-radius: 8px;
  background: #00B37D;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s;
}
.sr-page-email-bar button:hover { background: #009966; }

/* ── Mobile responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .sr-page-cta {
    padding: 1rem 1.1rem;
    margin: 1.25rem 0;
  }

  .sr-page-cta-title { font-size: 0.95rem; }

  .sr-cta-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .sr-pro-upgrade-bar {
    padding: 1.1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .sr-pro-upgrade-bar-ctas {
    flex-direction: column;
    width: 100%;
  }

  .sr-cta-pill {
    width: 100%;
    justify-content: center;
  }

  .sr-game-cta {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.75rem;
  }

  .sr-squad-cta h3 { font-size: 0.95rem; }

  .sr-page-email-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .sr-page-email-bar form { width: 100%; }
  .sr-page-email-bar input[type="email"] { min-width: 0; width: 100%; }

  .sr-inline-cta { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 375px) {
  .sr-page-cta { padding: 0.9rem 1rem; }
  .sr-pro-upgrade-bar { padding: 1rem; }
  .sr-squad-cta { padding: 1rem; }
}
