/* ==========================================================================
   Activ.ie — Shared Components
   Header, footer, buttons, pills, cards, carousel, forms, badges.
   ========================================================================== */

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.activ-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  white-space: nowrap;
  transition: transform var(--dur-press) ease, background-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease, color var(--dur-hover) ease;
}
.activ-btn:active { transform: scale(0.97); }

.activ-btn--primary {
  background: var(--activ-purple);
  color: var(--white);
  box-shadow: var(--shadow-1);
}
.activ-btn--primary:hover { background: var(--activ-purple-deep); }

.activ-btn--reward {
  background: var(--activ-green);
  color: var(--white);
}
.activ-btn--reward:hover { background: var(--activ-green-deep); }

.activ-btn--secondary {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--charcoal);
}
.activ-btn--secondary:hover { background: rgba(33,26,38,0.05); }

.activ-btn--ghost {
  min-height: auto;
  padding: 0;
  color: var(--activ-purple-deep);
  font-weight: 600;
  border-radius: 4px;
}
.activ-btn--ghost .activ-arrow-glyph { transition: transform var(--dur-hover) ease; }
.activ-btn--ghost:hover .activ-arrow-glyph { transform: translateX(3px); }

.activ-btn--glow { box-shadow: var(--shadow-glow-cta); }

@media (max-width: 480px) {
  .activ-btn { width: 100%; }
  .activ-cta-row { flex-direction: column; }
  .activ-cta-row .activ-btn--ghost { width: auto; align-self: center; }
}

/* -------------------------------------------------------------------------
   Pills / tags
   ------------------------------------------------------------------------- */
.activ-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--charcoal);
  background: var(--warm-neutral);
}
.activ-pill--lilac { background: var(--soft-lilac); }
.activ-pill--green { background: var(--pale-green); }
.activ-pill--pink { background: var(--soft-pink); }
.activ-pill--blue { background: var(--muted-blue); color: var(--muted-blue-ink); }

.activ-filter-pill {
  background: var(--warm-neutral);
  border: none;
}
.activ-filter-pill[aria-pressed="true"] {
  background: var(--activ-purple);
  color: var(--white);
}

/* Defensive list/bullet reset for pill groups — belt-and-suspenders on top
   of the global `ul{list-style:none}` reset in tokens.css, in case a
   WordPress theme's own stylesheet loads with higher specificity. */
.activ-pill-row,
.activ-pill-row li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activ-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.activ-pill-row li::marker { content: none; }
.activ-pill__icon { width: 14px; height: 14px; flex-shrink: 0; }

/* -------------------------------------------------------------------------
   Icon chip — consistent rounded-outline icon-in-circle/square used across
   How-it-works, bento cards, pills and category labels.
   ------------------------------------------------------------------------- */
.activ-icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--soft-lilac);
  color: var(--activ-purple-deep);
}
.activ-icon-chip svg { width: 22px; height: 22px; }
.activ-icon-chip--sm { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.activ-icon-chip--sm svg { width: 16px; height: 16px; }
.activ-icon-chip--circle { border-radius: var(--radius-full); }
.activ-icon-chip--mint { background: var(--pale-mint); color: var(--activ-mint-deep); }
.activ-icon-chip--pink { background: var(--soft-pink); color: var(--activ-lilac-deep); }
.activ-icon-chip--blue { background: var(--muted-blue); color: var(--muted-blue-ink); }
.activ-icon-chip--on-dark { background: rgba(255,255,255,0.18); color: var(--white); }

/* -------------------------------------------------------------------------
   Card family
   ------------------------------------------------------------------------- */
.activ-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: var(--border-hairline);
  box-shadow: var(--shadow-1);
  padding: var(--space-6);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .activ-card--interactive:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
}
@media (hover: none) {
  .activ-card--interactive:active { transform: scale(0.98); }
}
.activ-card--tint-lilac { background: var(--soft-lilac); border: none; }
.activ-card--tint-green { background: var(--pale-green); border: none; }
.activ-card--tint-pink { background: var(--soft-pink); border: none; }
.activ-card--tint-blue { background: var(--muted-blue); border: none; }
.activ-card--block-purple { background: var(--activ-purple); border: none; color: var(--white); }
.activ-card--block-green { background: var(--activ-green); border: none; color: var(--white); }

