/**
 * SoleTrend announcement popup — front-end styles.
 *
 * Scoped under .stpop-* and rendered OUTSIDE .soletrend-app, so the theme's
 * button-neutralizer / heading overrides (see CLAUDE.md) never touch it.
 * Brand palette: --ink #14130F, --cream #F6F3EC, --red #D91E26.
 */

.stpop-lock {
  overflow: hidden;
}

.stpop-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(20, 19, 15, 0.72);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: stpop-fade 0.2s ease-out;
}

@keyframes stpop-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.stpop-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #f6f3ec;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  animation: stpop-pop 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stpop-pop {
  from { transform: translateY(24px) scale(0.94); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* Fixed portrait 4:5 box so mismatched uploads still look uniform; all
   images are stacked inside and crossfaded by opacity. */
.stpop-imgframe {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #ede8dc;
  overflow: hidden;
}

.stpop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.stpop-img.is-active {
  opacity: 1;
}

.stpop-cta {
  display: block;
  margin: 14px 16px 18px;
  padding: 13px 18px;
  text-align: center;
  background: #d91e26;
  color: #fff !important;
  font-family: 'Barlow Condensed', 'Barlow', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 9px;
  transition: background 0.15s ease;
}

.stpop-cta:hover,
.stpop-cta:focus {
  background: #a5171d;
}

.stpop-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  background: rgba(20, 19, 15, 0.55);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.stpop-close:hover,
.stpop-close:focus {
  background: rgba(20, 19, 15, 0.85);
}

/* Bottom controls bar: ‹  • • •  ›  on one line, below the CTA. */
.stpop-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 2px 0 16px;
}

.stpop-nav {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #14130f;
  background: #ede8dc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.stpop-nav:hover,
.stpop-nav:focus {
  background: #d91e26;
  color: #fff;
}

.stpop-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.stpop-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(20, 19, 15, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.stpop-dot.is-active {
  background: #d91e26;
  transform: scale(1.25);
}

@media (max-width: 480px) {
  .stpop-overlay { padding: 16px; }
  .stpop-card { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .stpop-overlay,
  .stpop-card {
    animation: none;
  }
  .stpop-img {
    transition: none;
  }
}
