/* Trippy extras — kept in their own file so each can be dropped on its own:
   1. Blacklight mode, site-wide (blacklight.js; body.uv-mode — the Shop page's own styles live in
      style.css and already react to the same class)
   2. Glow slider on the product page's main photo (glow.js)
   3. Frog eyes that follow the mouse (frog-eyes.js) */

/* ---------- 1. Blacklight mode ---------- */

:root { --uv-room: #0c0024; --uv-room-2: #160038; }

.blacklight-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: filter 0.3s, transform 0.2s; }
.blacklight-toggle:hover svg { transform: scale(1.1); }
.blacklight-toggle[aria-pressed="true"] { color: var(--uv-violet); }
.blacklight-toggle[aria-pressed="true"] svg { filter: drop-shadow(0 0 4px var(--uv-violet)) drop-shadow(0 0 8px rgba(122, 45, 255, 0.7)); }
.page-contact .site-header .blacklight-toggle[aria-pressed="true"],
.uv-mode .site-header.is-scrolled .blacklight-toggle[aria-pressed="true"] { color: var(--uv-violet); }

/* the room goes dark; colours fade over rather than snap */
.uv-mode { --bg: var(--uv-room); }
.about, .tribe, .shop, .everywhere, .marquee, .events, .info, .site-footer .footer-bar, .pdp, .announce {
  transition: background-color 0.7s ease, color 0.7s ease;
}

/* yellow sections: violet glow, neon type */
.uv-mode .about,
.uv-mode .tribe {
  background-color: var(--uv-room);
  background-image: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(122, 45, 255, 0.35), transparent 70%);
  color: var(--uv-neon);
}
/* glow as a filter on the whole heading: the split-text line masks inside would clip a text-shadow
   into boxes */
