/* More playbooks, ported from the phase 2 use case concept (uc-more): the filters this play is filed under, then six
   related plays. Logical properties throughout, so Arabic (dir="rtl") mirrors. */

/* The playbook cards: the workflows module's cards (styles from hubl-modules/workflows.module, Concept 4) with the
   concept's phase 3 changes, scoped to this section so they never meet the shared module's own rules (the same copy
   as use-case-finder's, which adds an industries line). Each card spans five rows of the grid (logos, title,
   description, teams, link), so the rows line up across cards. The template sets each card's --card field colour and
   --tilt by position; the hand-placed tilts mirror with the layout (DESIGN.md, The Room To Translate Rule). */
.uc-more .wf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); margin-top: clamp(40px, 5vw, 64px); }
[dir="rtl"] .uc-more .wf-grid { --tilt-dir: -1; }
/* Concept change for phase 3 (from the industry concept): the lift shadow is pre-drawn on ::before and fades in; the
   card straightens and rises only when motion is welcome; focus lifts on :focus-visible. */
.uc-more .wf {
  position: relative; min-width: 0;
  display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px;
  padding: 24px 24px 22px; border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  rotate: calc(var(--tilt, 0deg) * var(--tilt-dir, 1));
  transition: rotate 280ms var(--ease-out), translate 280ms var(--ease-out);
}
@supports not (grid-template-rows: subgrid) {
  .uc-more .wf { display: flex; flex-direction: column; gap: 14px; }
}
.uc-more .wf::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transition: opacity 280ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .uc-more .wf:hover::before { opacity: 1; }
}
.uc-more .wf::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 0; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .uc-more .wf:hover { rotate: 0deg; translate: 0 -6px; }
  .uc-more .wf:hover::after { height: 7px; }
}
.uc-more .wf:has(.h3 a:focus-visible)::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .uc-more .wf:has(.h3 a:focus-visible) { rotate: 0deg; translate: 0 -6px; }
}
.uc-more .wf-logos { display: flex; padding-inline-start: 10px; }
.uc-more .wf-logo {
  position: relative;
  width: 44px; height: 44px; margin-inline-start: -10px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--logo-bg); border: 3px solid var(--card);
  box-shadow: 0 3px 6px -2px rgb(11 30 51 / 0.3);
}
.uc-more .wf-logo:first-child { z-index: 2; }
.uc-more .wf-logo img { width: 24px; height: 24px; }
.uc-more .wf .h3 { font-size: 1.28rem; }
.uc-more .wf .h3 a { text-decoration: none; }
.uc-more .wf .h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.uc-more .wf .h3 a:focus-visible { outline: none; }
.uc-more .wf .h3 a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 4px; }
.uc-more .wf-desc { font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.uc-more .wf-cats { display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 6px; }
.uc-more .wf-open { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.uc-more .wf-open .i { width: 18px; height: 18px; }
@media (max-width: 1023px) {
  .uc-more .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .uc-more .wf-grid { grid-template-columns: minmax(0, 1fr); }
  .uc-more .wf { rotate: calc(var(--tilt, 0deg) * var(--tilt-dir, 1) / 2); }
}
@media (prefers-reduced-motion: reduce) {
  .uc-more .wf, .uc-more .wf-open .i { transition: none; }

/* The facets this play is filed under: each opens the use cases hub with that filter set (?team=, ?industry=,
   ?goal=, which the hub reads) */
.uc-more-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; }
.uc-more-tags > span { font: 700 14px/1.3 var(--text); color: var(--ink-soft); margin-inline-end: 4px; }
.uc-more-tag {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font: 700 15px/1.2 var(--text); text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.uc-more-tag .i { width: 16px; height: 16px; color: var(--ink-soft); }
@media (hover: hover) and (pointer: fine) {
  .uc-more-tag:hover { border-color: var(--ink-soft); background: var(--surface-2); }
}
