@charset "UTF-8";

/* ==========================================================================
   Community List Style 😊🌈
   ========================================================================== */
.community-list {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-item {
    display: flex;
    gap: 0;
    background: #FFF;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
    transition: all 0.3s ease;
    align-items: stretch; /* 카드 높이에 맞게 늘림 */
    overflow: hidden;
}

.c-item:hover {
    border-color: var(--zp-electric-blue);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.04);
    transform: translateY(-2px);
}

.c-item.no-thumb-item {
    padding: 0; /* padding 제거하여 has-thumb과 일관성 유지 */
}

.c-thumb {
    flex-shrink: 0;
    width: 140px; /* 섬네일 너비 확장 */
    min-height: 100px;
    background: var(--zp-gray-50);
    position: relative;
}

.c-thumb .topic-badge.absolute {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: var(--zp-electric-blue) !important;
    color: #FFF !important;
    border: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    opacity: 0.9;
}

.c-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.c-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-content {
    flex: 1;
    min-width: 0;
    padding: 24px 30px; /* 좌우 여백을 조금 더 넓혀서 시원하게 조정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--zp-black);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-title .topic-badge {
    background: var(--zp-gray-100);
    color: var(--zp-gray-600);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--zp-gray-200);
}

.c-title .new-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #FF4D4D;
    color: #FFF;
    font-size: 10px;
    font-weight: 900;
    border-radius: 50%;
    flex-shrink: 0;
}

.c-title a {
    color: inherit;
    text-decoration: none;
}

.c-title .comment-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--zp-electric-blue);
    margin-left: 6px;
    font-weight: 700;
}

.c-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.author-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-img {
    width: 24px;
    height: 24px;
    border-radius: 50%; /* 동그란 프로필 😊👤 */
    object-fit: cover;
    background: #EEE;
    border: 1px solid #F0F0F0;
}

.profile-none {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--zp-gray-100);
}

.author-wrap .nick {
    font-size: 13px;
    font-weight: 600;
    color: var(--zp-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.c-info .stats {
    font-size: 12px;
    color: var(--zp-gray-500);
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-info .stats span {
    display: flex;
    align-items: center;
}

.c-info .stats .read::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 10px;
    background: #DDD;
    margin-left: 10px;
}

/* Mobile Community List Layout 😊📱 */
@media (max-width: 767px) {
    .community-list { gap: 10px; }
    .c-item { border-radius: 12px; }
    .c-thumb { width: 100px; min-height: 80px; }
    .c-thumb .topic-badge.absolute { top: 6px; left: 6px; padding: 2px 6px; font-size: 10px; }
    .c-content { padding: 15px 20px; }
    .c-title { font-size: 15px; margin-bottom: 8px; gap: 6px; }
    .c-title .comment-count { font-size: 11px; margin-left: 4px; }
    .c-info { align-items: flex-start; gap: 8px; }
    .author-wrap .nick { max-width: 80px; }
    .c-info .stats { gap: 6px; font-size: 11px; flex-wrap: wrap; }
    .c-info .stats .read::after { margin-left: 6px; }
}
