/* ════════════════════════════════════════
   커뮤니티 히어로 배너 오버라이드
════════════════════════════════════════ */
.community-hero {
  background-image: url('/static/images/background/bg_community.png');
  background-color: #2D1B4E;
}

.community-hero .news-hero__label {
  color: rgba(255, 200, 120, 0.75);
  text-shadow:
    -1px -1px 0 rgba(120, 50, 0, 0.5),
     1px -1px 0 rgba(120, 50, 0, 0.5),
    -1px  1px 0 rgba(120, 50, 0, 0.5),
     1px  1px 0 rgba(120, 50, 0, 0.5);
}

.community-hero .news-hero__title {
  color: #fff;
  text-shadow:
    -1px -1px 0 rgba(160, 65, 0, 0.65),
     0   -1px 0 rgba(160, 65, 0, 0.65),
     1px -1px 0 rgba(160, 65, 0, 0.65),
    -1px  0   0 rgba(160, 65, 0, 0.65),
     1px  0   0 rgba(160, 65, 0, 0.65),
    -1px  1px 0 rgba(160, 65, 0, 0.65),
     0    1px 0 rgba(160, 65, 0, 0.65),
     1px  1px 0 rgba(160, 65, 0, 0.65),
     0 0 18px rgba(255, 140, 20, 0.55),
     0 2px 14px rgba(0, 0, 0, 0.75);
}

