@charset "UTF-8";

/* ============================================================
   SOVAC Community List (Mobile Renewal 2026)
   ============================================================ */

/* ── Layout ── */
/* #sv_wrap.type01은 padding-top:0이므로 헤더(55px) 보정 필요 */
.comm-list-wrap {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 20px 15px 80px;
	padding-top: 0px;
	height: calc(100vh - 75px);
	height: calc(100dvh - 75px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

/* ── Tab Filter ── */
.comm-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 2px;
	flex-shrink: 0;
}
.comm-tabs::-webkit-scrollbar { display: none; }

.comm-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 7px 14px;
	border-radius: 100px;
	border: 1px solid #d3d4d8;
	background: #fff;
	font-family: 'Pretendard', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #d3d4d8;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s;
	box-sizing: border-box;
	flex-shrink: 0;
}
.comm-tab.active {
	background: #460082;
	border-color: #460082;
	color: #fff;
}
.comm-tab-count {
	display: inline-flex;
	align-items: center;
	padding: 2px 4px;
	background: rgba(255,255,255,0.3);
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	color: #fff;
}

/* ── Divider ── */
.comm-divider {
	height: 1px;
	background-color: #18191d;
	flex-shrink: 0;
}

/* ── Header Text ── */
.comm-header-text {
	font-family: 'Pretendard', sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #18191d;
	word-break: keep-all;
	flex-shrink: 0;
}

/* ── Sort Row (정렬 + 글쓰기) ── */
.comm-sort-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}
.comm-sort {
	display: flex;
	gap: 12px;
	align-items: center;
}
.comm-sort a {
	font-family: 'Pretendard', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #d3d4d8;
	text-decoration: none;
}
.comm-sort a.active {
	color: #18191d;
}

/* ── Write Button (Outline) ── */
.comm-write-btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	background: #fff;
	color: #460082;
	font-family: 'Pretendard', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 22px;
	border: 1px solid #460082;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ── Search Bar ── */
.comm-search {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #18191d;
	border-radius: 6px;
	box-sizing: border-box;
	flex-shrink: 0;
}
.comm-search input[type="text"] {
	flex: 1;
	border: none;
	outline: none;
	padding: 0;
	font-family: 'Pretendard', sans-serif;
	font-size: 14px;
	color: #18191d;
	background: transparent;
}
.comm-search input[type="text"]::placeholder {
	color: #d3d4d8;
}
.comm-search-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
}

/* ── Card List ── */
.comm-card-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ── Card (세로 레이아웃: 이미지 상단 + 텍스트 하단) ── */
.comm-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid #e4e5e8;
	border-radius: 6px;
	text-decoration: none;
	position: relative;
}
.comm-card-thumb {
	width: 100%;
	height: 200px;
	border-radius: 6px;
	overflow: hidden;
	background: #fafafa;
}
.comm-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.comm-card-content {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.comm-card-chips-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}
.comm-card-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}
.comm-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	background: #f3e9fb;
	border-radius: 2px;
	font-family: 'Pretendard', sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 17px;
	color: #460082;
	white-space: nowrap;
}
.comm-chip-official {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 8px;
	background: #f3e9fb;
	border-radius: 2px;
	font-family: 'Pretendard', sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 17px;
	color: #460082;
}
.comm-chip-official svg {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}
/* D-day Chip */
.comm-chip-dday {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 4px;
	font-family: 'Pretendard', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 19px;
	white-space: nowrap;
	flex-shrink: 0;
}
.comm-chip-dday.dday-warn {
	background: #fff6d7;
	color: #fba62f;
}
.comm-chip-dday.dday-urgent {
	background: #ffdada;
	color: #fb2f6c;
}
.comm-chip-dday.dday-closed {
	background: #e4e5e8;
	color: #a0a1a7;
}

.comm-card-title {
	font-family: 'Pretendard', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: #18191d;
	margin: 0;
	word-break: keep-all;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.comm-card-meta {
	display: flex;
	gap: 8px;
	font-family: 'Pretendard', sans-serif;
	font-size: 11px;
	color: #a0a1a7;
}
.comm-card-meta .meta-author {
	font-weight: 600;
}
.comm-card-meta .meta-date,
.comm-card-meta .meta-views {
	font-weight: 400;
}

/* ── Pin Badge ── */
.comm-card-pin {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 6px;
	background: #460082;
	color: #fff;
	font-family: 'Pretendard', sans-serif;
	font-size: 10px;
	font-weight: 600;
	border-radius: 3px;
	z-index: 1;
}

/* ── No Results ── */
.comm-no-result {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 60px 0;
}
.comm-no-result p {
	font-family: 'Pretendard', sans-serif;
	font-size: 14px;
	color: #a0a1a7;
	text-align: center;
	line-height: 1.5;
}

