/* ============================================
   Hara, Luxury Notification Card
   Bottom-right desktop carousel; hidden on mobile.
   ============================================ */

.lux-notif {
  --lux-bg: rgba(31, 39, 28, 0.78);
  --lux-border: rgba(193, 194, 176, 0.22);
  --lux-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 6px 18px rgba(0, 0, 0, 0.18);
  --lux-ink: var(--ivory);
  --lux-ink-soft: rgba(241, 235, 223, 0.72);
  --lux-eyebrow: rgba(193, 194, 176, 0.85);
  --lux-rule: rgba(193, 194, 176, 0.35);

  position: fixed;
  right: clamp(20px, 2.2vw, 32px);
  bottom: clamp(20px, 2.2vw, 32px);
  z-index: 60;
  width: min(360px, 28vw);
  min-width: 320px;
  padding: 22px 24px 18px;
  background: var(--lux-bg);
  border: 1px solid var(--lux-border);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
  box-shadow: var(--lux-shadow);
  color: var(--lux-ink);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
}

.lux-notif[data-state="visible"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Subtle inner highlight at top edge for that luxe glassy feel. */
.lux-notif::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(241, 235, 223, 0.06), transparent 36%);
  pointer-events: none;
}

/* Card body is the click target; the dismiss × sits on top. */
.lux-notif__link {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.lux-notif__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lux-notif__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(241, 235, 223, 0.08);
  border: 1px solid rgba(193, 194, 176, 0.22);
}

.lux-notif__mark img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.92;
}

/* Circular countdown */
.lux-notif__timer {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.lux-notif__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}

.lux-notif__ring-track,
.lux-notif__ring-progress {
  fill: none;
  stroke-width: 2;
}

.lux-notif__ring-track {
  stroke: rgba(193, 194, 176, 0.18);
}

.lux-notif__ring-progress {
  stroke: var(--ivory);
  stroke-linecap: round;
  /* dasharray/offset set from JS so it matches the actual circumference */
}

.lux-notif__count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--lux-ink-soft);
}

/* Content typography */
.lux-notif__eyebrow {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lux-eyebrow);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 220ms var(--ease-out);
}

.lux-notif__eyebrow-text {
  position: relative;
  padding-left: 18px;
}

.lux-notif__eyebrow-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--lux-rule);
}

/* When the flag is present, drop the leading rule so the flag sits in its place. */
.lux-notif__flag + .lux-notif__eyebrow-text {
  padding-left: 0;
}

.lux-notif__flag + .lux-notif__eyebrow-text::before {
  display: none;
}

.lux-notif__flag {
  width: 18px;
  height: auto;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(241, 235, 223, 0.18), 0 2px 4px rgba(0, 0, 0, 0.18);
  display: block;
}

.lux-notif__headline {
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.32;
  letter-spacing: 0.005em;
  color: var(--lux-ink);
  margin: 0 0 14px;
  transition: opacity 220ms var(--ease-out);
}

.lux-notif__hint {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-ink-soft);
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 220ms var(--ease-out), letter-spacing 220ms var(--ease-out);
}

.lux-notif__hint::after {
  content: '→';
  font-family: var(--font-body);
  transition: transform 220ms var(--ease-out);
}

.lux-notif__link:hover .lux-notif__hint {
  opacity: 1;
  letter-spacing: 0.16em;
}

.lux-notif__link:hover .lux-notif__hint::after {
  transform: translateX(3px);
}

/* Swap fade: dim content while text changes between rotations. */
.lux-notif.is-swapping .lux-notif__eyebrow,
.lux-notif.is-swapping .lux-notif__headline,
.lux-notif.is-swapping .lux-notif__hint {
  opacity: 0;
}

/* Dismiss × */
.lux-notif__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--lux-ink-soft);
  cursor: pointer;
  opacity: 0;
  transition: opacity 220ms var(--ease-out), background 220ms var(--ease-out), color 220ms var(--ease-out);
  z-index: 2;
}

.lux-notif__close svg {
  width: 10px;
  height: 10px;
}

.lux-notif:hover .lux-notif__close {
  opacity: 1;
}

.lux-notif__close:hover {
  background: rgba(241, 235, 223, 0.1);
  color: var(--lux-ink);
}

/* Bottom dots indicator */
.lux-notif__dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(193, 194, 176, 0.12);
}

.lux-notif__dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(193, 194, 176, 0.3);
  transition: background 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.lux-notif__dot.is-active {
  background: var(--ivory);
  transform: scale(1.25);
}

/* Hide on tablet and below */
@media (max-width: 1023px) {
  .lux-notif {
    display: none !important;
  }
}

/* Reduced motion: skip the rise-up entry and the swap fade. */
@media (prefers-reduced-motion: reduce) {
  .lux-notif {
    transition: opacity 200ms linear;
    transform: none;
  }
  .lux-notif.is-swapping .lux-notif__eyebrow,
  .lux-notif.is-swapping .lux-notif__headline,
  .lux-notif.is-swapping .lux-notif__hint {
    opacity: 1;
  }
}
