/* ZMS CMS - 공통 컴포넌트 스타일 */

/* 썸네일 스타일 */
.post-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.post-thumbnail.gallery {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

/* 대시보드 컴팩트 썸네일 */
.post-thumbnail-compact {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.post-thumbnail-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
    font-size: 1.2rem;
}

/* 태그 배지 스타일 */
.tag-badge {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin: 0.125rem;
    text-decoration: none;
}

.tag-badge:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.tag-badge .remove {
    margin-left: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    padding: 0 0.25rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.tag-badge .remove:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 상태 배지 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* 로딩 스피너 */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 빈 상태 메시지 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state .empty-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.empty-state .empty-description {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* 사이드바 아이콘 위치 조정 */
.pc-micon {
    position: relative;
    top: 0; /* 기본 위치로 설정 */
}

/* 대시보드 컴팩트 게시글 아이템 */
.post-item-compact {
    padding: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.post-item-compact:hover {
    background-color: #f8f9fa;
}

.post-item-compact:last-child {
    border-bottom: none;
}

.board-badge-small {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 0.25rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.board-badge-small:hover {
    background-color: #dee2e6;
    color: #495057;
    text-decoration: none;
}

.post-preview-compact {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-meta-compact {
    text-align: right;
    min-width: 120px;
}

.post-author-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
    cursor: pointer;
}

.post-author-img-compact {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
    object-fit: cover;
}

.post-author-compact .author-name {
    font-size: 0.75rem;
    color: #495057;
    font-weight: 500;
}

.post-date {
    font-size: 0.7rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
}