.uv-mode .section-title,
.uv-mode .about-heading { text-shadow: none; filter: drop-shadow(0 0 10px rgba(233, 255, 31, 0.4)) drop-shadow(0 0 26px rgba(122, 45, 255, 0.55)); }
.uv-mode .about-cta:hover,
.uv-mode .tribe .section-link:hover { color: #ff4fd8; }
.uv-mode .about :focus-visible,
.uv-mode .tribe :focus-visible { outline-color: var(--uv-neon); }
.uv-mode .gallery-item,
.uv-mode .squad-strip a { background: var(--uv-room-2); box-shadow: 0 0 0 1px rgba(122, 45, 255, 0.5); }

/* dark sections turn violet-black */
.uv-mode .shop,
.uv-mode .everywhere,
.uv-mode .events,
.uv-mode .info { background-color: var(--uv-room); }
.uv-mode .shop .section-title,
.uv-mode .events .section-title,
.uv-mode .info .section-title { color: var(--uv-neon); }
.uv-mode .ev-date { color: var(--uv-neon); }

/* the red marquee glows like UV paint */
.uv-mode .marquee {
  background: var(--uv-violet);
  color: var(--uv-neon);
  text-shadow: 0 0 12px rgba(233, 255, 31, 0.6);
}

/* footer: violet bars, neon type; the artwork stays */
.uv-mode .site-footer { color: var(--uv-neon); }
.uv-mode .site-footer .footer-bar { background: var(--uv-violet); }
.uv-mode .site-footer :focus-visible { outline-color: var(--uv-neon); }
@media (max-width: 900px) {
  .uv-mode .site-footer { background: var(--uv-violet); }
}

/* product page: a dark room; the page's own colours are swapped through its variables */
.uv-mode.page-product { background: var(--uv-room); }
.uv-mode .pdp {
  --ink: #f2f0ea;
  --pdp-line: rgba(242, 240, 234, 0.18);
  --pdp-muted: rgba(242, 240, 234, 0.68);
  background: var(--uv-room);
}
.uv-mode .pdp-gallery { background: var(--uv-room-2); }
.uv-mode .pdp-title { text-shadow: 0 0 18px rgba(233, 255, 31, 0.35); }
.uv-mode .pdp-price { color: var(--uv-neon); }
.uv-mode .pdp-options input:checked + span,
.uv-mode .pdp-units button[aria-pressed="true"],
.uv-mode .pdp-add {
  background: var(--uv-neon);
  border-color: var(--uv-neon);
  color: var(--uv-room);
  box-shadow: 0 0 18px rgba(233, 255, 31, 0.35);
}
.uv-mode .pdp-add:hover { background: #ff4fd8; border-color: #ff4fd8; color: var(--uv-room); }
.uv-mode .pdp-add:disabled { background: rgba(242, 240, 234, 0.2); color: rgba(242, 240, 234, 0.6); box-shadow: none; }
.uv-mode .pdp-flag--pre, .uv-mode .product-flag { border-color: var(--uv-neon); background: var(--uv-violet); color: var(--uv-neon); box-shadow: 0 0 14px rgba(122, 45, 255, 0.8); }
.uv-mode .pdp-flag--soldout, .uv-mode .product.is-sold-out .product-media::after { box-shadow: 0 0 16px rgba(241, 32, 39, 0.7); }
.uv-mode .pdp-preorder { border-color: var(--uv-violet); background: rgba(122, 45, 255, 0.14); color: inherit; }
.uv-mode .pdp-acc-body { color: rgba(242, 240, 234, 0.8); }
.uv-mode .pdp-options span { border-color: rgba(242, 240, 234, 0.28); }
.uv-mode .pdp-tags li:first-child { background: var(--uv-violet); border-color: var(--uv-violet); box-shadow: 0 0 14px rgba(122, 45, 255, 0.7); }
.uv-mode .pdp-tags li:first-child,
.uv-mode .pdp-tags li:first-child a { color: var(--uv-neon); }
.uv-mode .pdp-guide-table .is-active { background: rgba(233, 255, 31, 0.16); color: var(--uv-neon); }
.uv-mode .pdp-guide-table thead .is-active { background: var(--uv-neon); color: var(--uv-room); }
.uv-mode .pdp-buy-bottom { background-color: rgba(12, 0, 36, 0.9); }
.uv-mode .announce { background: var(--uv-violet); color: var(--uv-neon); }

/* ---------- 2. Glow slider (product page) ---------- */

.pdp-glow { position: relative; --glow: 0; }
/* daylight photo dims and shifts as the blacklight comes up */
.pdp-glow > img:first-child { filter: brightness(calc(1 - var(--glow) * 0.55)) saturate(calc(1 + var(--glow) * 0.8)) hue-rotate(calc(var(--glow) * 35deg)); }
.pdp-gallery .pdp-glow-uv {
  position: absolute;
  inset: 0;
  opacity: var(--glow);
  pointer-events: none;
}
/* a light violet wash that peaks halfway, like the tube warming up */
.pdp-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #4b12c9;
  mix-blend-mode: color;
  opacity: calc(var(--glow) * (1 - var(--glow)) * 1.2);
  pointer-events: none;
}
.pdp-glow-control {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 240, 234, 0.3);
  border-radius: 999px;
  background: rgba(10, 9, 1, 0.68);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f2f0ea;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pdp-glow.is-glowing .pdp-glow-control { border-color: var(--uv-violet); box-shadow: 0 0 calc(var(--glow) * 24px) rgba(122, 45, 255, 0.85); }
.pdp-glow.is-glowing .pdp-glow-uv-label { color: var(--uv-neon); text-shadow: 0 0 calc(var(--glow) * 10px) var(--uv-neon); }
.pdp-glow-sun { font-size: 15px; line-height: 1; }
.pdp-glow-control input { width: 130px; margin: 0; accent-color: var(--uv-violet); cursor: pointer; }
@media (max-width: 900px) {
  .pdp-glow-control { bottom: 14px; left: 14px; transform: none; }
  .pdp-glow-control input { width: 100px; }
}

/* ---------- 3. Frog eyes ---------- */

.frog-host { position: relative; }
.frog-face {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  transform: scale(1.5); /* same zoom as the logo GIF it covers (style.css .brand img / .cap-logo img) */
}
.cap-logo .frog-face { transform: scale(1.506); }
.frog-face img { display: block; width: 100%; height: 100%; transform: none; } /* .brand img / .cap-logo img would zoom it a second time */
.frog-host.is-watching > img { opacity: 0; }
.frog-host.is-watching .frog-face { opacity: 1; }
/* each eye: the green iris, clipped so the pupil can slide to its edge */
.frog-eye {
  position: absolute;
  overflow: hidden;
  border-radius: 50%;
}
.frog-eye--l { left: 32.2%; top: 36.2%; width: 5.8%; height: 6.6%; }
.frog-eye--r { left: 62%; top: 35.9%; width: 6%; height: 6.4%; }
.frog-eye b {
  position: absolute;
  left: 20%;
  top: 17%;
  width: 60%;
  height: 66%;
  border-radius: 50%;
  background: #0a0901;
  transition: transform 0.09s linear;
}
/* blink: a yellow lid drops over the eye */
.frog-eye::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--acid);
  transform: translateY(-101%);
  transition: transform 0.07s ease-in;
}
.frog-host.is-blinking .frog-eye::before { transform: translateY(0); }
