/* ============================================
   UGC MEDIA CAROUSEL — Editorial
   Product-claim design language: restrained type,
   thin dividers, generous whitespace, magazine feel
   ============================================ */

.ugc {
  overflow-x: clip;
  overflow-y: visible;
}

.ugc .container { overflow: visible; }


/* ============================================
   HEADER
   ============================================ */

.ugc__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .ugc__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
  }
}

@media (min-width: 1200px) {
  .ugc__header { margin-bottom: 72px; }
}

.ugc__header-text {
  flex: 1;
  max-width: 700px;
}

/* Eyebrow */
.ugc__eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.3;
  color: inherit;
}

@media (min-width: 768px) {
  .ugc__eyebrow { margin-bottom: 28px; }
}

/* Heading */
.ugc__heading {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: inherit;
}

@media (min-width: 768px) {
  .ugc__heading { font-size: 52px; }
}

@media (min-width: 1200px) {
  .ugc__heading { font-size: 64px; }
}

.ugc__heading-accent {
  display: block;
  font-weight: 400;
  opacity: 0.4;
}

/* Description */
.ugc__description {
  margin: 24px 0 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.5;
  max-width: 560px;
  font-weight: 400;
  color: inherit;
}

@media (min-width: 768px) {
  .ugc__description { font-size: 17px; margin-top: 28px; }
}


/* ============================================
   NAV — Minimal circles with thin borders
   ============================================ */

.ugc__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .ugc__nav { display: none; }
}

.ugc__nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.ugc__nav-arrow:hover:not(:disabled) {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}

.ugc__nav-arrow:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

.ugc__nav-arrow:active { transform: scale(0.96); }
.ugc__nav-arrow svg { width: 20px; height: 20px; }

/* Light bg variant */
.ugc.bg-white .ugc__nav-arrow,
.ugc.bg-neutral-light .ugc__nav-arrow {
  border-color: rgba(0,0,0,0.12);
}

.ugc.bg-white .ugc__nav-arrow:hover:not(:disabled),
.ugc.bg-neutral-light .ugc__nav-arrow:hover:not(:disabled) {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.25);
}

/* Focus */
.ugc__nav-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }


/* ============================================
   CAROUSEL TRACK
   ============================================ */

.ugc__track-wrap {
  position: relative;
  overflow: visible;
}

@media (min-width: 640px) {
  .ugc__track-wrap {
    margin-right: calc(-1 * var(--space-3xl, 48px));
  }
}

.ugc__track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y pinch-zoom;
  padding-right: var(--space-3xl, 48px);
}

@media (min-width: 768px) {
  .ugc__track { gap: 20px; }
}


/* ============================================
   CARD — Base
   ============================================ */

.ugc__card {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Responsive widths */
@media (max-width: 639px) {
  .ugc__card { width: calc(78% - 16px); }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .ugc__card { width: calc(42% - 16px); }
}

@media (min-width: 1024px) {
  .ugc__card { width: calc(25% - 16px); }
}


/* ============================================
   MEDIA CARD
   ============================================ */

.ugc__card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #0a0a0a;
  flex-shrink: 0;
}

.ugc__card-media fluid-media-widget {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ugc__card-media img,
.ugc__card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder */
.ugc__card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.1;
  color: #fff;
}


/* ============================================
   CARD OVERLAY — Quote over media
   ============================================ */

.ugc__card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 72px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    transparent 100%
  );
  pointer-events: none;
}

@media (min-width: 768px) {
  .ugc__card-overlay { padding: 80px 24px 24px; }
}

.ugc__card-quote {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #fff;
  opacity: 0.8;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ugc__card-quote { font-size: 13px; }
}


/* Author — below card */
.ugc__card-author {
  display: block;
  margin-top: 14px;
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.3;
}


/* ============================================
   QUOTE CARD — Text-only, editorial
   ============================================ */

.ugc__quote-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.ugc__quote-card--dark {
  background: #111;
  color: #fff;
}

.ugc__quote-card--light {
  background: #f5f5f5;
  color: #0a0a0a;
}

/* Inner layout */
.ugc__quote-card-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 32px 24px;
  gap: 20px;
}

@media (min-width: 768px) {
  .ugc__quote-card-inner { padding: 40px 28px; gap: 24px; }
}

/* Quote mark */
.ugc__quote-mark {
  flex-shrink: 0;
  opacity: 0.06;
}

/* Quote text */
.ugc__quote-card-text {
  margin: 0;
  font-family: var(--font-primary), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: inherit;
  opacity: 0.8;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .ugc__quote-card-text { font-size: 18px; }
}

/* Footer */
.ugc__quote-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ugc__quote-card-divider {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.1;
}

.ugc__quote-card-author {
  font-family: var(--font-primary), sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.35;
}


/* ============================================
   DARK / LIGHT VARIANTS
   ============================================ */

.ugc.bg-neutral-dark,
.ugc.bg-black {
  color: #fff;
}

.ugc.bg-white,
.ugc.bg-neutral-light {
  color: #0a0a0a;
}


/* ============================================
   MOBILE — Edge-to-edge swipe
   ============================================ */

@media (max-width: 639px) {
  .ugc__header { margin-bottom: 32px; }

  .ugc__track-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(-1 * var(--container-padding, 24px));
    margin-right: calc(-1 * var(--container-padding, 24px));
  }

  .ugc__track-wrap::-webkit-scrollbar { display: none; }

  .ugc__track {
    padding-left: var(--container-padding, 24px);
    padding-right: var(--container-padding, 24px);
  }
}
