/* Shared editorial campaign presentation. Campaign values remain server-owned. */
/* Preserve the top-right BarZaBar logo on this campaign's landing banner. */
body[data-campaign-presentation] .landing-campaign-card[data-banner-top] .landing-campaign-cover img {
  object-position: center top;
}

/* Brand campaign cards share the landing cards' border/glow response.
   Keep the existing geometry and preserve each theme's base surfaces. */
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved :is(.open-campaigns, .invite-campaigns, .invite-placeholder) {
  background: transparent;
}
/* Give card shadows room above, below and to the left of the scroll area.
   Negative margins preserve the cards' alignment with the section heading. */
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .campaign-grid {
  padding-block: 48px;
  margin-block: -48px;
  padding-left: 48px;
  margin-left: -48px;
  scroll-padding-left: 48px;
}
/* Keep adjacent controls above the scroller's transparent glow allowance. */
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved :is(.section-toolbar, .invite-campaigns) {
  position: relative;
  z-index: 1;
}
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign:not([data-recommended]):is(:hover, :focus-within) {
  border-color: #c4b5fd;
  box-shadow: 0 18px 44px rgb(76 47 124 / 12%), 0 0 34px rgb(139 92 246 / 20%);
}
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign:not([data-recommended]):is(:hover, :focus-within) .campaign-footer .primary:not(:disabled) {
  box-shadow: 0 8px 22px rgb(109 40 217 / 26%), inset 0 1px 0 rgb(255 255 255 / 20%);
}
html[data-theme="dark"] body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign:not([data-recommended]):is(:hover, :focus-within) {
  border-color: #9874d8;
  box-shadow: 0 10px 28px rgb(0 0 0 / 18%), 0 0 30px rgb(139 92 246 / 17%);
}
@media (prefers-reduced-motion: reduce) {
  html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign {
    transition: none;
  }
}

