/**
 * MyBoost shared components (Figma UI kit)
 */

/* Buttons (504:3565) */
.mb-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--mb-s2);
  min-height: var(--mb-btn-height);
  padding: 0 var(--mb-s6);
  border-radius: var(--mb-radius-pill);
  border: none;
  font-family: var(--mb-font-body);
  font-size: var(--mb-body-16);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out, ease), box-shadow 0.2s var(--ease-out, ease), transform 0.2s var(--ease-out, ease);
}

.mb-btn--primary,
.btn-primary {
  background: var(--mb-grad);
  color: var(--mb-white);
  box-shadow: var(--mb-glow-button);
}

.mb-btn--primary:hover,
.btn-primary:hover {
  background: var(--mb-grad-hover);
  box-shadow: var(--mb-glow-button);
  transform: translateY(-1px);
}

.mb-btn--primary:active,
.btn-primary:active {
  background: var(--mb-grad-active);
  transform: translateY(0);
}

.mb-btn--secondary {
  background: var(--mb-white);
  color: var(--mb-dark);
  box-shadow: var(--mb-glow-button);
}

.mb-btn--secondary:hover {
  background: var(--mb-grad-hover);
  color: var(--mb-white);
}

.mb-btn--ghost,
.btn-ghost {
  background: transparent;
  color: var(--mb-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.mb-btn--ghost:hover,
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

/* Tags / filter pills (504:3644) */
.mb-pill,
.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--mb-radius-tag);
  border: 1px solid var(--mb-white);
  background: transparent;
  color: var(--mb-white);
  font-family: var(--mb-font-body);
  font-size: var(--mb-body-14);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mb-pill:hover,
.filter-tab:hover {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--mb-white);
}

.mb-pill--active,
.mb-pill.is-active,
.filter-tab.active {
  background: var(--mb-white) !important;
  color: var(--mb-dark) !important;
  -webkit-text-fill-color: var(--mb-dark) !important;
  border-color: var(--mb-white) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Badges (504:3644 PlayStation style) */
.mb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 60px;
  background: var(--mb-surface-glass);
  color: var(--mb-white);
  font-family: var(--mb-font-body);
  font-size: var(--mb-body-14);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mb-heading {
  font-family: var(--mb-font-heading);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--mb-white);
  line-height: 1.05;
}

/* Header cart + account (theme header + Elementor mb-header) */
.header-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-action-wrap--cart {
  display: inline-flex;
  flex-shrink: 0;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--mb-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--mb-white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.header-action__icon {
  display: block;
}

.header-action__count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--mb-radius-pill);
  background: var(--mb-grad);
  color: var(--mb-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: var(--mb-glow-button);
}

.header-action-wrap--cart .header-action {
  cursor: pointer;
  font: inherit;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.header-action-wrap--cart .header-action:focus-visible,
.header-action--account:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.mb-header .header-actions {
  margin-left: 0;
}

.mb-header-actions-slot:empty {
  display: none;
}

/* Promoter / creator avatars (homepage, category, PDP panels) */
.promoter-avatar {
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111;
}

.promoter-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.promoter-card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  opacity: 1;
}

.promoter-card-link:hover,
.promoter-card-link:focus-visible {
  opacity: 1;
}

.promoter-card--linked:focus-within {
  z-index: 20;
}

.promoter-card-link:focus-visible {
  outline: none;
}

.promoter-card-link:focus-visible .promoter-card-frame {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.promoter-card:hover .promoter-card-frame,
.promoter-card--linked:focus-within .promoter-card-frame {
  background: #000;
}
