/* کارت‌های لیست تصویربرداران — CreatorList.module.css (پیشوند cl-) */

.cl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.cl-card {
  position: relative;
  background: var(--tile, #141417);
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease;
}
.cl-card:hover {
  transform: translateY(-2px);
  /* Each card borrows its owner's accent on hover — a piece of the
     personalisation surfacing before the profile is opened. */
  border-color: color-mix(in srgb, var(--card-accent) 45%, transparent);
}

/* Identity first: who this is, not what they photographed. */
.cl-cardMain {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  text-decoration: none;
  color: inherit;
}

.cl-avatarWrap { flex-shrink: 0; }
.cl-avatar, .cl-avatarEmpty {
  width: 56px; height: 56px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.cl-avatarEmpty {
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--card-accent) 80%, #000);
  color: #0b0b0d;
  font-size: 22px; font-weight: 700;
}

.cl-cardInfo { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cl-cardName {
  font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cl-cardChips { display: flex; flex-wrap: wrap; gap: 4px; }
.cl-miniChip {
  font-size: 10.5px; padding: 3px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--card-accent) 18%, transparent);
  color: var(--card-accent);
  white-space: nowrap;
}
.cl-cardMeta {
  display: flex; flex-wrap: wrap; gap: 3px 10px;
  font-size: 11.5px; color: var(--fg-3, #6c6c76);
}
.cl-rate { color: var(--fg-2, #a8a8b0); }

/* ---------- work samples ------------------------------------------------ */

.cl-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 0fr;
  gap: 4px;
  padding: 0 15px;
  transition: grid-template-rows .28s cubic-bezier(.22,1,.36,1),
              padding .28s ease, opacity .2s ease;
  opacity: 0;
}
.cl-samples > * { overflow: hidden; min-height: 0; }
.cl-samplesOpen { grid-template-rows: 1fr; padding: 0 15px 15px; opacity: 1; }

.cl-sample { display: block; border-radius: 10px; overflow: hidden; background: var(--tile-2, #1b1b1f); }
.cl-sampleImg { width: 100%; height: 62px; object-fit: cover; display: block; }

.cl-sampleBtn {
  display: block;
  width: calc(100% - 30px);
  margin: 0 15px 15px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(255,255,255,.08));
  background: transparent;
  color: var(--fg-2, #a8a8b0);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.cl-sampleBtn:hover { background: rgba(255,255,255,.05); color: var(--fg, #f4f4f6); }

/* On a pointer device the samples open on hover and the button is redundant:
   a control that duplicates something already happening just adds noise. */
@media (hover: hover) and (pointer: fine) {
  .cl-sampleBtn { display: none; }
  .cl-card:hover .cl-samples { grid-template-rows: 1fr; padding: 0 15px 15px; opacity: 1; }
}

.cl-empty { text-align: center; color: var(--fg-3, #6c6c76); font-size: 14px; padding: 70px 20px; }

@media (prefers-reduced-motion: reduce) {
  .cl-samples { transition: none; }
}