.activ-card__eyebrow { margin-bottom: var(--space-3); }
.activ-card__title { font-size: var(--text-h4); margin-bottom: var(--space-2); }
.activ-card__body { color: rgba(33,26,38,0.7); font-size: var(--text-body); }
.activ-card--block-purple .activ-card__body,
.activ-card--block-green .activ-card__body { color: rgba(255,255,255,0.85); }

/* Photo-arrow card */
.activ-photo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .activ-photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
}
.activ-photo-card__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  text-align: center;
  font-size: var(--text-small);
  padding: var(--space-4);
}
.activ-photo-card__caption-pill {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
}
.activ-photo-card__arrow {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-hover) var(--ease-out), background-color var(--dur-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .activ-photo-card:hover .activ-photo-card__arrow {
    transform: rotate(45deg);
    background: var(--activ-purple);
    color: var(--white);
  }
}
.activ-photo-card__footer {
  padding: var(--space-4) var(--space-4) var(--space-6);
}

/* Placeholder media block (used wherever a real photo asset is missing) */
.activ-placeholder-media {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  padding: var(--space-4);
  font-size: var(--text-small);
  color: rgba(33,26,38,0.55);
  background: linear-gradient(135deg, var(--soft-lilac), var(--pale-green));
}
.activ-placeholder-media svg { width: 32px; height: 32px; opacity: 0.6; }
.activ-placeholder-media--pink { background: linear-gradient(135deg, var(--soft-pink), var(--soft-lilac)); }
.activ-placeholder-media--blue { background: linear-gradient(135deg, var(--muted-blue), var(--soft-lilac)); }
.activ-placeholder-media--green { background: linear-gradient(135deg, var(--pale-green), var(--muted-blue)); }

/* Stat card */
.activ-stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--activ-purple-deep);
}
.activ-stat-card--draft { border: 1.5px dashed rgba(33,26,38,0.25); background: var(--warm-neutral); }
.activ-stat-card__draft-tag {
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-blue-ink);
  background: var(--muted-blue);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: var(--space-2);
}

/* -------------------------------------------------------------------------
   Carousel
   ------------------------------------------------------------------------- */
.activ-carousel { position: relative; }
.activ-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  gap: var(--space-6);
  padding: var(--space-2) var(--page-gutter) var(--space-4);
  margin-inline: calc(var(--page-gutter) * -1);
}
.activ-carousel__viewport::-webkit-scrollbar { display: none; }
.activ-carousel__card {
  scroll-snap-align: start;
  flex: 0 0 auto;
}
@media (prefers-reduced-motion: reduce) {
  .activ-carousel__viewport { scroll-behavior: auto; }
}
.activ-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
  gap: var(--space-6);
}
.activ-carousel__buttons { display: flex; gap: var(--space-3); }
.activ-carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.activ-carousel__btn:hover { background: var(--activ-purple); color: var(--white); }
.activ-carousel__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.activ-carousel__btn:disabled:hover { background: var(--white); color: inherit; }
.activ-carousel__progress {
  flex: 1;
  max-width: 240px;
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(33,26,38,0.1);
  overflow: hidden;
}
.activ-carousel__progress-fill {
  height: 100%;
  background: var(--activ-purple);
  border-radius: var(--radius-full);
  transition: width var(--dur-hover) ease;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.activ-field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }
.activ-field label { font-size: var(--text-small); font-weight: 600; }
.activ-field input,
.activ-field textarea,
.activ-field select {
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(33,26,38,0.15);
  padding: 0 var(--space-4);
  background: var(--white);
}
.activ-field textarea { padding: var(--space-4); min-height: 120px; }
.activ-field input:focus,
.activ-field textarea:focus,
.activ-field select:focus {
  border-color: var(--activ-purple);
}
.activ-field__hint { font-size: var(--text-small); color: rgba(33,26,38,0.55); }
.activ-field--error input { border-color: var(--error); }
.activ-field__error { font-size: var(--text-small); color: var(--error); }

/* -------------------------------------------------------------------------
   Marketing header (Homepage + Research & Insights)
   ------------------------------------------------------------------------- */
