/* ================================================================
   05. OM MEG PILLS, HERO RINGS, PACKAGES
   Om meg pill glow + mobile arrow, hero ring animation,
   topography background and package cards (Tilbud).

   Files load in number order (01 → 12). Later files override
   earlier ones, so keep the order when moving rules around.
   ================================================================ */

/* even, symmetric glow on active Om meg pill */
.chip.on {
  box-shadow: 0 0 18px rgba(47,91,255,.42)!important;
}

@media (max-width:1199px) {
  .chips {
    padding: 16px;
    margin: -16px;
  }
}

/* mobile: "more" arrow for Om meg buttons */
.traits {
  position: relative;
}

.chips-more {
  display: none;
}

@media (max-width:1199px) {
  .chips {
    -webkit-mask-image: linear-gradient(90deg,#000 calc(100% - 64px),transparent);
    mask-image: linear-gradient(90deg,#000 calc(100% - 64px),transparent);
    transition: -webkit-mask-image .3s;
  }
  .traits.at-end .chips {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .chips-more {
    display: grid;
    place-items: center;
    position: absolute;
    right: -4px;
    top: 4px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--royal);
    box-shadow: 0 4px 14px rgba(11,26,92,.16);
    animation: nudge 1.6s ease-in-out infinite;
    transition: opacity .25s;
  }
  .chips-more svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .traits.at-end .chips-more {
    opacity: 0;
    pointer-events: none;
  }
}

@keyframes nudge {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 4px 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .chips-more {
    animation: none;
  }
}

/*
From Uiverse.io by NlghtM4re - https://uiverse.io/NlghtM4re/ordinary-mouse-17
MIT License, Copyright (c) NlghtM4re
*/

/* adapted: scoped names, sized to the hero glass card, palette colours instead of hue-rotate */
.glow {
  padding: 0;
}

.glow::before {
  opacity: .35;
}

.hr-rings {
  position: absolute;
  inset: 0;
  container-type: size;
  overflow: hidden;
  border-radius: inherit;
}

.hr-ring {
  position: absolute;
  left: 50%;
  top: 64%;
  width: calc(var(--i) * 4.2cqmin);
  aspect-ratio: 1;
  margin: calc(var(--i) * -2.1cqmin) 0 0 calc(var(--i) * -2.1cqmin);
  background-color: transparent;
  border-radius: 50%;
  border: 1.1cqmin solid var(--royal);
  transform-style: preserve-3d;
  transform: rotateX(70deg) translateZ(50px);
  animation: hr-move 3s ease-in-out calc(var(--i) * .08s) infinite;
  box-shadow: 0 0 15px rgba(47,91,255,.35),inset 0 0 15px rgba(47,91,255,.35);
}

@keyframes hr-move {
  0%,
  100% {
    transform: rotateX(70deg) translateZ(50px) translateY(0);
    border-color: var(--royal);
    box-shadow: 0 0 15px rgba(47,91,255,.35),inset 0 0 15px rgba(47,91,255,.35);
  }
  50% {
    transform: rotateX(70deg) translateZ(50px) translateY(-44cqmin);
    border-color: var(--lime);
    box-shadow: 0 0 15px rgba(212,245,60,.45),inset 0 0 15px rgba(212,245,60,.45);
  }
}

@media (prefers-reduced-motion:reduce) {
  .hr-ring {
    animation: none;
  }
}

/* hero rings: no frame, larger and proportional */
.glow {
  background: none!important;
  box-shadow: none!important;
  min-height: 380px;
}

.glow::before,
.glow::after {
  display: none!important;
}

.hr-rings {
  overflow: visible;
}

.hr-ring {
  top: 66%;
  width: calc(var(--i) * 4.7cqw);
  margin: calc(var(--i) * -2.35cqw) 0 0 calc(var(--i) * -2.35cqw);
  border-width: max(2px,.75cqw);
}

@keyframes hr-move {
  0%,
  100% {
    transform: rotateX(70deg) translateZ(50px) translateY(0);
    border-color: var(--royal);
    box-shadow: 0 0 15px rgba(47,91,255,.35),inset 0 0 15px rgba(47,91,255,.35);
  }
  50% {
    transform: rotateX(70deg) translateZ(50px) translateY(-46cqh);
    border-color: var(--lime);
    box-shadow: 0 0 15px rgba(212,245,60,.45),inset 0 0 15px rgba(212,245,60,.45);
  }
}

@media (max-width:1199px) {
  .glow {
    min-height: 270px;
    margin-top: 20px;
  }
  .hr-ring {
    top: 72%;
  }
}

/* Tre enkle pakker: animated topography background (vanilla rebuild of animate-ui TopographyBackground) */
#tilbud {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#tilbud>.topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  -webkit-mask-image: radial-gradient(ellipse at center,#000 55%,rgba(0,0,0,.35) 100%);
  mask-image: radial-gradient(ellipse at center,#000 55%,rgba(0,0,0,.35) 100%);
}

#tilbud>*:not(.topo) {
  position: relative;
  z-index: 1;
}

/* package cards: less transparent */
#tilbud .pkg {
  background: linear-gradient(170deg,rgba(255,255,255,.66),rgba(255,255,255,.5));
}

#tilbud .pkg.hl {
  background: linear-gradient(170deg,rgba(255,255,255,.78),rgba(255,255,255,.62));
}

#tilbud .pkg .del {
  background: rgba(255,255,255,.5);
}