body[data-campaign-presentation] {
  --campaign-gold-base: linear-gradient(110deg, #61380d 0%, #98651b 25%, #a16e24 43%, #714310 60%, #9d6a20 83%, #61380d 100%);
}
html[data-theme="dark"] body[data-campaign-presentation] {
  --campaign-gold-base: linear-gradient(110deg, #d5a950 0%, #e5c37e 25%, #f8df9e 43%, #bc8d3e 60%, #e6c175 83%, #d5a950 100%);
}

body[data-campaign-presentation] .campaign-reward-gold {
  display: inline-block;
  font: inherit;
  color: #805015;
  background-image: var(--campaign-gold-base);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body[data-campaign-presentation] .campaign-deadline-pulse {
  --campaign-deadline-base: #77737e;
  display: inline-block;
  font: inherit;
  color: var(--campaign-deadline-base);
  transform-origin: right center;
  animation: campaignDeadlinePulse 2.6s ease-in-out infinite;
}
html[data-theme="dark"] body[data-campaign-presentation] .campaign-deadline-pulse {
  --campaign-deadline-base: #b9b2c4;
}
@keyframes campaignDeadlinePulse {
  0%, 12%, 62%, 100% { color: var(--campaign-deadline-base); scale: 1; }
  37% { color: #c85059; scale: 1.075; }
}

html[data-theme="dark"] body[data-campaign-presentation] .campaign-reward-gold {
  color: #f5ca70;
  background-image: var(--campaign-gold-base);
}

html[data-theme] body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .marketplace-detail-title.campaign-recommended-title {
  color: transparent;
  background-image: var(--campaign-gold-base);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  body[data-campaign-presentation] .campaign-deadline-pulse {
    animation: none;
  }
}

@media (forced-colors: active) {
  body[data-campaign-presentation] .campaign-deadline-pulse {
    animation: none;
    color: CanvasText;
  }
  html[data-theme] body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .marketplace-detail-title.campaign-recommended-title {
    color: CanvasText;
    background-image: none;
  }
  body[data-campaign-presentation] .campaign-reward-gold {
    animation: none;
    color: CanvasText;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

body[data-campaign-presentation] .landing-campaign-card[data-recommended] {
  border-width: 2.7px;
  border-color: #c3a05a;
  box-shadow: 0 0 0 1px rgb(174 130 49 / 14%), 0 12px 32px rgb(134 91 24 / 12%);
  background: linear-gradient(155deg, #fff 45%, #fffaf0);
}
body[data-campaign-presentation] .landing-campaign-card[data-recommended]:is(:hover, :focus-within) {
  border-color: #ab7c2c;
  box-shadow: 0 0 0 1px rgb(174 130 49 / 22%), 0 12px 32px rgb(134 91 24 / 16%);
  outline-color: rgb(174 130 49 / 30%);
}

.campaign-recommendation-labels {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
/* Saved original purple recommendation badge (before the gold theme):
   background: linear-gradient(120deg, #6D28D9, #8B5CF6);
   color: #FFFFFF;
   border: 1px solid rgb(233 213 255 / 65%);
   box-shadow: 0 3px 10px rgb(45 12 88 / 18%);
   Star color: #E9D5FF.
   The existing campaignRecommendationShine animation was used unchanged.
*/
body[data-campaign-presentation] .campaign-recommended-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgb(255 233 178 / 75%);
  border-radius: 999px;
  color: #38230b;
  background: linear-gradient(115deg, #bd903d 0%, #e3c477 32%, #f4dfa1 49%, #c89d4a 74%, #dfbe71 100%);
  box-shadow: 0 3px 10px rgb(83 53 12 / 18%);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}
body[data-campaign-presentation] .campaign-recommended-badge > span {
  color: #6a410d;
  font-size: 13px;
}
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended] {
  --creator-btn-primary-bg: linear-gradient(115deg, #bd903d 0%, #e3c477 32%, #f4dfa1 49%, #c89d4a 74%, #dfbe71 100%);
  --creator-btn-primary-shadow: 0 6px 18px rgb(134 91 24 / 20%), inset 0 1px 0 rgb(255 246 216 / 65%);
  --creator-accent: #ab7c2c;
  border-width: 2.7px;
  border-color: #c3a05a;
  box-shadow: 0 0 0 1px rgb(174 130 49 / 14%), 0 8px 25px rgb(134 91 24 / 11%);
  background: linear-gradient(155deg, #fff 45%, #fffaf0);
}
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended]:is(:hover, :focus-within) {
  border-color: #ab7c2c;
  box-shadow: 0 0 0 1px rgb(174 130 49 / 22%), 0 18px 44px rgb(134 91 24 / 22%);
  outline-color: rgb(174 130 49 / 30%);
}
html[data-theme="dark"] body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended]:is(:hover, :focus-within) {
  box-shadow: 0 0 0 1px rgb(174 130 49 / 22%), 0 10px 28px rgb(195 160 90 / 22%);
}

body[data-campaign-presentation] .landing-campaign-card[data-recommended] .landing-campaign-join,
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended] .campaign-footer .primary {
  position: relative;
  overflow: hidden;
  color: #38230b;
  border-color: #c3a05a;
  background: linear-gradient(115deg, rgb(189 144 61 / 95%) 0%, rgb(227 196 119 / 95%) 32%, rgb(244 223 161 / 95%) 49%, rgb(200 157 74 / 95%) 74%, rgb(223 190 113 / 95%) 100%);
  box-shadow: 0 6px 18px rgb(134 91 24 / 20%), inset 0 1px 0 rgb(255 246 216 / 65%);
}
body[data-campaign-presentation] .landing-campaign-card[data-recommended] .landing-campaign-join:is(:hover, :focus-visible, :active):not(:disabled),
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended] .campaign-footer .primary:is(:hover, :focus-visible, :active):not(:disabled) {
  color: #38230b;
  border-color: #ab7c2c;
  background: linear-gradient(115deg, rgb(200 155 72 / 95%) 0%, rgb(236 208 139 / 95%) 32%, rgb(248 231 185 / 95%) 49%, rgb(213 174 91 / 95%) 74%, rgb(233 203 134 / 95%) 100%);
  box-shadow: 0 8px 22px rgb(134 91 24 / 24%), inset 0 1px 0 rgb(255 246 216 / 75%);
  outline-color: #ab7c2c;
}
.campaign-cover-row {
  position: absolute;
  z-index: 2;
  inset-inline: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign .campaign-cover-row > .platforms {
  position: static;
  margin: 0;
  transform: none;
}
@media (max-width: 600px) {
  .campaign-cover-row { inset-inline: 10px; bottom: 10px; gap: 6px; }
  body[data-campaign-presentation] .campaign-cover-row .campaign-recommended-badge { padding-inline: 8px; font-size: 11px; }
}
html[data-theme="dark"] body[data-campaign-presentation] .live-campaign[data-recommended] {
  --brand-border: #c3a05a;
}
html[data-theme="dark"] body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended] {
  background: linear-gradient(155deg, rgb(195 160 90 / 9%), rgb(195 160 90 / 3%)), var(--creator-surface-1);
}

/* Only the join action has a moving shine; badges and reward text are static. */
body[data-campaign-presentation] .landing-campaign-card[data-recommended] .landing-campaign-join:not(:disabled)::after,
html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended] .campaign-footer .primary:not(:disabled)::after {
  content: "";
  display: block;
  position: absolute;
  inset-block: 0;
  left: -45%;
  right: auto;
  width: 40%;
  height: auto;
  opacity: 1;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / 18%), transparent);
  pointer-events: none;
  animation: campaignJoinShine 2.6s ease-in-out infinite;
  transition: none;
}

@keyframes campaignJoinShine {
  0%, 12% { transform: translateX(0); }
  62%, 100% { transform: translateX(365%); }
}

@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  body[data-campaign-presentation] .landing-campaign-card[data-recommended] .landing-campaign-join:not(:disabled)::after,
  html body.creator-app[data-campaign-presentation] [data-inf-view="campaign-marketplace"] .brand-library-approved .live-campaign[data-recommended] .campaign-footer .primary:not(:disabled)::after {
    animation: none;
    display: none;
  }
}
