/* site.json plugins — loaded after style.css (see _base.html) */

/* --- headertitle: contract-vowels --- */
.site-header--plugin-contract-vowels .plugin-contract-vowels__vowel {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: bottom;
  transition: opacity 0.5s ease, max-width 0.5s ease;
}

.site-header--plugin-contract-vowels .plugin-contract-vowels__cons {
  display: inline;
}

.site-header--plugin-contract-vowels:hover .plugin-contract-vowels__vowel {
  max-width: 1.2em;
  opacity: 1;
}

/* --- avatar: float-on-hover --- */
.profile__avatar-wrap--plugin-float-on-hover {
  position: relative;
  overflow: visible;
  transform: perspective(780px) rotate3d(0, 0, 0, 0deg) rotate(0deg) scale(1);
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.profile__avatar-wrap--plugin-float-on-hover .profile__avatar,
.profile__avatar-wrap--plugin-float-on-hover .profile__avatar--placeholder {
  position: relative;
  z-index: 0;
  border-radius: 50%;
  transition: box-shadow 0.45s ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover .profile__avatar,
[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover .profile__avatar--placeholder {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.profile__avatar-wrap--plugin-float-on-hover::after {
  content: "";
  position: absolute;
  inset: -2%;
  /* No border-radius here: it hard-clips the linear “shine” to a circle (bars look chopped at the rim). */
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transform: rotate(-12deg) scale(1.02);
  transform-origin: center center;
  transition:
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: linear-gradient(
    118deg,
    transparent 36%,
    rgba(255, 255, 255, 0.12) 44%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.12) 56%,
    transparent 64%
  );
  mix-blend-mode: soft-light;
  /* Soft circular mask: feather the gloss toward the edge instead of a sharp disc cut */
  -webkit-mask-image: radial-gradient(
    circle closest-side at 50% 50%,
    #fff 48%,
    rgba(255, 255, 255, 0.45) 72%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle closest-side at 50% 50%,
    #fff 48%,
    rgba(255, 255, 255, 0.45) 72%,
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover::after {
  background: linear-gradient(
    125deg,
    transparent 34%,
    rgba(255, 255, 255, 0.1) 43%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.1) 57%,
    transparent 66%
  );
}

.profile__avatar-wrap--plugin-float-on-hover:hover {
  transform: perspective(780px) rotate3d(0.5, -0.866, 0, 16deg) rotate(1deg) scale(1.08);
}

.profile__avatar-wrap--plugin-float-on-hover:hover::after {
  opacity: 1;
  transform: rotate(14deg) scale(1.08);
}

.profile__avatar-wrap--plugin-float-on-hover:hover .profile__avatar,
.profile__avatar-wrap--plugin-float-on-hover:hover .profile__avatar--placeholder {
  box-shadow:
    2em 4em 6em -2em rgba(0, 0, 0, 0.52),
    1em 2em 3.5em -2.5em rgba(0, 0, 0, 0.45);
}

/* Room for glow + no ancestor clipping (::before wash sits behind avatar) */
.wrap:has(.profile__avatar-wrap--plugin-float-on-hover),
.profile:has(.profile__avatar-wrap--plugin-float-on-hover) {
  overflow: visible;
}

/* Dark hover: compact ellipse wash behind avatar — no border-radius on ::before
   (rounded pseudo was clipping the wash to a circle slightly larger than the avatar). */
[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(42vmin, 10.5rem);
  height: min(42vmin, 10.5rem);
  pointer-events: none;
  /* Slight down-right offset reads as directional falloff / shadow-adjacent highlight */
  transform: translate(calc(-50% + 0.35rem), calc(-50% + 0.6rem));
  /* Ellipse center biased up-left so the brighter mass sits opposite the offset */
  background: radial-gradient(
    ellipse 68% 68% at 44% 40%,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(210, 224, 255, 0.055) 30%,
    rgba(210, 224, 255, 0.018) 50%,
    transparent 66%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}

[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover:hover::before {
  opacity: 1;
}

[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover:hover .profile__avatar,
[data-theme="dark"] .profile__avatar-wrap--plugin-float-on-hover:hover .profile__avatar--placeholder {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}
