/* =========================================================
   URANUS - HELP & INFO
   Zweeft vrij rond. Bij klik groeit Uranus centraal uit en
   bedekt hij de aarde, zonder donkere pagina-overlay.
   ========================================================= */

.app-bubble.uranus {
  position: absolute;
  background:
    transparent
    url("../assets/images/uranus.png")
    center / contain no-repeat;
  border-radius: 50%;
  overflow: visible;
  filter: drop-shadow(18px 24px 22px rgba(0, 0, 0, .28));
  cursor: pointer;
  transition:
    left .95s cubic-bezier(.2, .8, .2, 1),
    top .95s cubic-bezier(.2, .8, .2, 1),
    width .95s cubic-bezier(.2, .8, .2, 1),
    height .95s cubic-bezier(.2, .8, .2, 1),
    transform .95s cubic-bezier(.2, .8, .2, 1),
    filter .35s ease;
  --size: min(25vw, 30vh) !important;
  --scale: 1 !important;

}

.app-bubble.uranus:hover:not(.info-open) {
  filter:
    brightness(1.08)
    drop-shadow(18px 24px 22px rgba(0, 0, 0, .34));
}

.uranus-label {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  min-width: max-content;
  padding: .34rem .68rem;
  border-radius: 999px;
 
  color: yellow;
  font-size: clamp(3rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .9);
  pointer-events: none;
}

.app-bubble.uranus.info-open .uranus-label {
  display: none;
}

/* =========================================================
   OPEN TOESTAND
   ========================================================= */

.app-bubble.uranus.info-open {
  --x: 52% !important;
  --y: 50% !important;
  --size: min(105vw, 120vh) !important;
  --scale: 2 !important;

  left: var(--x) !important;
  top: var(--y) !important;
  width: var(--size) !important;
  height: var(--size) !important;
  transform: translate(-53%, -48%) scale(1) !important;

  z-index: 220 !important;
  cursor: default;
  overflow: hidden;
  background:
    linear-gradient(rgba(225, 249, 255, .13), rgba(15, 73, 92, .12)),
    url("../assets/images/uranus.PNG")
    center / cover no-repeat;

}

/* Geen donkere overlay over de omgeving. Alleen andere bollen treden licht terug. */
body.uranus-info-active .app-bubble:not(.uranus) {
  opacity: .42;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* =========================================================
   INFORMATIE
   ========================================================= */

.uranus-info {
  position: absolute;
  inset: 0;
  display: none;
  box-sizing: border-box;
  color: #071a22;
}

.app-bubble.uranus.info-open .uranus-info {
  display: block;
  animation: uranus-info-in .45s ease .35s both;
}

.uranus-scroll {
  position: absolute;
  inset: 10% 12% 8%;
  padding: 4rem 2rem 12rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .88) rgba(35, 70, 80, .22);
  text-align: left;
  outline: none;
}

.uranus-scroll::-webkit-scrollbar {
  width: 7px;
}

.uranus-scroll::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(35, 70, 80, .18);
}

.uranus-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
}

.uranus-header {
  margin-bottom: 1.15rem;
  text-align: center;
}
.uranus-header h2 {
  color: black;              /* vulkleur */
  -webkit-text-stroke: 1px white; /* rand */
}

.uranus-header h2 {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(1.6rem, 2.7vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .025em;
  color: #07171d;
}

.uranus-kicker {
  margin: .55rem 0 0;
  font-family: Arial, sans-serif;
  font-size: clamp(.74rem, .92vw, 1rem);
  font-weight: 700;
  letter-spacing: .36em;
  color: rgba(5, 25, 32, .84);
}

.uranus-section {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: .8rem;
  align-items: start;
  margin: 0 0 .75rem;
  padding: 0;
  background: transparent;
}

.uranus-section-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  background: rgba(8, 22, 28, .82);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
}

.uranus-section h3 {
  margin: 0 0 .18rem;
  font-family: Arial, sans-serif;
  font-size: clamp(.88rem, 1vw, 1.08rem);
  font-weight: 900;
  line-height: 1.15;
  color: #07171d;
}

.uranus-section p {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: clamp(.78rem, .9vw, .98rem);
  line-height: 1.4;
  color: rgba(5, 22, 28, .92);
}

.uranus-footer {
  padding: .9rem 0 1.2rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 1.2vw, 1.22rem);
  font-style: italic;
  color: rgba(6, 31, 39, .88);
   -webkit-text-stroke: 1px white; 
  }

.uranus-close {
  position: absolute;
  top: 20%;
  right: 11%;
  z-index: 4;

  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .82);
  border-radius: 50%;

  background: rgba(5, 18, 23, .78);
  color: #fff;
  font: 800 1.65rem/1 Arial, sans-serif;
  cursor: pointer;

  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
}

.uranus-close:hover {
  transform: scale(1.06);
  background: rgba(16, 63, 77, .92);
}

@keyframes uranus-info-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .app-bubble.uranus.info-open {
    --size: min(94vw, 92vh) !important;
  }

  .uranus-scroll {
    inset: 10% 9% 7%;
    padding-inline: 1rem;
  }

  .uranus-close {
    top: 7%;
    right: 8%;
  }
}

@media (max-width: 560px) {
  .app-bubble.uranus.info-open {
    --size: min(98vw, 90vh) !important;
  }

  .uranus-scroll {
    inset: 12% 7% 7%;
    padding-inline: .6rem;
  }

  .uranus-section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .55rem;
  }

  .uranus-section-icon {
    width: 32px;
    height: 32px;
    font-size: .95rem;
  }

  .uranus-close {
    width: 38px;
    height: 38px;
  }
}