/* ════════════════════════════════════════
   자유게시판 목록 테이블
════════════════════════════════════════ */
.free-list-header {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  background: #f5f5f5;
  border-top: 2px solid #222;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.free-row__link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 8px;
  transition: background 0.15s;
}
.free-row__link:hover { background: #f8f4ff; }

.free-col { flex-shrink: 0; }
.free-col--num   { width: 60px;  text-align: center; font-size: 13px; color: #aaa; }
.free-col--cat   { width: 72px;  text-align: center; }
.free-col--title { flex: 1; font-size: 15px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 12px; }
.free-col--author{ width: 90px;  text-align: center; font-size: 13px; color: #777; }
.free-col--date  { width: 64px;  text-align: center; font-size: 13px; color: #aaa; }
.free-col--views { width: 56px;  text-align: center; font-size: 13px; color: #aaa; }
.free-col--likes { width: 48px;  text-align: center; font-size: 13px; color: #aaa; }
.free-title { cursor: pointer; }
.free-title:hover { color: var(--color-purple); }
.cmt-cnt { font-size: 12px; color: var(--color-purple); font-weight: 700; margin-left: 3px; }
.pin-icon { font-size: 14px; }

/* ════════════════════════════════════════
   헤딩 + 글쓰기 버튼 행
════════════════════════════════════════ */
.free-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-write {
  padding: 8px 20px;
  background: var(--color-purple);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.btn-write:hover { background: #5a2fa0; color: #fff; }

/* ════════════════════════════════════════
   글쓰기 폼 (자유게시판)
════════════════════════════════════════ */
.write-form { border-top: 2px solid #222; margin-top: 0; }
.write-form__row { display: flex; align-items: center; border-bottom: 1px solid #eee; min-height: 50px; }
.write-form__row--content { display: grid; grid-template-columns: 90px 1fr; align-items: start; padding: 12px 0; }
.write-form__label {
  width: 90px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: #555;
  padding: 0 16px; background: #f9f9f9; align-self: stretch;
  display: flex; align-items: center; border-right: 1px solid #eee;
}
.write-form__author { padding: 10px 16px; font-size: 14px; color: #555; font-weight: 500; }
.write-form__input {
  flex: 1; padding: 10px 16px; border: none; font-size: 14px;
  font-family: var(--font-main); color: #222; background: transparent;
}
.write-form__input:focus { outline: none; }
.write-form__input--title { font-size: 15px; }
.write-form__textarea {
  flex: 1; padding: 10px 16px; border: none; font-size: 14px;
  font-family: var(--font-main); color: #222; resize: vertical; line-height: 1.7; background: transparent;
}
.write-form__textarea:focus { outline: none; }
.write-form__editor { min-width: 0; padding: 4px 16px; }
.write-form__actions { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px 0; }
.btn-write--submit { border: none; cursor: pointer; font-family: var(--font-main); padding: 10px 32px; font-size: 15px; }

/* ════════════════════════════════════════
   badge colors
════════════════════════════════════════ */
.news-main .badge--orange { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

/* ════════════════════════════════════════
   이미지 갤러리 - 카테고리 필터
════════════════════════════════════════ */
.img-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.img-filter__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.img-filter__cat {
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: #f3f3f3;
  border: 1.5px solid transparent;
  transition: all 0.18s;
}
.img-filter__cat:hover { background: #ebe6ff; color: var(--color-purple); }
.img-filter__cat.active {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

/* ════════════════════════════════════════
   이미지 갤러리 - 그리드
════════════════════════════════════════ */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.img-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
.img-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
  color: inherit;
}

/* 썸네일: padding-bottom 방식으로 16:9 비율 고정 */
.img-card__thumb {
  position: relative;
  width: 100%;
  padding-bottom: 62.5%;   /* 16:10 비율 */
  overflow: hidden;
  background: #e8e8e8;
  flex-shrink: 0;
}
.img-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.img-card:hover .img-card__thumb img {
  transform: scale(1.06);
}

/* 썸네일 위 뱃지 공통 */
.img-card__cat-badge,
.img-card__count-badge {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 1;
}
.img-card__cat-badge {
  top: 10px;
  left: 10px;
  letter-spacing: 0.3px;
}
/* 이미지 장 수 표시 (우상단) */
.img-card__count-badge {
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  backdrop-filter: blur(2px);
}
/* 이미지 없을 때 플레이스홀더 */
.img-card__no-thumb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ccc;
  background: #f5f5f5;
}
.img-badge--blue   { background: rgba(37,99,235,0.88);  color: #fff; }
.img-badge--purple { background: rgba(109,40,217,0.88); color: #fff; }
.img-badge--teal   { background: rgba(13,148,136,0.88); color: #fff; }
.img-badge--orange { background: rgba(234,88,12,0.88);  color: #fff; }
.img-badge--gray   { background: rgba(100,100,100,0.75); color: #fff; }

/* 카드 하단 정보 */
.img-card__info {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.img-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.img-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #b0b0b0;
}
.img-card__author { color: #888; font-weight: 500; }
.img-card__dot { color: #ddd; }

/* 빈 상태 */
.img-gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: #bbb;
}
.img-gallery-empty span { font-size: 48px; display: block; margin-bottom: 12px; }
.img-gallery-empty p { font-size: 15px; margin-bottom: 4px; }

/* ════════════════════════════════════════
   이미지 글쓰기 폼
════════════════════════════════════════ */
.img-write-wrap { padding-top: 8px; }
.img-write-form { display: flex; flex-direction: column; gap: 16px; }

.img-write-form__row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.img-write-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.img-write-form__field--full { grid-column: 1 / -1; }
.img-write-form__label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.img-write-form__required { color: var(--color-purple); }
.img-write-form__input {
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-main);
  color: #222;
  transition: border-color 0.2s;
}
.img-write-form__input:focus { outline: none; border-color: var(--color-purple); }
.img-write-form__textarea {
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-main);
  color: #333;
  line-height: 1.7;
  resize: vertical;
  transition: border-color 0.2s;
}
.img-write-form__textarea:focus { outline: none; border-color: var(--color-purple); }

/* 드래그 업로드 영역 */
.img-upload-area {
  border: 2px dashed #d0c4ff;
  border-radius: 12px;
  background: #faf9ff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.img-upload-area:hover,
.img-upload-area.drag-over {
  border-color: var(--color-purple);
  background: #f0ecff;
}
.img-upload-area input[type="file"] { display: none; }
.img-upload-area__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px;
  pointer-events: none;
}
.img-upload-area__icon { font-size: 40px; }
.img-upload-area__text { font-size: 15px; font-weight: 600; color: #555; margin: 0; }
.img-upload-area__sub { font-size: 12px; color: #aaa; margin: 0; }
.img-upload-area__preview {
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
}
.img-upload-area__preview img {
  max-height: 260px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: contain;
}
.img-upload-area__remove {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: all 0.15s;
}
.img-upload-area__remove:hover { background: #ffe5e5; border-color: #f99; color: #c00; }

/* 다중 선택 미리보기 그리드 */
.img-upload-area__preview-grid {
  width: 100%;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.img-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
}
.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-preview-item__num {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}
.img-upload-hint {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

/* ════════════════════════════════════════
   이미지 상세
════════════════════════════════════════ */
.img-detail { padding-top: 8px; }

.img-detail__header {
  border-bottom: 1px solid #eee;
  padding: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.img-detail__title { font-size: 22px; font-weight: 700; color: #111; line-height: 1.5; }
.img-detail__meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #aaa; }
.img-detail__author { color: #777; font-weight: 500; }

.img-detail__viewer-wrap { margin: 20px 0; }
.img-detail__hint { font-size: 12px; color: #bbb; text-align: center; margin: 10px 0 4px; }

/* 단일 이미지 */
.img-detail__single { text-align: center; background: #fafafa; border-radius: 12px; padding: 24px; }
.img-detail__single-img {
  max-width: 100%;
  max-height: 640px;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-in;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 다중 이미지 그리드 */
.img-detail__grid {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}
.img-detail__grid--2 { grid-template-columns: 1fr 1fr; }
.img-detail__grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.img-detail__grid--3 .img-detail__grid-item:first-child { grid-row: 1 / 3; }
.img-detail__grid--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* 5장 이상 */
.img-detail__grid:not(.img-detail__grid--2):not(.img-detail__grid--3):not(.img-detail__grid--4) {
  grid-template-columns: repeat(3, 1fr);
}

.img-detail__grid-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e8e8;
  cursor: zoom-in;
}
.img-detail__grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}
.img-detail__grid-item:hover img { transform: scale(1.04); }
.img-detail__grid-num {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
}

.img-detail__body {
  padding: 20px 4px 24px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
.img-detail__footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px 0; }

/* ════════════════════════════════════════
   라이트박스 (prev/next 포함)
════════════════════════════════════════ */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}
.img-lightbox.active { display: flex; }
.img-lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.img-lightbox__close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
}
.img-lightbox__close:hover { background: rgba(255,255,255,0.25); }
.img-lightbox__prev,
.img-lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
  line-height: 1;
}
.img-lightbox__prev { left: 18px; }
.img-lightbox__next { right: 18px; }
.img-lightbox__prev:hover,
.img-lightbox__next:hover { background: rgba(255,255,255,0.25); }
.img-lightbox__counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  background: rgba(0,0,0,0.4);
  padding: 4px 14px;
  border-radius: 20px;
}

/* ════════════════════════════════════════
   동영상 카드 플레이 아이콘
════════════════════════════════════════ */
.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  pointer-events: none;
  transition: background 0.2s;
}
.img-card:hover .video-play-icon {
  background: rgba(220,0,0,0.8);
}

/* ════════════════════════════════════════
   유튜브 임베드 (16:9 반응형)
════════════════════════════════════════ */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-bottom: 24px;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ════════════════════════════════════════
   유튜브 임베드 불가 폴백
════════════════════════════════════════ */
.video-embed-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  margin-bottom: 24px;
  background: #111;
  border-radius: 10px;
  text-align: center;
}
.video-fallback-thumb {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  opacity: 0.7;
}
.video-fallback-msg {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}
.video-fallback-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #ff0000;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.video-fallback-btn:hover {
  background: #cc0000;
}

/* ════════════════════════════════════════
   공감하기 버튼
════════════════════════════════════════ */
.like-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0 8px;
}

.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: var(--color-purple);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  user-select: none;
}
.btn-like:hover:not(:disabled) {
  background: #5a2fa0;
  transform: translateY(-2px);
}
.btn-like:disabled { opacity: 0.7; cursor: default; }
.btn-like--active { background: #888; }
.btn-like--active:hover:not(:disabled) { background: #666; }
.btn-like__icon { font-size: 16px; line-height: 1; }

.like-count {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  min-width: 28px;
  text-align: center;
}
.like-label { font-size: 14px; color: #888; }

/* ════════════════════════════════════════
   거래소 - 분류 필터 (두 번째 행)
════════════════════════════════════════ */
.trade-cat-filter {
  display: flex;
  gap: 6px;
  padding: 10px 0 14px;
  flex-wrap: wrap;
}
.trade-cat-btn {
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  background: #f3f3f3;
  border: 1.5px solid transparent;
  transition: all 0.18s;
}
.trade-cat-btn:hover { background: #ebe6ff; color: var(--color-purple); }
.trade-cat-btn.active {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}

/* ════════════════════════════════════════
   거래소 - 목록 테이블
════════════════════════════════════════ */
.trade-list-header {
  display: flex;
  align-items: center;
  padding: 8px 8px;
  background: #f5f5f5;
  border-top: 2px solid #222;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
.trade-row__link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 8px;
  transition: background 0.15s;
}
.trade-row__link:hover { background: #f8f4ff; }
.trade-row--complete .trade-row__link { opacity: 0.55; }
.trade-row--complete .trade-title { text-decoration: line-through; color: #aaa; }

.trade-col { flex-shrink: 0; }
.trade-col--num      { width: 56px;  text-align: center; font-size: 13px; color: #aaa; }
.trade-col--type     { width: 62px;  text-align: center; }
.trade-col--cat      { width: 68px;  text-align: center; }
.trade-col--title    { flex: 1; padding: 0 10px; min-width: 0; }
.trade-col--price    { width: 110px; text-align: center; font-size: 13px; color: #333; font-weight: 500; }
.trade-col--author   { width: 80px;  text-align: center; font-size: 13px; color: #777; }
.trade-col--date     { width: 60px;  text-align: center; font-size: 13px; color: #aaa; }
.trade-col--views    { width: 48px;  text-align: center; font-size: 13px; color: #aaa; }
.trade-col--interest { width: 56px;  text-align: center; font-size: 13px; color: #f5a623; }

.trade-title {
  display: block;
  font-size: 15px;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trade-title:hover { color: var(--color-purple); }
.trade-item-name {
  display: block;
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.trade-complete-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: #e0e0e0;
  color: #888;
  padding: 1px 7px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.trade-price--nego { color: #bbb; font-style: italic; }

/* ════════════════════════════════════════
   거래소 - 글쓰기 (거래 유형 라디오 칩)
════════════════════════════════════════ */
.trade-type-radio {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  align-items: center;
}
.trade-type-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.trade-type-label input[type="radio"] { display: none; }
.trade-type-chip {
  padding: 6px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #ddd;
  color: #888;
  transition: all 0.15s;
  cursor: pointer;
}
.trade-type-label input[type="radio"]:checked + .trade-type-chip--sell {
  background: #fff3e0; color: #e65100; border-color: #ffcc80;
}
.trade-type-label input[type="radio"]:checked + .trade-type-chip--buy {
  background: #e0f7fa; color: #00796b; border-color: #80cbc4;
}
.trade-type-chip:hover { border-color: #bbb; color: #555; }
.trade-req { color: var(--color-purple); }

/* ════════════════════════════════════════
   분류 칩 (공통)
════════════════════════════════════════ */
.tab-chip-group {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  align-items: center;
  flex-wrap: wrap;
}
.tab-chip-label input[type="radio"] { display: none; }
.tab-chip {
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid #ddd;
  background: #fafafa;
  color: #666;
  transition: all 0.15s;
  cursor: pointer;
  display: inline-block;
}
.tab-chip:hover { border-color: #bbb; color: #444; }
.tab-chip-label input[type="radio"]:checked + .tab-chip--purple {
  background: #f3f0ff; color: #6c3fc5; border-color: #c4b5fd;
}
.tab-chip-label input[type="radio"]:checked + .tab-chip--blue {
  background: #eff6ff; color: #1d4ed8; border-color: #93c5fd;
}
.tab-chip-label input[type="radio"]:checked + .tab-chip--teal {
  background: #f0fdfa; color: #0f766e; border-color: #5eead4;
}
.tab-chip-label input[type="radio"]:checked + .tab-chip--orange {
  background: #fff7ed; color: #c2410c; border-color: #fed7aa;
}
.tab-chip-label input[type="radio"]:checked + .tab-chip:not([class*="tab-chip--"]) {
  background: #f3f0ff; color: #6c3fc5; border-color: #c4b5fd;
}
.trade-img-wrap { padding: 10px 16px; flex: 1; }

/* ════════════════════════════════════════
   거래소 - 상세 페이지
════════════════════════════════════════ */
.trade-detail { padding-top: 8px; }
.trade-detail__header {
  border-bottom: 1px solid #eee;
  padding: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trade-detail__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trade-detail__title  { font-size: 22px; font-weight: 700; color: #111; line-height: 1.5; }
.trade-detail__meta   { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #aaa; }

.trade-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.trade-status-badge--green { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.trade-status-badge--gray  { background: #f3f3f3; color: #888;    border: 1px solid #ddd; }

.trade-info-card {
  margin: 18px 0;
  border: 1.5px solid #e8e0ff;
  border-radius: 12px;
  background: #faf9ff;
  overflow: hidden;
}
.trade-info-card__row {
  display: flex;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #f0ecff;
  gap: 16px;
}
.trade-info-card__row:last-child { border-bottom: none; }
.trade-info-card__key {
  width: 60px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #888;
}
.trade-info-card__val { font-size: 15px; color: #222; word-break: break-all; }
.trade-info-card__val--item  { font-weight: 700; color: var(--color-purple); }
.trade-info-card__val--price { font-weight: 700; font-size: 17px; color: #e65100; }
.trade-info-card__val em     { color: #bbb; font-style: italic; font-weight: 400; font-size: 14px; }

.trade-images { margin: 18px 0; }
.trade-img-single { text-align: center; background: #fafafa; border-radius: 12px; padding: 16px; }
.trade-img-single__img {
  max-width: 100%; max-height: 480px;
  object-fit: contain; border-radius: 8px;
  cursor: zoom-in;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.trade-img-grid {
  display: grid;
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}
.trade-img-grid--2 { grid-template-columns: 1fr 1fr; }
.trade-img-grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.trade-img-grid--3 .trade-img-grid__item:first-child { grid-row: 1 / 3; }
.trade-img-grid__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}
.trade-img-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.trade-img-grid__item:hover img { transform: scale(1.04); }
.trade-img-grid__num {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.5); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 3px;
}

.trade-detail__body {
  padding: 20px 4px 24px;
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.trade-action-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 0 8px;
  flex-wrap: wrap;
}

.btn-interest {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  background: #fff8e1;
  color: #f59e0b;
  border: 2px solid #fcd34d;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.btn-interest:hover:not(:disabled) {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-2px);
}
.btn-interest:disabled { opacity: 0.7; cursor: default; }
.btn-interest--active { background: #f59e0b; color: #fff; border-color: #f59e0b; }
.btn-interest--active:hover:not(:disabled) { background: #d97706; border-color: #d97706; }
.btn-interest__icon { font-size: 16px; line-height: 1; }

.interest-count { font-size: 22px; font-weight: 700; color: #333; min-width: 28px; text-align: center; }
.interest-label  { font-size: 14px; color: #888; }

.btn-complete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: #fff;
  color: #2e7d32;
  border: 2px solid #81c784;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-complete:hover:not(:disabled) { background: #e8f5e9; transform: translateY(-2px); }
.btn-complete:disabled { opacity: 0.7; cursor: default; }
.btn-complete--done { background: #f3f3f3; color: #888; border-color: #ddd; }
.btn-complete--done:hover:not(:disabled) { background: #ebebeb; }

.btn-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: #fff;
  color: #c62828;
  border: 2px solid #ef9a9a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-delete:hover { background: #ffebee; transform: translateY(-2px); }

.trade-detail__footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 24px 0; }

/* ════════════════════════════════════════
   거래소 - 태그
════════════════════════════════════════ */

/* 글쓰기: 태그 입력 래퍼 */
.trade-tag-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trade-tag-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 6px;
  min-height: 0;
}

/* 태그 칩 공통 */
.trade-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #f0ecff;
  color: var(--color-purple);
  border: 1px solid #d8ceff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* 목록용 소형 칩 */
.trade-tag-chip--sm {
  padding: 2px 8px;
  font-size: 11px;
}

/* 목록 내 태그 행 */
.trade-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

/* 상세 페이지 태그 목록 */
.trade-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 상세 페이지 태그 행 정렬 */
.trade-info-card__row--tags { align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }

/* ════════════════════════════════════════
   반응형
════════════════════════════════════════ */
@media (max-width: 900px) {
  .img-gallery { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .img-gallery { grid-template-columns: 1fr; }
  .img-write-form__row2 { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   거래소 목록 반응형
════════════════════════════════════════ */

/* 모바일용 작성자·날짜 보조 텍스트 (기본 숨김) */
.trade-meta-mobile {
  display: none;
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
}

/* 태블릿 이하 (~768px): 조회수·관심 컬럼 숨김 */
@media (max-width: 768px) {
  .trade-col--views,
  .trade-col--interest { display: none; }

  .trade-col--price  { width: 80px; }
  .trade-col--author { width: 70px; }
}

/* 모바일 (~540px): 작성자·날짜 컬럼 숨기고 제목 아래에 표시 */
@media (max-width: 540px) {
  .trade-col--author,
  .trade-col--date { display: none; }

  .trade-meta-mobile { display: block; }

  .trade-col--type  { width: 46px; }
  .trade-col--price { width: 68px; font-size: 12px; }

  .trade-list-header .trade-col--author,
  .trade-list-header .trade-col--date { display: none; }
}

.meta-icon { width: 16px; height: 16px; vertical-align: middle; }
.pin-icon-img { width: 16px; height: 16px; vertical-align: middle; }

/* ── 동영상 embed ── */
.video-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin-bottom: 16px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.video-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── YouTube URL 입력 UX ── */
.write-form__hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
}
.yt-selected-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f3f0ff;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
}
.yt-selected-badge__text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #5b21b6;
}
.yt-selected-badge__clear {
  padding: 4px 10px;
  font-size: 12px;
  color: #6b7280;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  cursor: pointer;
}
.yt-selected-badge__clear:hover { border-color: #9ca3af; color: #374151; }

/* ── YouTube URL 입력 필드 ── */
.write-form__row--yt      { align-items: flex-start; }
.write-form__label--yt    { padding-top: 14px; }
.yt-input-area            { flex: 1; min-width: 0; padding: 12px 16px; }
.yt-url-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-main);
  color: #222;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.yt-url-input:focus        { outline: none; border-color: var(--color-purple); }
.yt-url-hints              { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.yt-url-hint {
  padding: 3px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 11px;
  color: #9ca3af;
  background: #f9fafb;
  font-family: monospace;
}

/* ── YouTube 선택됨 상태 레이아웃 ── */
#youtube-selected-area {
  flex: 1;
  min-width: 0;
  padding: 16px;
}
