/* ============================================================
   ALTULA — cases.css
   Case list page: case grid entrance animation, card model
   badge and empty state.
   Scenario bar & heading styles are shared in common.css;
   case-grid / case-card base styles come from style.css.
   ============================================================ */

/* Scenario tabs: show title case from data.js instead of all caps */
.scenario-bar .catalog-filter__btn {
  text-transform: none;
}

/* Case card: product model under the title */
.case-card__model {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Card entrance animation, staggered via --d (set in archive-application.php) */
.cases-grid .case-card {
  animation: case-card-in 0.5s ease both;
  animation-delay: var(--d, 0s);
}

@keyframes case-card-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Empty state (shown when a scenario has no cases) */
.cases-empty {
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  text-align: center;
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .cases-grid .case-card {
    animation: none;
  }
}
