/**
 * v7/post/comments.css - 최근 댓글 전체 목록 페이지 스타일
 *
 * v7-layout-widget 디자인 규칙 적용:
 * - 보더 없음, 그림자 없음
 * - 연한 배경색으로 영역 구분
 * - Font Awesome Light 아이콘
 * - Web Awesome CSS 변수 사용
 *
 * @see v7/post/comments.php
 */

/* 페이지 컨테이너 */
.v7-comments-page {
    padding: 0;
}

/* 페이지 헤더 */
.comments-page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--wa-color-neutral-90, #e9ecef);
}

.comments-page-title {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--wa-color-text, #212529);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comments-page-title i {
    color: var(--wa-color-brand-50, #3178c0);
    font-size: 0.95em;
}

.comments-page-meta {
    font-size: 0.82em;
    color: var(--wa-color-neutral-50, #adb5bd);
    margin-left: auto;
}

/* 빈 상태 */
.comments-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--wa-color-neutral-50, #adb5bd);
}

.comments-empty i {
    font-size: 2.5em;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.comments-empty p {
    font-size: 0.9em;
    margin: 0;
}

/* 댓글 목록 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 댓글 아이템 */
.comments-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
    border-radius: 8px;
    transition: background 0.15s ease;
    background: var(--wa-color-neutral-95, #f8f9fa);
}

.comments-item:hover {
    background: var(--wa-color-brand-95, #e7f5ff);
    text-decoration: none;
}

/* 아바타 */
.comments-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    object-fit: cover;
    border: none;
}

/* 콘텐츠 영역 */
.comments-content {
    flex: 1;
    min-width: 0;
}

/* 상단 행: 닉네임 + 날짜 + 포인트 */
.comments-top-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3px;
}

.comments-nick {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--wa-color-text, #212529);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comments-date {
    font-size: 0.8em;
    color: var(--wa-color-neutral-50, #adb5bd);
    white-space: nowrap;
}

/* 댓글 본문 */
.comments-text {
    font-size: 0.88em;
    line-height: 1.55;
    color: var(--wa-color-neutral-40, #6c757d);
    word-break: break-word;
}

/* 포인트 배지 */
.comments-point {
    font-size: 0.75em;
    font-weight: 600;
    white-space: nowrap;
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 9px;
    line-height: 1.4;
}

.comments-point i {
    font-size: 0.85em;
    margin-right: 1px;
}

.comments-point.point-high {
    color: var(--wa-color-danger-50, #dc3545);
    background: var(--wa-color-danger-95, #fef2f2);
    font-weight: 700;
}

.comments-point.point-mid {
    color: var(--wa-color-brand-50, #3178c0);
    background: var(--wa-color-brand-95, #e7f5ff);
}

.comments-point.point-low {
    color: var(--wa-color-success-50, #198754);
    background: var(--wa-color-success-95, #f0fdf4);
}

/* 페이지네이션 */
.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 1.25rem 0;
    margin-top: 0.5rem;
}

.comments-pagination a,
.comments-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.4rem;
    font-size: 0.85em;
    border-radius: 6px;
    text-decoration: none;
    color: var(--wa-color-text, #212529);
    transition: background 0.15s ease, color 0.15s ease;
}

.comments-pagination a:hover {
    background: var(--wa-color-brand-95, #e7f5ff);
    color: var(--wa-color-brand-50, #3178c0);
    text-decoration: none;
}

.comments-pagination span.active {
    background: var(--wa-color-brand-50, #3178c0);
    color: #fff;
    font-weight: 600;
}

/* 반응형: 모바일 */
@media (max-width: 600px) {
    .comments-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .comments-page-meta {
        margin-left: 0;
    }

    .comments-avatar {
        width: 30px;
        height: 30px;
    }

    .comments-item {
        padding: 0.5rem 0.5rem;
    }

    .comments-top-row {
        flex-wrap: wrap;
    }
}
