/* BASIC css start */
/* 이미지 첨부 */
.tlc-img-attach { display: flex; align-items: center; gap: 8px; }
.tlc-img-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 14px;
  background: var(--soft); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12.5px; color: var(--sub);
  cursor: pointer; font-family: inherit; transition: all .12s;
}
.tlc-img-btn:hover { border-color: var(--navy); color: var(--navy); }
.tlc-img-name { font-size: 12px; color: var(--muted); }
.tlc-img-remove {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fee2e2; border: none; color: #ef4444;
  font-size: 11px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.tlc-img-preview { margin-top: 8px; border-radius: 10px; overflow: hidden; max-height: 300px; }
.tlc-img-preview img { width: 100%; max-height: 300px; object-fit: cover; display: block; }

/* 카드 이미지 */
.tlc-card-img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.tlc-card-img-wrap { overflow: hidden; border-radius: 10px; margin-bottom: 10px; }

/* 모달 이미지 */
.tlc-modal-img { width: 100%; border-radius: 10px; margin-bottom: 12px; display: block; }
/* THELABCOMM 개별페이지 */
:root {
  --navy: #0C025B; --navy2: #080142;
  --lt: #f0eeff; --border: #e5e7eb;
  --text: #111827; --sub: #6b7280; --muted: #9ca3af;
  --bg: #ffffff; --soft: #f9fafb;
}
* { box-sizing: border-box; }

.tlc-wrap {
  font-family: 'Pretendard','Noto Sans KR',sans-serif;
  background: var(--soft); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 3컬럼 레이아웃 */
.tlc-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 88px 24px 80px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px; align-items: start;
}

/* 왼쪽 네비 */
.tlc-nav { position: sticky; top: 90px; }
.tlc-nav-logo { font-size: 16px; font-weight: 900; color: var(--navy); letter-spacing: -.3px; margin-bottom: 2px; }
.tlc-nav-sub { font-size: 11px; color: var(--muted); margin-bottom: 20px; }
.tlc-nav-section { margin-bottom: 20px; }
.tlc-nav-title { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; padding: 0 8px; }
.tlc-nav-item {
  display: block; padding: 7px 12px; font-size: 13.5px; font-weight: 500;
  color: var(--sub); text-decoration: none; border-radius: 8px;
  transition: all .12s; margin-bottom: 2px; cursor: pointer;
}
.tlc-nav-item:hover, .tlc-nav-item.active { background: var(--lt); color: var(--navy); font-weight: 700; }
.tlc-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 8px; }
.tlc-tag {
  font-size: 11.5px; font-weight: 600; color: var(--sub);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 3px 9px; cursor: pointer; transition: all .12s;
}
.tlc-tag:hover, .tlc-tag.active { background: var(--lt); color: var(--navy); border-color: var(--navy); }

/* 피드 */
.tlc-feed { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 760px; }

/* 포스트 작성 박스 */
.tlc-compose {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.tlc-compose:hover { border-color: var(--navy); box-shadow: 0 2px 12px rgba(12,2,91,.08); }
.tlc-compose-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--lt); display: flex; align-items: center;
  justify-content: center; font-size: 16px; flex-shrink: 0;
  border: 1px solid var(--border); font-weight: 700; color: var(--navy);
  font-size: 13px;
}
.tlc-compose-preview { flex: 1; font-size: 14px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px; background: var(--soft); }
.tlc-compose-btn {
  height: 32px; padding: 0 16px; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 20px; border: none;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
}

/* 포스트 작성 폼 */
.tlc-form {
  background: var(--bg); border: 1px solid var(--navy);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(12,2,91,.1);
}
.tlc-form-top { display: flex; gap: 12px; padding: 16px 16px 10px; }
.tlc-form-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.tlc-form-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tlc-form-tag-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.tlc-tag-btn {
  font-size: 12px; font-weight: 600; color: var(--sub);
  background: var(--soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 3px 10px; cursor: pointer;
  transition: all .12s; font-family: inherit;
}
.tlc-tag-btn:hover { color: var(--navy); border-color: var(--navy); background: var(--lt); }
.tlc-tag-btn.selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.tlc-form-textarea {
  width: 100%; min-height: 100px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; line-height: 1.7;
  resize: vertical; outline: none; transition: border-color .15s;
}
.tlc-form-textarea:focus { border-color: var(--navy); }
.tlc-form-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 10px 16px 14px; border-top: 1px solid var(--border);
}
.tlc-cancel-btn {
  height: 36px; padding: 0 18px; background: var(--bg); color: var(--sub);
  border: 1px solid var(--border); border-radius: 20px; cursor: pointer;
  font-size: 13px; font-family: inherit; transition: all .12s;
}
.tlc-cancel-btn:hover { border-color: var(--sub); color: var(--text); }
.tlc-submit-btn {
  height: 36px; padding: 0 22px; background: var(--navy); color: #fff;
  border: none; border-radius: 20px; cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit;
}
.tlc-submit-btn:hover { background: var(--navy2); }

