@charset "utf-8";

/* 시설잡 공지/소식 리스트 - 카드형 리스트 */

.sj-notice-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sj-notice-item {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.sj-notice-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sj-notice-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
}

/* 썸네일 */
.sj-notice-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.sj-notice-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 콘텐츠 */
.sj-notice-content {
    flex: 1;
    min-width: 0;
}

.sj-notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    line-height: 1.5;
    /* 2줄 말줄임 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: keep-all;
}

.sj-comment-badge {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.75rem;
    background: #ef9e29;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    vertical-align: middle;
}

.sj-notice-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #888;
}

.sj-author {
    font-weight: 500;
    color: #666;
}

.sj-separator {
    color: #ddd;
}

.sj-date {
    color: #999;
}

/* 화살표 */
.sj-notice-arrow {
    flex-shrink: 0;
    color: #ccc;
    transition: all 0.3s ease;
}

.sj-notice-item:hover .sj-notice-arrow {
    color: #666;
    transform: translateX(4px);
}

/* 데이터 없음 */
.sj-no-data {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #999;
    font-size: 0.9375rem;
    background: #fff;
    border-radius: 0.75rem;
}

/* 반응형 */
@media (max-width: 767px) {
    .sj-notice-link {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .sj-notice-thumb {
        width: 60px;
        height: 60px;
    }
    
    .sj-notice-title {
        font-size: 0.9375rem;
        margin-bottom: 0.375rem;
    }
    
    .sj-comment-badge {
        font-size: 0.6875rem;
        padding: 0.1rem 0.375rem;
    }
    
    .sj-notice-meta {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
}

@media (max-width: 575px) {
    .sj-notice-list {
        gap: 0.5rem;
    }
    
    .sj-notice-link {
        padding: 0.75rem;
        gap: 0.625rem;
    }
    
    .sj-notice-thumb {
        width: 50px;
        height: 50px;
    }
    
    .sj-notice-title {
        font-size: 0.875rem;
        /* 모바일에서는 1줄만 */
        -webkit-line-clamp: 1;
    }
    
    .sj-notice-arrow {
        display: none;
    }
}
