/* Rooms: WhatsApp-like list density and layout */

/* Row density (WhatsApp Chats list): compact 40px avatar, tight spacing */
#roomsTab .roomsRow {
  min-height: 56px;
  padding: 8px var(--pad-r) 8px var(--pad-l);
}

#roomsTab .roomsRowAvatar {
  width: 40px;
  height: 40px;
}

#roomsTab .roomsRowAvatarLetter {
  font-size: 17px;
}

/* Divider starts after avatar (WhatsApp pattern) */
#roomsTab .roomsRow {
  position: relative;
}

#roomsTab .roomsRow::after {
  content: "";
  position: absolute;
  left: calc(var(--pad-l) + 40px + 10px);
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--wa-divider, rgba(0,0,0,.08));
}

#roomsTab .roomsRow:last-child::after {
  display: none;
}

/* Discover: sticky header with search + radius (WhatsApp-style) */
#roomsTab .roomsDiscoveryToolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px var(--pad-r) 10px var(--pad-l);
  gap: 8px;
  max-width: var(--app-max-w, 100%);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

#roomsTab .roomsDiscoverySearch {
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 10px;
}

#roomsTab .roomsDiscoveryRadiusGroup {
  width: 100%;
  max-width: var(--app-max-w);
}

/* Discover empty state: balanced, with optional Enable location CTA */
#roomsTab .roomsDiscoveryEmptyState {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: var(--pad);
}

#roomsTab .roomsDiscoveryEmptyState .roomsEmptyCard {
  text-align: center;
  max-width: 280px;
}

#roomsTab .roomsDiscoveryEmptyState .roomsEmptySub {
  margin-bottom: 12px;
}

#roomsTab .roomsDiscoveryEmptyState .roomsDiscoveryEmptyEnableLoc {
  margin-top: 4px;
}

#roomsTab .roomsRowActionChip {
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
}

/* My Rooms: section labels */
#roomsTab .roomsSectionLabel {
  font-size: 12px;
  font-weight: 700;
  color: var(--wa-muted, rgba(60,60,67,.6));
  padding: 12px var(--pad-l) 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Create room CTA when no owned room */
#roomsTab .roomsRowCreate {
  min-height: 56px;
}

/* Empty state: prominent CTA when no rooms at all */
#roomsTab .roomsEmptyState.roomsEmptyStateCreate {
  padding: 32px var(--pad);
  text-align: center;
}

#roomsTab .roomsEmptyStateCreate .roomsEmptyTitle {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

#roomsTab .roomsEmptyStateCreate .roomsEmptySub {
  font-size: 14px;
  color: var(--wa-muted);
  margin-bottom: 20px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

#roomsTab .roomsEmptyStateCreate .btnPrimary {
  min-width: 200px;
}

/* No joined rooms hint (under "Your room" when user has no joined rooms) */
#roomsTab .roomsJoinedEmpty {
  padding: 12px var(--pad-l);
  font-size: 13px;
  color: var(--wa-muted, rgba(60,60,67,.6));
}