/* 피드 카드 */
.tlc-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
  transition: box-shadow .15s, border-color .15s; cursor: pointer;
}
.tlc-card:hover { border-color: #d1d5db; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.tlc-card-body { padding: 16px 18px; }
.tlc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tlc-card-meta { flex: 1; }
.tlc-card-writer { font-size: 13.5px; font-weight: 700; color: var(--text); display: block; }
.tlc-card-date { font-size: 11.5px; color: var(--muted); }
.tlc-card-tag {
  font-size: 11.5px; font-weight: 700; color: var(--navy);
  background: var(--lt); padding: 2px 9px; border-radius: 10px;
  border: 1px solid rgba(12,2,91,.12);
}
.tlc-card-content { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tlc-card-stats { display: flex; gap: 14px; }
.tlc-card-stat { font-size: 12px; color: var(--muted); }

/* 로딩/빈상태 */
.tlc-loading, .tlc-empty { padding: 40px; text-align: center; color: var(--muted); font-size: 14px; background: var(--bg); border-radius: 14px; border: 1px solid var(--border); }

/* 페이징 */
.tlc-paging { display: flex; justify-content: center; gap: 4px; padding: 12px 0; }
.tlc-page-btn {
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--sub);
  background: var(--bg); cursor: pointer; transition: all .12s; font-family: inherit;
}
.tlc-page-btn:hover { border-color: var(--navy); color: var(--navy); background: var(--lt); }
.tlc-page-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 오른쪽 사이드바 */
.tlc-side { position: sticky; top: 20px; }
.tlc-side-box { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.tlc-side-title { font-size: 13px; font-weight: 800; color: var(--text); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.tlc-side-desc { font-size: 13px; color: var(--sub); line-height: 1.65; margin: 0 0 12px; }
.tlc-side-post-btn {
  width: 100%; height: 38px; background: var(--navy); color: #fff;
  border: none; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.tlc-side-post-btn:hover { background: var(--navy2); }

/* 모달 */
.tlc-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tlc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.tlc-modal-box {
  position: relative; background: var(--bg); border-radius: 16px;
  width: 100%; max-width: 600px; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 24px;
}
.tlc-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  background: var(--soft); border: 1px solid var(--border); border-radius: 50%;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tlc-modal-writer { font-size: 14px; font-weight: 700; color: var(--text); }
.tlc-modal-date { font-size: 12px; color: var(--muted); }
.tlc-modal-tag { font-size: 12px; font-weight: 700; color: var(--navy); background: var(--lt); padding: 2px 10px; border-radius: 10px; }
.tlc-modal-content { font-size: 14.5px; line-height: 1.85; color: var(--text); padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 12px 0; white-space: pre-wrap; }
.tlc-modal-stats { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.tlc-modal-like-btn {
  background: none; border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 14px; font-size: 13px; color: var(--sub); cursor: pointer;
  font-family: inherit; transition: all .12s;
}
.tlc-modal-like-btn:hover { border-color: var(--navy); color: var(--navy); }

/* 댓글 */
.tlc-comments { margin-top: 16px; }
.tlc-comment-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.tlc-comment-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tlc-comment-item:last-child { border-bottom: none; }
.tlc-comment-writer { font-size: 13px; font-weight: 700; color: var(--text); }
.tlc-comment-date { font-size: 11px; color: var(--muted); margin-left: 6px; }
.tlc-comment-body { font-size: 13.5px; line-height: 1.6; color: var(--text); margin-top: 3px; }
.tlc-comment-form { display: flex; gap: 8px; margin-top: 14px; align-items: flex-end; }
.tlc-comment-input { flex: 1; min-height: 60px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 13.5px; font-family: inherit; resize: none; outline: none; transition: border-color .15s; }
.tlc-comment-input:focus { border-color: var(--navy); }
.tlc-comment-submit {
  height: 60px; padding: 0 16px; background: var(--navy); color: #fff;
  border: none; border-radius: 10px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; flex-shrink: 0;
}

@media (max-width: 900px) {
  .tlc-body { grid-template-columns: 1fr; }
  .tlc-nav { position: static; display: flex; flex-wrap: wrap; gap: 16px; }
  .tlc-side { position: static; }
}
@media (max-width: 640px) {
  .tlc-body { padding: 14px 14px 48px; gap: 12px; }
  .tlc-nav { flex-direction: column; }
}
/* BASIC css end */

