@charset "UTF-8";

/* ============================================================
   SOVAC Community List Styles (Renewal 2026)
   Based on design-system.css tokens
   ============================================================ */

/* ── Layout ── */
.comm-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
    width: 800px;
    margin: 0 auto;
    padding: 56px 0;
}

/* ── Intro Description ── */
.comm-intro-desc {
    width: 100%;
}
.comm-intro-desc p {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.5;
    color: #000;
    margin: 0;
}

/* ── Tab Filter Row ── */
.comm-tab-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 38px;
}

.comm-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comm-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid #d3d4d8;
    background: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    color: #d3d4d8;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: 38px;
    box-sizing: border-box;
}

.comm-tab:hover {
    color: #460082;
    border-color: #460082;
}

.comm-tab.active {
    background: #460082;
    border-color: #460082;
    color: #fff;
}

.comm-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: normal;
}

/* ── Sort Options ── */
.comm-sort {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comm-sort a {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    color: #d3d4d8;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.comm-sort a:hover {
    color: #18191d;
}

.comm-sort a.active {
    color: #18191d;
}

/* ── Search Bar ── */
.comm-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    background: #fff;
    border: 1px solid #18191d;
    border-radius: 6px;
    box-sizing: border-box;
}

.comm-search input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    height: 21px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #18191d;
    background: transparent;
    background-color: transparent;
    letter-spacing: 0;
}

.comm-search input[type="text"]:focus {
    border: none;
    background-color: transparent;
    outline: none;
}

.comm-search input[type="text"]::placeholder {
    color: #d3d4d8;
    font-size: 14px;
}

.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;
}

.comm-search-btn svg {
    width: 18px;
    height: 18px;
    color: #18191d;
}

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

/* ── Card Item ── */
.comm-card {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid #e4e5e8;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    transition: border-color 0.2s ease;
    position: relative;
}

.comm-card:hover {
    border-color: #460082;
}

.comm-card-inner {
    display: flex;
    flex: 1;
    gap: 24px;
    align-items: center;
    min-width: 0;
}

/* Thumbnail */
.comm-card-thumb {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fafafa;
}

.comm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Content */
.comm-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Chips Row */
.comm-card-chips {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Category Chip */
.comm-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    background: #f3e9fb;
    border-radius: 2px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 19px;
    color: #460082;
    white-space: nowrap;
    overflow: hidden;
}

/* SOVAC 공식 Chip */
.comm-chip-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f3e9fb;
    border-radius: 2px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 19px;
    color: #460082;
    white-space: nowrap;
    overflow: hidden;
}

.comm-chip-official svg {
    width: 12px;
    height: 12px;
    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;
    overflow: hidden;
}

.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;
}

/* Card Title */
.comm-card-title {
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
    color: #18191d;
    word-break: keep-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Card Meta */
.comm-card-meta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    color: #a0a1a7;
    white-space: nowrap;
}

.comm-card-meta .meta-author {
    font-weight: 600;
    line-height: 19px;
}

.comm-card-meta .meta-date,
.comm-card-meta .meta-views {
    font-weight: 400;
    line-height: 18.3px;
}

/* Arrow Icon */
.comm-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.comm-card-arrow svg {
    width: 20px;
    height: 20px;
    color: #d3d4d8;
}

.comm-card:hover .comm-card-arrow svg {
    color: #460082;
}

/* ── No Results ── */
.comm-no-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    width: 100%;
}

.comm-no-result img {
    margin-bottom: 20px;
}

.comm-no-result p {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #a0a1a7;
    text-align: center;
}

/* ── Write Button ── */
.comm-write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: #460082;
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: normal;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.comm-write-btn:hover {
    opacity: 0.9;
}

/* ── Bottom Actions ── */
.comm-bottom-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

/* ── Paging (reuse existing) ── */
.comm-list-wrap .paging {
    width: 100%;
}

/* ── Pin Badge ── */
.comm-card-pin {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: #460082;
    color: #fff;
    font-family: 'Pretendard', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 1;
}

/* ── Override container width for community ── */
#container > div > .content1.community.renewed {
    width: 100%;
    max-width: 100%;
    padding-bottom: 56px;
}

.content1.community.renewed .page_tit,
.content1.community.renewed .page_sub_tit {
    display: none;
}
