/* Town 360 — DIRECTORY CARD KIT styles (directory-base PRESENTATION)
 * Companion to js/dir-cards.js. Motion = transform/opacity only;
 * chips sit on solid plates in both themes; IO pause via .dm-paused
 * (shared class with the motion kit); reduced-motion = static. */

/* entrance rise + press/hover life */
.dc-card { transition: transform .22s ease, box-shadow .22s ease; }
.dc-in { animation: dcRise .5s cubic-bezier(.22,.9,.36,1) both; }
@keyframes dcRise {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.dc-card:active { transform: scale(.985); }
@media (hover: hover) {
  .dc-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,6,23,.28); }
}

/* thumbnail chips (video + open state) */
.dc-thumbwrap { position: relative; }
.dc-chips {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 3px; pointer-events: none;
}
.dc-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(4,21,10,.86); color: #EAF7EC;
  font-size: 8.5px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 6px; border-radius: 999px; white-space: nowrap;
  max-width: 100%; overflow: hidden;
}
.dc-chip b { color: var(--green, #3DDC4E); font-size: 8px; }
.dc-vid { animation: dcVidPulse 2.6s ease-in-out infinite; }
@keyframes dcVidPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,78,.0); }
  50% { box-shadow: 0 0 0 3px rgba(61,220,78,.35); }
}
.dc-state { animation: dcDrift 5.5s ease-in-out infinite; }
.dc-on { background: #0B6B22; color: #fff; }
.dc-off { background: rgba(90,10,10,.88); color: #FDECEC; }
@keyframes dcDrift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* pause + reduced motion (house law) */
.dm-paused .dc-vid, .dm-paused .dc-state { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .dc-card { transition: none; }
  .dc-in, .dc-vid, .dc-state { animation: none; }
}
