/* ═══════════════════════════════════════════════════════════════════════════
   TRUST RIBBON — Neon Gold Ticker
   ═══════════════════════════════════════════════════════════════════════════

   Design: Thin scrolling ticker with glowing gold dots and gold-tinted text.
   Fully theme-aware: dark (neon glow) + light (warm amber on cream).

   ═══════════════════════════════════════════════════════════════════════════ */


/* ── Edge-fade colour per theme (used by ::before / ::after) ── */
:root,
[data-theme="dark"]  { --ribbon-edge: #050a06; }
[data-theme="light"] { --ribbon-edge: #FDFBF7; }


/* ── Container ── */
.trust-ribbon-section {
  position: relative;
  width: 100%;
  height: 42px;
  overflow: hidden;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition:
    background      0.5s ease,
    border-color    0.5s ease;
}

/* Dark */
:root .trust-ribbon-section,
[data-theme="dark"] .trust-ribbon-section {
  background: linear-gradient(
    90deg,
    rgba(212,175,55,0.04) 0%,
    rgba(212,175,55,0.09) 50%,
    rgba(212,175,55,0.04) 100%
  );
  border-top:    1px solid rgba(212,175,55,0.20);
  border-bottom: 1px solid rgba(212,175,55,0.20);
}

/* Light */
[data-theme="light"] .trust-ribbon-section {
  background: linear-gradient(
    90deg,
    rgba(184,150,12,0.05) 0%,
    rgba(184,150,12,0.11) 50%,
    rgba(184,150,12,0.05) 100%
  );
  border-top:    1px solid rgba(184,150,12,0.28);
  border-bottom: 1px solid rgba(184,150,12,0.28);
}


/* ── Edge fade overlays (left & right) ── */
.trust-ribbon-section::before,
.trust-ribbon-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.trust-ribbon-section::before {
  left: 0;
  background: linear-gradient(to right, var(--ribbon-edge, #050a06), transparent);
}
.trust-ribbon-section::after {
  right: 0;
  background: linear-gradient(to left, var(--ribbon-edge, #050a06), transparent);
}


/* ── Scrolling track ── */
.ri-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  padding-left: 24px;
}


/* ── Individual item (icon + text + dot) ── */
.ri-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}


/* ── SVG icon wrapper ── */
.ri-icon-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* SVG stroke colour per theme */
:root .ri-icon,
[data-theme="dark"] .ri-icon {
  stroke: #D4AF37;
}
[data-theme="light"] .ri-icon {
  stroke: #9a6e00;
}


/* ── Text ── */
.ri-text {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  transition: color 0.5s ease;
}
:root .ri-text,
[data-theme="dark"] .ri-text {
  color: rgba(212,175,55,0.82);
}
[data-theme="light"] .ri-text {
  color: #6b4800;
}


/* ── Glowing dot separator ── */
.ri-dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 16px;
  margin-right: 22px;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
:root .ri-dot,
[data-theme="dark"] .ri-dot {
  background: #D4AF37;
  box-shadow:
    0 0 5px  #D4AF37,
    0 0 10px rgba(212,175,55,0.45);
}
[data-theme="light"] .ri-dot {
  background: #B8960C;
  box-shadow: 0 0 4px rgba(184,150,12,0.55);
}


/* ── Hover: dim text slightly to give feedback ── */
.trust-ribbon-section:hover .ri-text {
  opacity: 0.7;
}
.trust-ribbon-section:hover .ri-dot {
  opacity: 0.8;
}


/* ── Mobile ── */
@media (max-width: 768px) {
  .trust-ribbon-section { height: 38px; }
  .ri-text              { font-size: 10px; letter-spacing: 0.6px; }
  .ri-dot               { margin-left: 12px; margin-right: 16px; }
  .trust-ribbon-section::before,
  .trust-ribbon-section::after { width: 48px; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT PAGE VARIANT (Rounded, sits inside card area)
   ═══════════════════════════════════════════════════════════════════════════ */

.product-trust-ribbon .trust-ribbon-section {
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.2);
}
[data-theme="light"] .product-trust-ribbon .trust-ribbon-section {
  border-color: rgba(184,150,12,0.25);
}
.product-trust-ribbon .trust-ribbon-section::before,
.product-trust-ribbon .trust-ribbon-section::after {
  width: 40px;
}
