/* public/community.css — 회원·모임·채팅·프로필·관리자 콘텐츠·경로 로딩 화면 스타일. 아래 선택자는 HTML class/id와 연결됩니다. */
/* 화면 요소 스타일: .groups-heading */
.groups-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
}
/* 화면 요소 스타일: .groups-heading h1 */
.groups-heading h1 {
  font-size: 32px;
}
/* 화면 요소 스타일: .groups-heading .primary */
.groups-heading .primary {
  white-space: nowrap;
}
/* 화면 요소 스타일: .group-toolbar */
.group-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}
/* 화면 요소 스타일: .group-toolbar input */
.group-toolbar input {
  flex: 1;
  min-width: 0;
}
/* 화면 요소 스타일: .group-toolbar select */
.group-toolbar select {
  width: 160px;
}
/* 화면 요소 스타일: .group-toolbar button */
.group-toolbar button {
  white-space: nowrap;
}
/* 화면 요소 스타일: .group-toolbar .selected */
.group-toolbar .selected {
  color: #d7561d;
  border-color: #f16a2b;
}
/* 화면 요소 스타일: .group-grid */
.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
/* 화면 요소 스타일: .group-card */
.group-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  min-width: 0;
}
/* 화면 요소 스타일: .group-card-banner */
.group-card-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff0e4;
  color: #b34b1e;
  padding: 18px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 20px;
}
/* 화면 요소 스타일: .group-card-banner span:first-child */
.group-card-banner span:first-child {
  font-size: 19px;
  letter-spacing: 2px;
  font-weight: 800;
}
/* 화면 요소 스타일: .group-card-title */
.group-card-title {
  display: block;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: inherit;
}
/* 화면 요소 스타일: .group-summary */
.group-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}
/* 화면 요소 스타일: .group-card-bottom */
.group-card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 20px 0;
}
/* 화면 요소 스타일: .group-card > .secondary */
.group-card > .secondary {
  width: 100%;
}
#group-editor,
#group-detail {
  max-width: 630px;
}
#group-detail-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
#group-member-area {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 14px;
}
/* 화면 요소 스타일: .group-section-heading */
.group-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* 화면 요소 스타일: .group-person */
.group-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
/* 화면 요소 스타일: .group-person .secondary */
.group-person .secondary {
  font-size: 12px;
  padding: 5px 9px;
  min-height: 30px;
}
/* 화면 요소 스타일: .group-person > div */
.group-person > div {
  display: flex;
  gap: 8px;
}
/* 화면 요소 스타일: .group-message */
.group-message {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
/* 화면 요소 스타일: .group-message strong */
.group-message strong {
  font-size: 14px;
}
/* 화면 요소 스타일: .group-message small */
.group-message small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
/* 화면 요소 스타일: .group-message p */
.group-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  margin-bottom: 0;
}
#group-message-form {
  text-align: right;
}
#group-message-form .primary {
  margin-top: 8px;
}
#group-close-confirm {
  max-width: 450px;
}
#group-save {
  margin-top: 24px;
}
/* 화면 요소 스타일: .visually-hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* 화면 요소 스타일: .market-header nav */
.market-header nav {
  gap: 20px;
}
/* 화면 요소 스타일: .market-header nav a.current */
.market-header nav a.current {
  color: #e85e22;
}
/* 화면 크기 또는 시스템 테마 조건: @media (max-width: 960px) */
@media (max-width: 960px) {
  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* 화면 크기 또는 시스템 테마 조건: @media (max-width: 640px) */
@media (max-width: 640px) {
  .groups-heading {
    display: block;
  }
  .groups-heading h1 {
    font-size: 27px;
  }
  .groups-heading .primary {
    margin-top: 10px;
  }
  .group-toolbar {
    flex-wrap: wrap;
  }
  .group-toolbar input {
    flex-basis: 100%;
  }
  .group-toolbar select {
    flex: 1;
    width: auto;
  }
  .group-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .group-card {
    padding: 20px;
  }
  .market-header nav > a {
    display: block;
  }
  .market-header nav {
    gap: 25px;
  }
  #group-detail > .detail-actions {
    flex-wrap: wrap;
  }
  .group-card-banner {
    padding: 14px;
  }
}
#chat-dialog {
  max-width: 860px;
  width: calc(100% - 32px);
}
/* 화면 요소 스타일: .chat-layout */
.chat-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  min-height: 380px;
}
#chat-inbox {
  border-right: 1px solid var(--line);
  padding-right: 16px;
  max-height: 470px;
  overflow: auto;
}
/* 화면 요소 스타일: .inbox-item */
.inbox-item {
  display: block;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 14px 10px;
  width: 100%;
  margin-bottom: 5px;
}
/* 화면 요소 스타일: .inbox-item.selected */
.inbox-item.selected {
  background: #fff0e5;
}
.inbox-item strong,
.inbox-item span,
/* 화면 요소 스타일: .inbox-item small */
.inbox-item small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 화면 요소 스타일: .inbox-item strong */
.inbox-item strong {
  font-size: 14px;
}
/* 화면 요소 스타일: .inbox-item span */
.inbox-item span {
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0;
}
/* 화면 요소 스타일: .inbox-item small */
.inbox-item small {
  font-size: 13px;
}
/* 화면 요소 스타일: .chat-peer */
.chat-peer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
/* 화면 요소 스타일: .chat-peer small */
.chat-peer small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
#chat-messages {
  height: 290px;
  overflow: auto;
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* 화면 요소 스타일: .chat-bubble */
.chat-bubble {
  align-self: flex-start;
  max-width: 88%;
  background: #f0f2f4;
  padding: 10px 13px;
  border-radius: 0 12px 12px 12px;
}
/* 화면 요소 스타일: .chat-bubble.mine */
.chat-bubble.mine {
  align-self: flex-end;
  background: #fff0e4;
  border-radius: 12px 0 12px 12px;
}
/* 화면 요소 스타일: .chat-bubble p */
.chat-bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 15px;
}
/* 화면 요소 스타일: .chat-bubble small */
.chat-bubble small {
  font-size: 10px;
  color: #747c86;
  display: block;
  margin-top: 5px;
}
#chat-form {
  display: flex;
  gap: 9px;
  align-items: stretch;
}
#chat-form textarea {
  min-height: 65px;
}
#chat-form button {
  white-space: nowrap;
}
#detail-chat {
  flex: 1;
}
/* 화면 요소 스타일: .chat-layout #chat-empty */
.chat-layout #chat-empty {
  padding: 30px 10px;
}
/* 화면 크기 또는 시스템 테마 조건: @media (max-width: 640px) */
@media (max-width: 640px) {
  .chat-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  #chat-inbox {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 8px;
    max-height: 130px;
    display: flex;
    gap: 8px;
  }
  .inbox-item {
    min-width: 160px;
    max-width: 190px;
  }
  #chat-messages {
    height: 230px;
  }
  .market-header nav {
    gap: 20px;
  }
  .market-header-inner {
    column-gap: 10px;
  }
}
/* 화면 크기 또는 시스템 테마 조건: @media (prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
  .inbox-item.selected {
    background: #382c24;
  }
  .chat-bubble {
    background: #2e343c;
  }
  .chat-bubble.mine {
    background: #453122;
  }
  .chat-bubble small {
    color: #b4bbc5;
  }
}
/* 화면 요소 스타일: .profile-layout */
.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  max-width: 960px;
}
/* 화면 요소 스타일: .profile-card */
.profile-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 24px;
  background: var(--surface-soft);
}
/* 화면 요소 스타일: .profile-card .primary */
.profile-card .primary {
  margin-top: 18px;
}
/* 화면 요소 스타일: .profile-avatar-wrap */
.profile-avatar-wrap {
  display: grid;
  place-items: center;
  margin: 24px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  background: #ffeada;
  color: #d96c35;
}
/* 화면 요소 스타일: .profile-avatar-wrap img */
.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 화면 요소 스타일: .profile-avatar-wrap > span */
.profile-avatar-wrap > span {
  font-size: 65px;
  font-weight: 800;
}
/* 화면 요소 스타일: .seller-avatar */
.seller-avatar {
  object-fit: cover;
}
#seller-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
#profile-avatar-remove {
  margin-top: 15px;
}
/* 화면 요소 스타일: .profile-card input:disabled */
.profile-card input:disabled {
  opacity: 0.7;
}
/* 화면 크기 또는 시스템 테마 조건: @media (max-width: 760px) */
@media (max-width: 760px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .profile-card {
    padding: 22px;
  }
  .profile-avatar-wrap {
    width: 105px;
    height: 105px;
  }
}
/* 화면 크기 또는 시스템 테마 조건: @media (prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
  .profile-avatar-wrap {
    background: #3c2a20;
    color: #ffab70;
  }
}
/* 화면 요소 스타일: .admin-tabs */
.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}
/* 화면 요소 스타일: .admin-tabs button */
.admin-tabs button {
  border: 0;
  background: none;
  padding: 13px 20px;
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
  border-bottom: 3px solid transparent;
}
/* 화면 요소 스타일: .admin-tabs .selected */
.admin-tabs .selected {
  color: var(--blue);
  border-color: var(--blue);
}
/* 화면 요소 스타일: .moderation-toolbar */
.moderation-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
/* 화면 요소 스타일: .moderation-toolbar > select */
.moderation-toolbar > select {
  width: auto;
  min-width: 180px;
}
/* 화면 요소 스타일: .moderation-toolbar .search */
.moderation-toolbar .search {
  max-width: 430px;
  flex: 1;
}
/* 화면 요소 스타일: .moderation-toolbar .search input */
.moderation-toolbar .search input {
  min-width: 180px;
}
#moderation-editor {
  max-width: 620px;
}
#mod-save {
  margin-top: 20px;
}
#moderation-rows td:nth-child(2) {
  min-width: 260px;
  max-width: 470px;
}
#moderation-rows td small {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#moderation-rows td strong {
  white-space: normal;
}
#moderation-rows td:last-child {
  white-space: nowrap;
}
#moderation-log-dialog {
  max-width: 750px;
}
/* 화면 크기 또는 시스템 테마 조건: @media (max-width: 640px) */
@media (max-width: 640px) {
  .moderation-toolbar .search {
    flex-basis: 100%;
    max-width: none;
    margin: 0;
  }
  .moderation-toolbar > select {
    flex: 1;
  }
  .admin-tabs button {
    padding: 12px 16px;
    font-size: 15px;
  }
}
#mod-photos > img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
#mod-photos {
  margin: 12px 0;
}
/* 화면 요소 스타일: .route-state */
.route-state {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}
/* 화면 요소 스타일: .route-state h1 */
.route-state h1 {
  font-size: 28px;
  color: var(--foreground);
}
/* 화면 요소 스타일: .route-state p */
.route-state p {
  margin: 0;
  max-width: 550px;
}
/* 화면 요소 스타일: .route-state button */
.route-state button {
  margin-top: 12px;
}
#account-open[aria-busy="true"] {
  min-width: 88px;
  cursor: wait;
}
/* 화면 요소 스타일: .admin-loading */
.admin-loading {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
#group-messages {
  max-height: 360px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 15px;
  padding-right: 8px;
}
/* 화면 요소 스타일: .group-message */
.group-message {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background: var(--surface-soft);
}
/* 화면 요소 스타일: .group-message.own-message */
.group-message.own-message {
  border-color: #e8ba9d;
  margin-left: 24px;
}
/* 화면 요소 스타일: .group-person > div */
.group-person > div {
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* 화면 크기 또는 시스템 테마 조건: @media (prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
  .group-message.own-message {
    border-color: #805435;
  }
}
