/* ════════════════════════════════════════════════════════════════════
   holographic.css — the calling-card aesthetic, turned up.

   Layers glassmorphism + holographic iridescence over the dark base in
   style.css. Loaded on the personal-site landing (index.html). The
   shared nav glass lives in site-nav.css so it stays consistent
   site-wide; the heavy treatment (aurora, glass cards, holographic
   headers) is scoped to whichever page links this file.

   Palette is the coordinated spectrum already used as accent across the
   Historical Apoplexy pages — cyan, blue, violet, pink, gold, mint —
   here promoted from accent to signature.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --holo-1: #7fe9ff; /* cyan   */
  --holo-2: #70b5f9; /* blue   */
  --holo-3: #b89cff; /* violet */
  --holo-4: #f3a9d8; /* pink   */
  --holo-5: #e8c47e; /* gold   */
  --holo-6: #8fe3b0; /* mint   */
  --holo-spectrum: linear-gradient(115deg,
    var(--holo-1), var(--holo-2), var(--holo-3),
    var(--holo-4), var(--holo-5), var(--holo-6), var(--holo-1));
  --glass-bg: rgba(26, 31, 40, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.14);
}

/* ── Aurora backdrop — gives the frosted glass something to refract ─── */

body {
  background-color: #090c12;
  background-image:
    radial-gradient(54% 44% at 10% -2%,  rgba(112, 181, 249, 0.20), transparent 62%),
    radial-gradient(48% 42% at 92% 6%,   rgba(184, 156, 255, 0.18), transparent 64%),
    radial-gradient(50% 46% at 78% 102%, rgba(232, 196, 126, 0.13), transparent 64%),
    radial-gradient(46% 44% at 20% 104%, rgba(143, 227, 176, 0.12), transparent 64%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* ── Glass cards ────────────────────────────────────────────────────── */

.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  position: relative;
  box-shadow:
    0 12px 42px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* holographic hairline riding the top edge of every card */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--holo-spectrum);
  background-size: 200% 100%;
  animation: holo-pan 13s linear infinite;
  opacity: 0.9;
  pointer-events: none;
  z-index: 3;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 54px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(112, 181, 249, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

/* ── Holographic headers ────────────────────────────────────────────── */

.section-header,
.activity-title,
.article-title,
.article-body h2,
.post-block-title,
.rail-card-header,
.profile-name {
  background-image: var(--holo-spectrum);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-pan 9s linear infinite;
}

.profile-name {
  font-size: 30px;
  letter-spacing: -0.01em;
}

/* a faint frosted underline beneath the standing section headers */
.section-header,
.rail-card-header {
  position: relative;
}
.section-header::after,
.rail-card-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(127, 233, 255, 0.55), rgba(184, 156, 255, 0.30), transparent 80%);
}
.rail-card-header::after { left: 16px; right: 16px; }

/* ── Profile photo: holographic halo ───────────────────────────────── */

.profile-photo-wrapper {
  position: relative;
  display: inline-block;
}
.profile-photo-wrapper::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--holo-1), var(--holo-2), var(--holo-3),
    var(--holo-4), var(--holo-5), var(--holo-6), var(--holo-1));
  animation: holo-spin 14s linear infinite;
  z-index: 0;
  filter: saturate(1.2);
}
.profile-photo {
  position: relative;
  z-index: 1;
}

/* ── Service tags → frosted holographic pills ──────────────────────── */

.service-tag {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.service-tag:hover {
  background: rgba(112, 181, 249, 0.10);
  border-color: rgba(127, 233, 255, 0.55);
  color: #fff;
}

/* ── Press citations → light glass panels ──────────────────────────── */

.press-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.press-item:hover {
  border-color: rgba(184, 156, 255, 0.45);
  background: rgba(184, 156, 255, 0.07);
}

/* ── Accent links: holographic on hover ────────────────────────────── */

.followers-count,
.post-block-cta,
.article-feed-footer .nav-link {
  transition: color 0.18s ease;
}
.followers-count:hover,
.post-block:hover .post-block-cta,
.article-feed-footer .nav-link:hover {
  background-image: var(--holo-spectrum);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: holo-pan 6s linear infinite;
}

/* ── Banner carousel dot: holographic active state ─────────────────── */

.banner-dot--active {
  background: var(--holo-spectrum);
  background-size: 200% auto;
  animation: holo-pan 8s linear infinite;
}

/* ── Status pills — the calling-card lozenge ───────────────────────────
   The signature element from the Historical Apoplexy pages (.lane-status):
   a rounded outline badge, tiny uppercase letterspaced text, coordinated
   colour per status. Reused here for section/status metadata. */

.holo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
  border: 1px solid rgba(127, 233, 255, 0.42);
  color: #b9ecfb;
  background: rgba(127, 233, 255, 0.08);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.holo-pill--gold {
  border-color: rgba(232, 196, 126, 0.46);
  color: #f0d49a;
  background: rgba(232, 196, 126, 0.09);
}
.holo-pill--violet {
  border-color: rgba(184, 156, 255, 0.50);
  color: #d3c2ff;
  background: rgba(184, 156, 255, 0.11);
}
.holo-pill--green {
  border-color: rgba(143, 227, 176, 0.46);
  color: #b3edca;
  background: rgba(143, 227, 176, 0.09);
}
.holo-pill--pink {
  border-color: rgba(243, 169, 216, 0.46);
  color: #f4cbe6;
  background: rgba(243, 169, 216, 0.11);
}

/* Showpiece: a full holographic gradient border (padding-box / border-box). */
.holo-pill--spectrum {
  border: 1px solid transparent;
  color: #fff;
  background:
    linear-gradient(rgba(14, 17, 23, 0.85), rgba(14, 17, 23, 0.85)) padding-box,
    var(--holo-spectrum) border-box;
  background-size: auto, 200% auto;
  animation: holo-pan 8s linear infinite;
}

/* Row wrapper for one or more pills. --inset aligns with card body padding. */
.holo-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}
.holo-pill-row--inset {
  padding: 0 24px;
  margin: 0 0 14px;
}

/* Press publisher line → promoted to a pill in place (no markup change). */
.press-publisher {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  border: 1px solid rgba(127, 233, 255, 0.40);
  background: rgba(127, 233, 255, 0.08);
  color: #b9ecfb;
  letter-spacing: 0.07em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ── Keyframes ──────────────────────────────────────────────────────── */

@keyframes holo-pan {
  to { background-position: -200% center; }
}

@keyframes holo-spin {
  to { transform: rotate(360deg); }
}

/* ── Respect reduced-motion: keep the colour, drop the movement ─────── */

@media (prefers-reduced-motion: reduce) {
  .card::before,
  .profile-photo-wrapper::before,
  .section-header,
  .activity-title,
  .article-title,
  .article-body h2,
  .post-block-title,
  .rail-card-header,
  .profile-name,
  .holo-pill--spectrum,
  .banner-dot--active,
  .followers-count:hover,
  .post-block:hover .post-block-cta,
  .article-feed-footer .nav-link:hover {
    animation: none;
  }
}
