/* Sell on Gmingo page + Home page promo cards: smooth scroll, animations, hover effects */

/* Smooth scroll for whole page */
html { scroll-behavior: smooth; }

/* ===== Home page: Promo / Quick links row ===== */
.home-promo-wrapper {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  overflow-x: hidden;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
/* Override app.css: ensure promo section and cards are always visible */
.home-promo-wrapper,
.home-promo-row,
.home-promo-row.visible,
.home-promo-wrapper .home-promo-card {
  opacity: 1 !important;
}
.home-promo-section {
  background: transparent;
  border-radius: 1rem;
  padding: 0.5rem 0;
}
@media (min-width: 640px) {
  .home-promo-section { padding: 0.5rem 0; }
}
@media (min-width: 1024px) {
  .home-promo-section { padding: 0.625rem 0; }
}
/* Promo cards: smooth right-to-left marquee */
.home-promo-marquee-outer {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  min-height: 100px;
}
.home-promo-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  width: max-content;
  flex-shrink: 0;
  animation: home-promo-marquee-scroll 48s linear infinite;
  -webkit-animation: home-promo-marquee-scroll 48s linear infinite;
  will-change: transform;
}
.home-promo-marquee-outer:hover .home-promo-marquee-track,
.home-promo-marquee-outer:focus-within .home-promo-marquee-track {
  animation-play-state: paused;
  -webkit-animation-play-state: paused;
}
@keyframes home-promo-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  a.home-promo-card {
    flex: 0 0 172px !important;
    width: 172px !important;
    min-width: 172px !important;
    min-height: 102px !important;
  }
}
a.home-promo-card {
  position: relative;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 0.3rem;
  padding: 0.82rem 0.85rem 0.78rem !important;
  flex: 0 0 210px !important;
  width: 210px !important;
  min-width: 210px !important;
  min-height: 112px !important;
  background:
    radial-gradient(120% 80% at 100% -10%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 52%),
    linear-gradient(145deg, #f8fbff 0%, #eef4ff 48%, #f6f9ff 100%) !important;
  border-radius: 1.05rem !important;
  -webkit-border-radius: 1rem !important;
  border: 1px solid rgba(59, 130, 246, 0.22) !important;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 8px 20px -16px rgba(30, 64, 175, 0.28),
    0 18px 34px -28px rgba(15, 23, 42, 0.2) !important;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    background 0.35s ease !important;
}
a.home-promo-card:hover {
  transform: translateY(-5px) scale(1.015) !important;
  box-shadow:
    0 6px 14px -10px rgba(30, 64, 175, 0.24),
    0 16px 34px -20px rgba(30, 64, 175, 0.34),
    0 26px 48px -30px rgba(15, 23, 42, 0.28) !important;
  border-color: rgba(37, 99, 235, 0.42) !important;
}
.home-promo-copy { width: 100%; }
.home-promo-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.14rem 0.48rem;
  font-size: 0.62rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(147, 197, 253, 0.45);
  box-shadow: 0 3px 10px -8px rgba(15, 23, 42, 0.32);
}
.home-promo-icon {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #1e40af;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, color 0.3s ease;
}
.home-promo-icon-svg {
  width: 1.05rem;
  height: 1.05rem;
}
a.home-promo-card:hover .home-promo-icon {
  transform: translateY(-1px) scale(1.06);
  box-shadow: 0 8px 16px -10px rgba(37, 99, 235, 0.46);
}
.home-promo-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f2f6d;
  margin: 0.08rem 0 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
  width: calc(100% - 2.6rem);
  display: block;
}
.home-promo-subtitle {
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  margin: 0.24rem 0 0;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: left;
  width: calc(100% - 2.6rem);
  display: block;
}
.home-promo-card--deal {
  background:
    radial-gradient(130% 90% at 100% -10%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #fff7ed 0%, #ffedd5 48%, #fff8ef 100%) !important;
  border-color: rgba(251, 146, 60, 0.28) !important;
}
.home-promo-card--deal .home-promo-icon {
  color: #c2410c;
  border-color: rgba(251, 146, 60, 0.34);
}
.home-promo-card--delivery {
  background:
    radial-gradient(130% 90% at 100% -10%, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #ecfeff 0%, #cffafe 48%, #f0fdff 100%) !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
}
.home-promo-card--delivery .home-promo-icon {
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.34);
}
.home-promo-card--category {
  background:
    radial-gradient(130% 90% at 100% -10%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(145deg, #f0fdf4 0%, #dcfce7 48%, #f4fff7 100%) !important;
  border-color: rgba(34, 197, 94, 0.26) !important;
}
.home-promo-card--category .home-promo-icon {
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.34);
}


/* Hero: background image support + overlay */
.sell-hero {
  position: relative;
  transition: opacity 0.5s ease;
}
.sell-hero-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 380px;
}
.sell-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.65) 0%, rgba(37, 99, 235, 0.55) 50%, rgba(15, 23, 42, 0.75) 100%);
  z-index: 1;
}
.sell-hero .sell-cta {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}
.sell-hero .sell-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Why sell: benefit cards hover */
.sell-benefit {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sell-benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}
.sell-benefit .sell-benefit-icon {
  transition: transform 0.3s ease;
}
.sell-benefit:hover .sell-benefit-icon {
  transform: scale(1.1);
}

/* How it works: step cards hover */
.sell-step {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sell-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgb(0 0 0 / 0.1);
}
.sell-step .sell-step-num {
  transition: transform 0.3s ease, background-color 0.2s ease;
}
.sell-step:hover .sell-step-num {
  transform: scale(1.08);
}

/* Testimonials: smooth right-to-left marquee */
.sell-testimonials-marquee {
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem 0;
}
.sell-testimonials-marquee.sell-marquee-paused .sell-testimonials-track {
  animation-play-state: paused;
}
.sell-testimonials-track {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  animation: sell-marquee-scroll 45s linear infinite;
  will-change: transform;
}
@keyframes sell-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.sell-testimonial-slide {
  flex: 0 0 auto;
  width: min(340px, 85vw);
  max-width: 100%;
  padding: 0 0.25rem;
  box-sizing: border-box;
}
.sell-testimonial-card {
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  padding: 1.5rem 1.25rem;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.3s ease;
}
.sell-testimonial-card:hover {
  box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.12);
  border-color: rgb(148 163 184);
}
.sell-testimonial-photo-wrap {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}
.sell-testimonial-img {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
}
.sell-testimonial-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: linear-gradient(to bottom right, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08);
}
.sell-testimonial-stars {
  display: flex;
  gap: 0.125rem;
  justify-content: center;
  color: #fbbf24;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.sell-testimonial-quote {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #475569;
  font-style: italic;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sell-testimonial-footer {
  margin-top: auto;
}
.sell-testimonial-name {
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.125rem;
  font-size: 0.9375rem;
}
.sell-testimonial-store {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
}
.sell-testimonial-card-static {
  transition: box-shadow 0.4s ease;
}

/* CTA section button */
.sell-cta-bottom {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.2s ease;
}
.sell-cta-bottom:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15);
}
