/* ==================== TWILIGHT CARDS (COMMUNITY GALLERY) ====================
   Builds on collection.css (loaded first as a dependency) for --tw-* tokens,
   .tw-card-tile grid, modal, badges, search/filter controls, pagination.
   This file only adds what's unique to this page.
*/

.twilight-cards-page {
  position: relative;
  z-index: 1;
}

.tw-tc-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.tw-tc-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.tw-tc-totals {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.tw-tc-total-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: var(--tw-card-bg);
  border: 1px solid var(--tw-border);
  border-radius: 14px;
  padding: 0.9rem 1.75rem;
  min-width: 110px;
}

.tw-tc-total-chip strong {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--tw-purple-light), var(--tw-blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tw-tc-total-chip span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.tw-tc-controls-row {
  justify-content: flex-end;
}

/* ---------- Card tile: artist attribution row ---------- */
.tw-tc-artist-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0.85rem 0.75rem;
  margin-top: -0.4rem;
}

.tw-tc-artist-avatar-mini {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tw-purple), var(--tw-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
}

.tw-tc-artist-name-mini {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Status badge (on tile + modal) ---------- */
.tw-tc-status-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
}

.tw-tc-status-pending  { background: #b8860b; }
.tw-tc-status-approved { background: #1f9d55; }
.tw-tc-status-rejected { background: #c0304a; }

/* ---------- Modal: artist block ---------- */
.tw-tc-modal-artist {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tw-border);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.tw-tc-modal-artist-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tw-purple), var(--tw-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  overflow: hidden;
}

.tw-tc-modal-artist-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-tc-modal-artist-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tw-tc-modal-artist-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .tw-tc-controls-row { justify-content: flex-start; }
  .tw-tc-totals { gap: 0.75rem; }
  .tw-tc-total-chip { padding: 0.75rem 1.25rem; min-width: 0; flex: 1; }
}
