/*
 * Task #1440047: Smart Product CTAs — all remaining pages
 * page-cta-1440047.css
 *
 * Shared styles for the .pcta-* component family.
 * Used on: games, community, news, blog, ask, wins, guides, tools,
 *          squad, category, state, profile pages.
 *
 * Design: white card, emerald accent, Fortune 500 grade, mobile-first.
 */

/* ── Banner card (end-of-content + standalone) ───────────────────────────── */
.pcta-banner {
  background: #ffffff;
  border: 1.5px solid rgba(0, 179, 125, 0.25);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

/* Subtle left accent bar */
.pcta-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #00B37D 0%, #009966 100%);
  border-radius: 14px 0 0 14px;
}

/* Badge chip above headline */
.pcta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 179, 125, 0.08);
  border: 1px solid rgba(0, 179, 125, 0.22);
  color: #00875A;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.pcta-body {
  flex: 1;
  min-width: 200px;
}

.pcta-headline {
  font-size: 1rem;
  font-weight: 800;
  color: #0A0A0A;
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.pcta-sub {
  font-size: 0.82rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* ── Button cluster ──────────────────────────────────────────────────────── */
.pcta-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pcta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.5rem 1.15rem;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  cursor: pointer;
  line-height: 1.3;
}

/* Primary: emerald filled */
.pcta-btn-primary {
  background: #00B37D;
  color: #ffffff;
  border: 2px solid #00B37D;
}
.pcta-btn-primary:hover,
.pcta-btn-primary:focus-visible {
  background: #009966;
  border-color: #009966;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 179, 125, 0.35);
  transform: translateY(-1px);
}

/* Secondary: ghost emerald */
.pcta-btn-secondary {
  background: #ffffff;
  color: #065f46;
  border: 2px solid rgba(0, 179, 125, 0.4);
}
.pcta-btn-secondary:hover,
.pcta-btn-secondary:focus-visible {
  background: #f0fdf4;
  border-color: #00B37D;
  color: #065f46;
}

/* Price pill inside button */
.pcta-price {
  font-size: 0.77rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 0.08rem 0.4rem;
  white-space: nowrap;
}
.pcta-btn-secondary .pcta-price {
  background: rgba(0, 179, 125, 0.1);
  color: #065f46;
}

/* ── Compact inline strip (mid-article / mid-content callout) ─────────────── */
.pcta-strip {
  background: #f0fdf4;
  border-left: 3px solid #00B37D;
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.pcta-strip-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #064e3b;
  flex: 1;
  min-width: 160px;
}

.pcta-strip-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.pcta-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
  transition: background 0.14s, border-color 0.14s;
  cursor: pointer;
}

.pcta-strip-btn-primary {
  background: #00B37D;
  color: #ffffff;
  border: 1.5px solid #00B37D;
}
.pcta-strip-btn-primary:hover { background: #009966; border-color: #009966; color: #fff; }

.pcta-strip-btn-secondary {
  background: #ffffff;
  color: #065f46;
  border: 1.5px solid rgba(0, 179, 125, 0.45);
}
.pcta-strip-btn-secondary:hover { background: #dcfce7; border-color: #00B37D; }

/* ── Profile/account upgrade block ───────────────────────────────────────── */
.pcta-upgrade-block {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid rgba(0, 179, 125, 0.3);
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.pcta-upgrade-block .pcta-headline {
  font-size: 1.1rem;
}

.pcta-upgrade-block .pcta-actions {
  justify-content: center;
  margin-top: 1rem;
}

/* ── Savings/upsell note ─────────────────────────────────────────────────── */
.pcta-upsell-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.5rem 0 0;
  line-height: 1.4;
  width: 100%;
}

/* ── GA4 impression observer wrapper (invisible) ─────────────────────────── */
.pcta-observe {
  display: contents;
}

/* ── Mobile: stack below 600px ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pcta-banner {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.1rem 1rem 1.4rem;
  }

  .pcta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .pcta-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }

  .pcta-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .pcta-strip-actions {
    flex-direction: column;
    width: 100%;
  }

  .pcta-strip-btn {
    width: 100%;
    justify-content: center;
    padding: 0.45rem 1rem;
  }
}

/* ── Dark/override: ensure white bg on coloured section parents ─────────── */
@media (prefers-color-scheme: light) {
  .pcta-banner { background: #ffffff; }
}
