/* premium-shine.css (ZWEB00247) -- a CSS-only hover shine for a premium card.
   A light stripe sweeps once across the card on :hover / :focus-within. It is clipped by its OWN
   child (.premium-shine-mask, overflow:hidden), never by the card itself, so a ring painted outside
   the card's box (rotating-border.css, .rotating-border::before at inset:-3px) is never touched.
   Opt-in per page, like rotating-border.css:
     1. link this file in the page's <head>:  <link rel="stylesheet" href="/static/premium-shine.css">
     2. add class "premium-shine" to the card element (it must already be position:relative --
        .rotating-border provides that);
     3. add ONE empty <div class="premium-shine-mask"></div> as the FIRST child inside that card.
   prefers-reduced-motion: the stripe is not shown at all. */

.premium-shine-mask {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.premium-shine-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform: translateX(-120%);
}
.premium-shine:hover .premium-shine-mask::after,
.premium-shine:focus-within .premium-shine-mask::after {
  transform: translateX(120%);
  transition: transform .65s ease;
}
@media (prefers-reduced-motion: reduce) {
  .premium-shine-mask::after { display: none; }
}
