/* 09-glass.css — Glass and depth: light behind the bars, sheen on cards.
   Part of the portal stylesheet; index.html loads the parts in order (01 to 12, then 14 and 15), so the cascade is
   the same as one file. */

/* ---------- Glas en diepte ---------- */
/* Soft coloured light behind everything, so the glass of the bars has something to blur. */
body::before { content: ""; position: fixed; inset: -10vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 82% 8%, color-mix(in srgb, var(--brand-primary) 13%, transparent), transparent 70%),
    radial-gradient(34vmax 28vmax at 8% 92%, rgba(214, 160, 70, 0.13), transparent 70%),
    radial-gradient(30vmax 24vmax at 45% 55%, rgba(80, 120, 200, 0.07), transparent 70%);
  animation: ambient-drift 60s ease-in-out infinite alternate; }
@keyframes ambient-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2vmax, 1.5vmax, 0) scale(1.05); } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root:not([data-theme="dark"]) { --glass: rgba(255, 255, 255, 0.68); --topbar-bg: color-mix(in srgb, var(--primary) 2%, rgba(255, 255, 255, 0.62)); }
  :root[data-theme="dark"] { --glass: rgba(24, 25, 30, 0.7); --topbar-bg: rgba(20, 21, 25, 0.62); }
  .sidebar { backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.5), 8px 0 30px -24px rgba(16, 24, 40, 0.35); }
  .topbar { backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px -22px rgba(16, 24, 40, 0.4); }
  :root[data-theme="dark"] .sidebar { box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06), 8px 0 30px -24px rgba(0, 0, 0, 0.6); }
  :root[data-theme="dark"] .topbar { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px -22px rgba(0, 0, 0, 0.7); }
  /* On small screens the top bar is transparent: no glass there (a filter would also make it the
     reference for the fixed notifications panel). */
  @media (max-width: 1100px) {
    .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
    :root[data-theme="dark"] .topbar { box-shadow: none; }
  }
}
/* Light from above on panels and cards: a fine highlight on the top edge and a layered shadow. */
.panel, .card { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 120px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px -18px rgba(16, 24, 40, 0.22); }
:root[data-theme="dark"] .panel, :root[data-theme="dark"] .card { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 120px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px -18px rgba(0, 0, 0, 0.6); }
.tile, .hero-stat { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 22px -16px rgba(16, 24, 40, 0.25); }
:root[data-theme="dark"] .tile, :root[data-theme="dark"] .hero-stat { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px -16px rgba(0, 0, 0, 0.6); }
/* A sheen that sweeps over a website picture on hover. */
.site-shot::after, .act-shot::after, .timeline-shot::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%); transform: translateX(-120%); }
.timeline-shot { position: relative; overflow: hidden; }
.site-card-large:hover .site-shot::after, .act-tile:hover .act-shot::after, .timeline-shot:hover::after { transform: translateX(120%); transition: transform 0.9s ease; }
.site-card-large:hover .site-shot img, .act-tile:hover .act-shot img { transform: scale(1.03); }
.site-shot img, .act-shot img { transition: transform 0.6s ease, filter 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  body::before, .act-working, .act-scan, .activity-live-dot { animation: none !important; }
  .tm-layer, .site-shot img, .act-shot img, .act-tile { transition: none !important; }
  .site-shot::after, .act-shot::after, .timeline-shot::after { display: none; }
  .site-card-large:hover .site-shot img, .act-tile:hover .act-shot img { transform: none; }
}
.tm-tag { display: none; position: absolute; top: 12px; z-index: 4; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffffff; background: rgba(18, 20, 26, 0.55); backdrop-filter: blur(10px); }
.tm-tag-then { left: 12px; }
.tm-tag-now { right: 12px; background: color-mix(in srgb, var(--brand-primary) 80%, rgba(18, 20, 26, 0.4)); }
.tm-comparing .tm-tag { display: inline-block; }
.tm-comparing .tm-counter { display: none; }
