/* fx-hoes.css: effect 1 "De hoes groeit open" (live 2026-12-03, uit de effecten-test). Alleen met body.fx-hoes. */

/* de hoezen van de stapel (platenzaak) en de regels van de lijst zijn aan te tikken */
body.fx-hoes #programma.wc-aan .wc-stapel .wc-hoes { pointer-events: auto; cursor: zoom-in; }
body.fx-hoes #net-gedraaid li:not(.net-leeg) { position: relative; }
body.fx-hoes .fxh-knop {
  position: absolute; inset: 0; z-index: 1; width: 100%; margin: 0; padding: 0;
  background: none; border: 0; border-radius: 8px; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
body.fx-hoes .fxh-knop:hover { background: rgba(243, 241, 238, .05); }
body.fx-hoes .fxh-knop:focus-visible { outline: 2px solid #ff6b1a; outline-offset: 2px; }

/* donker over de pagina */
.fxh-laag { position: fixed; inset: 0; z-index: 9500; background: rgba(6, 5, 4, .8); }
.fxh-laag[hidden], .fxh-kaart[hidden] { display: none; }

/* de grote kaart */
.fxh-kaart {
  position: fixed; z-index: 9501; left: 50%; top: 50%; transform: translate(-50%, -50%);
  box-sizing: border-box; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 12px 12px 16px; border-radius: 18px;
  background: #13110f; border: 1px solid rgba(243, 241, 238, .12); box-shadow: 0 30px 90px rgba(0, 0, 0, .75);
  font-family: Figtree, "Noto Sans", system-ui, sans-serif; color: #f3f1ee; text-align: left;
}
.fxh-kaart:focus { outline: none; }
.fxh-img {
  display: block; width: 100%; height: auto; max-height: calc(100dvh - 250px); aspect-ratio: 1; object-fit: cover;
  border-radius: 10px; background: #1d1a17;
}
.fxh-tekst { padding: 14px 4px 0; }
.fxh-tijd { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #ff6b1a; }
.fxh-titel { margin: 4px 0 2px; font: 700 22px/1.2 Figtree, "Noto Sans", system-ui, sans-serif; letter-spacing: -.01em; color: #f3f1ee; overflow-wrap: anywhere; }
.fxh-artiest { margin: 0; font-size: 15px; color: rgba(243, 241, 238, .66); }
.fxh-speel {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; margin-top: 16px; padding: 0 14px;
  border-radius: 12px; background: #ff6b1a; color: #140a04; font-size: 15px; font-weight: 700; text-decoration: none;
}
.fxh-speel svg { width: 18px; height: 18px; flex: none; }
.fxh-speel:hover { background: #ff7e38; }
.fxh-speel:focus-visible, .fxh-dicht:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fxh-dicht {
  position: absolute; z-index: 2; top: 20px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px;
  margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(10, 9, 8, .62); color: #fff; box-shadow: inset 0 0 0 1px rgba(243, 241, 238, .18);
}
.fxh-dicht svg { width: 18px; height: 18px; }
.fxh-dicht:hover { background: rgba(10, 9, 8, .85); }

/* zonder View Transitions: een rustige fade */
.fxh-kaart.fxh-in { animation: fxh-in .28s cubic-bezier(.2, .7, .2, 1); }
.fxh-laag:not([hidden]) { animation: fxh-donker .25s ease-out; }
@keyframes fxh-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.96); } }
@keyframes fxh-donker { from { opacity: 0; } }

/* met View Transitions: het hoesje groeit van zijn plek naar de kaart (en terug) */
html.fxh-vt::view-transition-group(fxh-hoes) { animation-duration: .48s; animation-timing-function: cubic-bezier(.2, .75, .2, 1); }
html.fxh-vt::view-transition-group(fxh-kaart) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .75, .2, 1); }
html.fxh-vt::view-transition-old(root), html.fxh-vt::view-transition-new(root) { animation-duration: .32s; }
html.fxh-vt::view-transition-old(fxh-hoes), html.fxh-vt::view-transition-new(fxh-hoes) { height: 100%; object-fit: cover; border-radius: 10px; }

/* terug naar de stapel of de lijst: korter dan open */
html.fxh-vt.fxh-terug::view-transition-group(fxh-hoes) { animation-duration: .3s; }
html.fxh-vt.fxh-terug::view-transition-group(fxh-kaart) { animation-duration: .26s; }
html.fxh-vt.fxh-terug::view-transition-old(root), html.fxh-vt.fxh-terug::view-transition-new(root) { animation-duration: .22s; }

/* minder beweging: niet groeien of schuiven, wel een korte, zachte fade */
@keyframes fxh-zacht { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .fxh-kaart.fxh-in { animation: fxh-zacht .2s ease-out; }
  .fxh-laag:not([hidden]) { animation: fxh-donker .2s ease-out; }
}