.activ-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,249,252,0.9);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-hairline);
}
.activ-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.activ-header__logo { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.activ-header__logo-mark {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--activ-purple);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
/* Real logo image lockup (additive — only used where a template embeds an
   <img class="activ-header__logo-img">; the SVG mark above is untouched
   for templates that still use it). */
.activ-header__logo-img { height: 52px; width: auto; display: block; flex-shrink: 0; }
.activ-header__logo--image { gap: 0; }
.activ-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.activ-header__nav-list { display: flex; gap: var(--space-6); }
.activ-header__nav-list a {
  font-size: var(--text-small);
  font-weight: 600;
  padding: var(--space-2);
}
.activ-header__nav-list a:hover { color: var(--activ-purple-deep); }
.activ-header__actions { display: flex; align-items: center; gap: var(--space-4); }
.activ-header__menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }

@media (max-width: 1150px) {
  .activ-header__nav-list { display: none; }
  .activ-header__menu-toggle { display: flex; }
  .activ-header__actions .activ-btn--secondary { display: none; }
}
@media (max-width: 600px) {
  .activ-header__actions .activ-btn--primary { display: none; }
}

.activ-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--off-white);
  z-index: 200;
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 280ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}
.activ-mobile-menu[hidden] { display: none; }
.activ-mobile-menu.is-open { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .activ-mobile-menu { transition: none; }
}
.activ-mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.activ-mobile-menu__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.activ-mobile-menu__list { display: flex; flex-direction: column; gap: var(--space-2); }
.activ-mobile-menu__list a {
  display: block;
  padding: var(--space-4);
  font-size: var(--text-h4);
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-md);
}
.activ-mobile-menu__list a:hover { background: var(--soft-lilac); }
.activ-mobile-menu__group-label {
  font-size: var(--text-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(33,26,38,0.5);
  padding-inline: var(--space-4);
  margin-top: var(--space-4);
}

/* -------------------------------------------------------------------------
   Marketing footer
   ------------------------------------------------------------------------- */
.activ-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-20) var(--space-8);
}
.activ-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-8);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.activ-footer__brand-logo { display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; color: var(--white); margin-bottom: var(--space-4); }
.activ-footer__tagline { font-size: var(--text-small); color: rgba(255,255,255,0.6); max-width: 32ch; }
.activ-footer__col h3 { font-family: var(--font-body); font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: var(--space-4); font-weight: 600; }
.activ-footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.activ-footer__col a { font-size: var(--text-body); color: rgba(255,255,255,0.85); }
.activ-footer__col a:hover { color: var(--activ-purple); }
.activ-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-small);
  color: rgba(255,255,255,0.5);
}
.activ-footer__socials { display: flex; gap: var(--space-4); }
.activ-footer__socials a { width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.activ-footer__socials a:hover { background: var(--activ-purple); border-color: var(--activ-purple); }

@media (max-width: 1023px) {
  .activ-footer__grid { grid-template-columns: 1fr 1fr; }
  .activ-footer__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .activ-footer__grid { grid-template-columns: 1fr; }
  .activ-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* -------------------------------------------------------------------------
   Badge (Members)
   ------------------------------------------------------------------------- */
.activ-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}
.activ-badge__icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  background: var(--pale-green);
  color: var(--activ-green-deep);
}
.activ-badge--locked .activ-badge__icon {
  background: var(--warm-neutral);
  color: rgba(33,26,38,0.3);
}
.activ-badge__label { font-size: var(--text-small); font-weight: 600; }
.activ-badge--locked .activ-badge__label { color: rgba(33,26,38,0.4); }

/* -------------------------------------------------------------------------
   Sample-data banner (Members prototype honesty strip)
   ------------------------------------------------------------------------- */
.activ-sample-banner {
  background: var(--warm-neutral);
  color: var(--charcoal);
  text-align: center;
  font-size: var(--text-small);
  font-weight: 600;
  padding: var(--space-3) var(--page-gutter);
}

/* -------------------------------------------------------------------------
   Section head (heading + optional trailing link/action) — shared across
   all three pages. Stacks below 600px so a long heading never squeezes a
   trailing link into a narrow column.
   ------------------------------------------------------------------------- */
.activ-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}
@media (max-width: 600px) {
  .activ-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}
