/* Catalani Activity Popups — all rules scoped to .cata-ap* so nothing leaks into the theme */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

.cata-ap-host {
  position: fixed;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.cata-ap-host.cata-ap-bottom-left  { left: 20px;  bottom: 20px; }
.cata-ap-host.cata-ap-bottom-right { right: 20px; bottom: 20px; }
.cata-ap-host.cata-ap-top-left     { left: 20px;  top: 90px; }
.cata-ap-host.cata-ap-top-right    { right: 20px; top: 90px; }

.cata-ap {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 34px 10px 10px;
  background: #0a0a08;
  color: #f2ede4;
  border: 1px solid rgba(201, 165, 90, 0.38);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.4);
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}
.cata-ap *, .cata-ap *::before, .cata-ap *::after { box-sizing: border-box; }
.cata-ap-top-left .cata-ap, .cata-ap-top-right .cata-ap { transform: translateY(-14px) scale(0.98); }
.cata-ap.is-in  { opacity: 1; transform: none; }
.cata-ap.is-out { opacity: 0; transform: translateY(8px) scale(0.98); }
.cata-ap--link  { cursor: pointer; }
.cata-ap--link:hover { border-color: rgba(201, 165, 90, 0.7); }

.cata-ap__media {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #16140f;
  border: 1px solid rgba(201, 165, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cata-ap__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cata-ap__mono {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: #c9a55a;
  line-height: 1;
}

.cata-ap__body  { flex: 1; min-width: 0; }
.cata-ap__label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a55a;
  margin: 0 0 2px;
}
.cata-ap__text { color: #f2ede4; margin: 0; }
.cata-ap__text a {
  color: #e3c98d;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(201, 165, 90, 0.35);
}
.cata-ap__text a:hover { color: #c9a55a; border-bottom-color: #c9a55a; }
.cata-ap__text strong, .cata-ap__text b { color: #fff; font-weight: 600; }
.cata-ap .cata-ap-stars { color: #c9a55a; letter-spacing: 1px; }
.cata-ap__ago { margin-top: 3px; font-size: 11px; color: rgba(242, 237, 228, 0.5); }

.cata-ap--spot {
  background: radial-gradient(120% 140% at 0% 0%, rgba(201, 165, 90, 0.16), transparent 60%), #0a0a08;
  border-color: rgba(201, 165, 90, 0.55);
}
.cata-ap--spot .cata-ap__text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 17px; line-height: 1.25; font-weight: 600; }

.cata-ap__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(242, 237, 228, 0.45);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
}
.cata-ap__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

@media (max-width: 640px) {
  .cata-ap-host,
  .cata-ap-host.cata-ap-bottom-left,
  .cata-ap-host.cata-ap-bottom-right,
  .cata-ap-host.cata-ap-top-left,
  .cata-ap-host.cata-ap-top-right { left: 16px; right: 16px; width: auto; }
  .cata-ap-host.cata-ap-m-bottom { top: auto; bottom: 16px; }
  .cata-ap-host.cata-ap-m-top    { bottom: auto; top: 70px; }
  .cata-ap { font-size: 12.5px; }
  .cata-ap__media { flex-basis: 44px; width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .cata-ap, .cata-ap.is-in, .cata-ap.is-out { transition: opacity 0.2s linear; transform: none; }
}
