/* =========================================================================
 * Club Risque Dancer List – style.css
 * No frameworks. All selectors are namespaced with .crdl-
 * ========================================================================= */

/* -----------------------------------------------------------------------
 * Container & header
 * --------------------------------------------------------------------- */
.crdl-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2d2d2d;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.crdl-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.crdl-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.crdl-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  color: #1b1b1b;
}

.crdl-filters {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* -----------------------------------------------------------------------
 * Search input
 * --------------------------------------------------------------------- */
.crdl-container .search {
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1px solid #e2e4ea;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  color: #1f2937;
  min-width: 180px;
  height: 46px;
  position: relative;
}

.crdl-container .search:focus {
  border-color: #ec7dad;
  box-shadow: 0 0 0 3px rgba(236, 125, 173, 0.14);
}

.crdl-container .search::placeholder {
  color: #9ca3af;
}

/* -----------------------------------------------------------------------
 * Sort dropdown
 * --------------------------------------------------------------------- */
.crdl-container .sort {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #e2e4ea;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: #111827;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%236B7280' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 145px;
  width: auto;
  position: relative;
  top: -2px;
  height: 46px;
}

.crdl-container .sort:focus {
  border-color: #ec7dad;
  box-shadow: 0 0 0 3px rgba(236, 125, 173, 0.14);
}

/* -----------------------------------------------------------------------
 * Dancer count
 * --------------------------------------------------------------------- */
.crdl-container .count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #c13b80;
  white-space: nowrap;
  background: #fceaf3;
  border: 1px solid #f9d4e6;
  border-radius: 999px;
  padding: 3px 10px;
}

/* -----------------------------------------------------------------------
 * Grid – 5 columns desktop, 3 tablet, 1-2 mobile
 * --------------------------------------------------------------------- */
.crdl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .crdl-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .crdl-title {
    font-size: 22px;
  }

  .crdl-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .crdl-container .sort {
    width: 100%;
  }

  .crdl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .crdl-grid {
    grid-template-columns: 1fr;
  }
}

/* -----------------------------------------------------------------------
 * Card
 * --------------------------------------------------------------------- */
.crdl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  padding: 12px 14px;
  border: 1px solid #ece7ef;
  border-radius: 12px;
  background: #fff;
  text-align: left;
  transition: box-shadow 0.2s, transform 0.15s;
}

.crdl-card:hover {
  box-shadow: 0 2px 10px rgba(35, 32, 48, 0.08);
  transform: translateY(-1px);
}

.crdl-card__name {
  font-size: 24px;
  font-weight: 600;
  color: #191920;
  line-height: 1.1;
  word-break: break-word;
}

/* -----------------------------------------------------------------------
 * Status badges – pill style
 * --------------------------------------------------------------------- */
.crdl-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* READY → green */
.crdl-badge--ready {
  background: #d4f4e2;
  color: #1a7a45;
}

/* FLOOR → pink */
.crdl-badge--floor {
  background: #ffe0ef;
  color: #c2185b;
}

/* STAGE → purple */
.crdl-badge--stage {
  background: #ede0ff;
  color: #6a1aaa;
}

/* ON SHORT LIST → purple */
.crdl-badge--shortlist {
  background: #f1e8fb;
  color: #8c37bb;
}

/* -----------------------------------------------------------------------
 * Loading state
 * --------------------------------------------------------------------- */
.crdl-loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 40px 0;
  font-size: 14px;
  color: #888;
}

.crdl-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f4b8cc;
  border-top-color: #d63384;
  border-radius: 50%;
  animation: crdl-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes crdl-spin {
  to { transform: rotate(360deg); }
}

/* -----------------------------------------------------------------------
 * Empty & error states
 * --------------------------------------------------------------------- */
.crdl-empty,
.crdl-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
}

.crdl-empty {
  color: #aaa;
}

.crdl-error {
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid #f5c6c0;
  border-radius: 8px;
  padding: 16px 20px;
}
