/*
 * Gupy redesign v2 — Nouveautés page (html/redesign/new/new-page.php, behaviour in
 * js/redesign/gupy-v2-new.js). The hero and the grouping pills reuse the archive
 * page classes (gupy-v2-archive.css), the day carousels are .gv2-section blocks.
 * Every rule is scoped under .gv2-new: nothing here reaches the legacy new.php markup.
 * Container widths / breakpoints follow .gv2-section (gupy-v2.css): 480 / 768 / 1024 / 1600.
 */

/* --------------------------------------------------------------------------
   Containers (empty state, loader)
   -------------------------------------------------------------------------- */

.gv2-new .gv2-new__empty,
.gv2-new .gv2-new__more {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 80px;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .gv2-new .gv2-new__empty,
  .gv2-new .gv2-new__more {
    padding-inline: 40px;
  }
}
@media (max-width: 768px) {
  .gv2-new .gv2-new__empty,
  .gv2-new .gv2-new__more {
    padding-inline: 20px;
  }
}
@media (min-width: 1600px) {
  .gv2-new .gv2-new__empty,
  .gv2-new .gv2-new__more {
    max-width: 1920px;
    padding-inline: 160px;
  }
}
@media (min-width: 2200px) {
  .gv2-new .gv2-new__empty,
  .gv2-new .gv2-new__more {
    max-width: 2400px;
  }
}

/* --------------------------------------------------------------------------
   Grouping pills (arrivals on the services | release date)
   -------------------------------------------------------------------------- */

.gv2-new .gv2-new-methods {
  margin-top: 10px;
}
.gv2-new .gv2-new-methods a.gv2-filter-bar__pill {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Day carousels on a timeline (the v1 page look: a vertical rail in the left
   margin, one dot per day linked to a pink title pill).
   The content is shifted right by --gv2n-rail so the rail sits between the
   gutter and the posters, clear of the carousel "prev" arrow (40-72px left of
   the posters). Sections stack without gaps, so their ::before lines form one
   continuous rail.
   -------------------------------------------------------------------------- */

.gv2-new {
  --gv2n-rail: 44px;      /* rail column */
  --gv2n-rail-x: 8px;     /* rail position inside that column */
  --gv2n-dot: 12px;
}
@media (max-width: 768px) {
  .gv2-new {
    --gv2n-rail: 28px;
    --gv2n-rail-x: 4px;
    --gv2n-dot: 10px;
  }
}

.gv2-new .gv2-new-day {
  position: relative;
  padding-block: 20px;
  padding-left: calc(var(--gv2-gutter, 80px) + var(--gv2n-rail));
}
.gv2-new .gv2-new__days > .gv2-new-day:first-child,
.gv2-new .gv2-new__days > .gv2-empty:first-child {
  padding-top: 30px;
}

/* Rail */
.gv2-new .gv2-new-day::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gv2-gutter, 80px) + var(--gv2n-rail-x));
  width: 2px;
  background: rgba(var(--gv2-fg-rgb), 0.2);
}
/* First day: the rail starts at its dot. */
.gv2-new .gv2-new__days > .gv2-new-day:first-child::before {
  top: 48px;
}

/* Dot + connector, on the title row */
.gv2-new .gv2-new-day .gv2-section__head {
  position: relative;
}
.gv2-new .gv2-new-day .gv2-section__head::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--gv2n-rail-x) + 1px - var(--gv2n-rail) - var(--gv2n-dot) / 2);
  width: var(--gv2n-dot);
  height: var(--gv2n-dot);
  border-radius: 50%;
  background: var(--vrd-primary);
  box-shadow: 0 0 0 4px var(--gv2-bg);
  transform: translateY(-50%);
  z-index: 1;
}
.gv2-new .gv2-new-day .gv2-section__head::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--gv2n-rail-x) + 1px - var(--gv2n-rail));
  width: calc(var(--gv2n-rail) - var(--gv2n-rail-x) - 1px);
  height: 2px;
  background: var(--vrd-primary);
  transform: translateY(-50%);
}

/* Title pill: day + program count */
.gv2-new .gv2-new-day .gv2-section__title {
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  padding: 7px 14px;
  border-radius: var(--gv2-radius-sm);
  background: var(--vrd-primary);
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}
.gv2-new .gv2-new-day__count {
  font-family: var(--gv2-font-body, inherit);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.8);
}
@media (min-width: 1600px) {
  .gv2-new .gv2-new-day .gv2-section__title {
    font-size: 20px;
  }
}

/* Coming soon: hollow dot, outlined pill */
.gv2-new .gv2-new-day.is-upcoming .gv2-section__head::before {
  background: var(--gv2-bg);
  border: 2px solid var(--vrd-primary);
  box-sizing: border-box;
}
.gv2-new .gv2-new-day.is-upcoming .gv2-section__title {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--vrd-primary);
  color: var(--gv2-text);
}
.gv2-new .gv2-new-day.is-upcoming .gv2-new-day__count {
  color: var(--gv2-text-muted);
}

/* --------------------------------------------------------------------------
   Empty state, loader
   -------------------------------------------------------------------------- */

.gv2-new .gv2-new__empty {
  padding-block: 60px;
  text-align: center;
  color: var(--gv2-text-muted);
}
.gv2-new .gv2-new__more {
  padding-block: 30px;
  text-align: center;
}
