/**
 * v7/post/view.css - 게시판 글 읽기 페이지 스타일
 *
 * v7 전용 CSS. Bootstrap 미사용.
 * Web Awesome Pro CSS 변수 활용.
 */

/* === 글 읽기 페이지 컨테이너 === */
.v7-post-view-page {
    overflow-x: hidden; /* 본문 이미지/테이블 등 가로 넘침 방지 */
}

/* === 에러 상태 === */
.post-view-error {
    padding: 2rem;
    text-align: center;
    color: #dc2626;
    font-size: 0.85rem;
}

/* === 브레드크럼 === */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--wa-color-neutral-400, #94a3b8);
}

.post-breadcrumb a {
    color: var(--wa-color-neutral-500, #64748b);
    text-decoration: none;
}

.post-breadcrumb a:hover {
    color: var(--wa-color-brand-600, #2563eb);
}

.post-breadcrumb i {
    font-size: 0.6rem;
}

/* === 카테고리 뱃지 === */
.post-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--wa-color-brand-700, #1d4ed8);
    background: var(--wa-color-brand-50, #eff6ff);
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.post-category-badge i {
    font-size: 0.6rem;
}

/* === 글 헤더 === */
.post-view-header {
    padding: 1rem 0 0.85rem;
    border-bottom: 1px solid var(--wa-color-neutral-200, #e2e8f0);
}

.post-view-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
    color: var(--wa-color-neutral-900, #0f172a);
    line-height: 1.45;
    word-break: break-word;
    word-break: auto-phrase; /* Chrome 119+: 한국어 구문 단위 줄바꿈 */
}

/* 작성자 행: 드롭다운 + 메타 정보 */
.post-view-author-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.post-view-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.72rem;
    color: var(--wa-color-neutral-400, #94a3b8);
    flex-wrap: wrap;
}

.post-view-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.post-view-stat i {
    font-size: 0.65rem;
}

/* 모바일/데스크탑 날짜·조회수 전환 */
.post-view-date--mobile,
.post-view-stat--mobile {
    display: none;
}

@media (max-width: 640px) {
    .post-view-date--desktop,
    .post-view-stat--desktop {
        display: none;
    }
    .post-view-date--mobile,
    .post-view-stat--mobile {
        display: inline-flex;
    }
}

/* === 획득 포인트 배지 === */
.earned-point-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 9px;
    white-space: nowrap;
    line-height: 1.4;
}

.earned-point-badge i {
    font-size: 0.6rem;
}

.earned-point-badge.point-high {
    color: #dc3545;
    background: #fef2f2;
}

.earned-point-badge.point-mid {
    color: #3178c0;
    background: #e7f5ff;
}

.earned-point-badge.point-low {
    color: #198754;
    background: #f0fdf4;
}

/* === 유튜브 임베드 플레이어 (본문 위) === */
.post-view-youtube {
    margin: 0.75rem 0 0;
}

.post-view-youtube .youtube-video-container {
    margin: 0 auto;
}

/* === 글 본문 내 유튜브 임베드 === */
.post-view-content .youtube-video-container {
    margin: 1rem 0;
}

/* === 글 본문 === */
.post-view-content {
    margin: 1rem 0 0;
    padding: 1.5rem 1rem 1.25rem 1rem;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--wa-color-neutral-800, #1e293b);
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 3rem;
}

/* 데스크탑에서만 글 본문 보더 */
@media (min-width: 641px) {
    .post-view-header {
        border-bottom: none;
    }
    .post-view-content {
        border: 1px solid var(--wa-color-neutral-200, #e2e8f0);
        border-radius: 8px;
        padding: 1.5rem;
    }
}

.post-view-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.post-view-content a {
    color: var(--wa-color-brand-600, #2563eb);
    text-decoration: underline;
}

.post-view-content iframe {
    max-width: 100%;
}

/* === AI 검열 블라인드 === */
/* 사용자 요구사항: 차단 사유를 명확히 알 수 있도록 표시하되, 강한 빨강이 아닌
   부드러운 호박/노란 톤으로 톤다운. 키워드를 칩으로 명확히 강조한다. */
.post-blind-notice {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.85rem !important;
    padding: 1rem 1.15rem !important;
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-left: 3px solid #f59e0b !important;
    border-radius: 10px !important;
    color: #78350f !important;
    text-align: left !important;
    margin: 0.5rem 0 1rem 0 !important;
}

.post-blind-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
    background: #fef3c7 !important;
    color: #d97706 !important;
    font-size: 1rem !important;
    border-radius: 50% !important;
    margin-right: 0 !important;
}

.post-blind-message {
    display: block !important;
    flex: 1 !important;
    color: #78350f !important;
    min-width: 0 !important;
}

.post-blind-message strong {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #92400e !important;
    margin: 0 0 0.45rem 0 !important;
    line-height: 1.4 !important;
}

.post-blind-reason-label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #92400e !important;
    background: #fde68a !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 999px !important;
    margin: 0.1rem 0 0.4rem 0 !important;
    letter-spacing: 0.02em;
}

.post-blind-reason-label i {
    font-size: 0.7rem;
}

.post-blind-message p {
    display: block !important;
    font-size: 0.9rem !important;
    color: #78350f !important;
    margin: 0.25rem 0 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    word-break: break-word;
}

/* 차단된 키워드 칩 영역 */
.post-blind-keywords {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0.55rem 0.65rem !important;
    background: #ffffff !important;
    border: 1px solid #fde68a !important;
    border-radius: 6px !important;
}

.post-blind-keywords-label {
    display: block !important;
    width: 100% !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #92400e !important;
    margin-bottom: 0.25rem !important;
    letter-spacing: 0.02em;
}

.post-blind-keyword-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.2rem !important;
    padding: 0.22rem 0.55rem !important;
    background: #fef3c7 !important;
    color: #78350f !important;
    border: 1px solid #fcd34d !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    word-break: break-all;
}

.post-blind-keyword-chip i {
    font-size: 0.65rem !important;
    color: #d97706;
}

.post-blind-message p.post-blind-meta,
.post-blind-message p.post-blind-content-quote {
    font-weight: 500 !important;
    font-size: 0.82rem !important;
    color: #78350f !important;
    margin-top: 0.55rem !important;
    padding: 0.55rem 0.7rem !important;
    background: #fffdf5 !important;
    border: 1px dashed #fde68a !important;
    border-radius: 6px !important;
    line-height: 1.55 !important;
}

.post-blind-message p.post-blind-content-quote {
    color: #78350f !important;
    background: #fef9c3 !important;
    border: 1px solid #fde68a !important;
    font-style: normal;
}

/* === 사용자 차단 블라인드 (회원 간 차단) === */
.post-user-blocked-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
}

/* 차단 아이콘 래퍼: 연한 빨간 원형 배경 */
.post-blocked-ban-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fef2f2;
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* 메시지 영역 */
.post-blocked-ban-msg strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--wa-color-neutral-40, #334155);
    margin-bottom: 0.25rem;
}

.post-blocked-ban-msg p {
    font-size: 0.8rem;
    color: var(--wa-color-neutral-60, #64748b);
    margin: 0;
    line-height: 1.5;
}

/* === 구인구직 만료 안내 (6개월 이전 글) === */
.post-expired-job-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: #fffbeb;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

.expired-job-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fef3c7;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.expired-job-message strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.25rem;
}

.expired-job-message p {
    font-size: 0.8rem;
    color: #a16207;
    margin: 0;
    line-height: 1.5;
}

/* 코멘트 차단 블라인드 */
.comment-user-blocked {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wa-color-neutral-400, #94a3b8);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.unblock-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--wa-color-neutral-300, #cbd5e1);
    border-radius: 0.25rem;
    background: transparent;
    color: var(--wa-color-neutral-500, #64748b);
    cursor: pointer;
    font-size: 0.75rem;
    transition: background 0.15s;
}

.unblock-comment-btn:hover {
    background: var(--wa-color-neutral-100, #f1f5f9);
}

/* 차단 버튼 활성 상태 (액션바) */
.post-block-active {
    color: var(--wa-color-red-50, #ef4444) !important;
}

/* 신고 버튼 활성 상태 (액션바) */
.post-report-active {
    color: #9ca3af !important;
}

/* 코멘트 차단 버튼 활성 상태 */
.comment-block-active {
    color: var(--wa-color-red-50, #ef4444) !important;
}

/* 코멘트 신고 버튼 활성 상태 */
.comment-report-active {
    color: #9ca3af !important;
}

/* 코멘트 블라인드 버튼 활성 상태 */
.comment-blind-active {
    color: var(--wa-color-red-50, #ef4444) !important;
}

/* 즐겨찾기 버튼 활성 상태 (금색 별) */
.post-bookmark-active {
    color: #f59e0b !important;
}

.post-bookmark-active:hover {
    color: #d97706 !important;
}

/* 코멘트 즐겨찾기 활성 상태 */
.comment-bookmark-active {
    color: #f59e0b !important;
}

.comment-bookmark-active:hover {
    color: #d97706 !important;
}

/* 코멘트 좋아요 버튼 */
.comment-like-btn {
    color: var(--wa-color-brand-600, #2563eb);
}

.comment-like-active {
    color: #ef4444 !important;
    font-weight: 600;
}

.comment-like-active:hover {
    color: #dc2626 !important;
}

.comment-like-count {
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.1rem;
}

/* === 첨부파일 === */
.post-files-section {
    padding: 0.85rem 0;
    margin-top: 0.25rem;
}

.post-files-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wa-color-neutral-600, #475569);
    margin: 0 0 0.6rem;
}

.post-files-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-file-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.post-file-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.post-file-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2.25rem;
    text-align: center;
}

.post-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.post-file-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-file-ext {
    font-size: 0.7rem;
    color: #94a3b8;
}

.post-file-download {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 0.75rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.post-file-card:hover .post-file-download {
    background: #2563eb;
    color: #fff;
}

/* === 액션 바 === */
.post-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 0;
}

.post-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    width: 100%;
    flex-wrap: wrap;
}

/* 오른쪽 그룹: 목록 + 더보기 — margin-left: auto로 오른쪽 정렬 */
.post-action-right {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
}

.post-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--wa-color-neutral-500, #64748b);
    background: transparent;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    white-space: nowrap;
}

.post-action-btn i {
    font-size: 0.75rem;
}

.post-action-btn:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--wa-color-neutral-600, #475569);
}

/* 포인트 광고 토글 버튼: 오렌지 텍스트 */
.post-point-adv-toggle {
    position: relative;
    color: #d97706 !important;
}

.post-point-adv-toggle:hover {
    background: rgba(217, 119, 6, 0.08) !important;
}

.post-point-adv-toggle.post-point-adv-open {
    background: rgba(217, 119, 6, 0.1) !important;
    color: #b45309 !important;
}

/* 광고 진행 중 활성 표시 점 */
.post-point-adv-toggle.has-active-adv::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    border: 1px solid white;
}

/* 좋아요 버튼: 블루 텍스트 */
.post-like-btn {
    color: var(--wa-color-brand-600, #2563eb);
}

.post-like-btn:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--wa-color-brand-700, #1d4ed8);
}

/* 좋아요 활성 상태: 빨간색으로 확실하게 강조 */
.post-like-active {
    color: #ef4444 !important;
    font-weight: 600;
}

.post-like-active:hover {
    color: #dc2626 !important;
    background: rgba(239, 68, 68, 0.06) !important;
}

.post-action-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
}

/* 삭제 버튼: 다른 버튼과 동일 (create.css 오버라이드 방지) */
.post-action-buttons .post-delete-btn {
    color: var(--wa-color-neutral-500, #64748b);
    background: transparent;
    border: none;
}

/* 삭제 확인 버튼: 빨간 배경 (확인 단계만) */
.post-delete-confirm-btn {
    color: #fff;
    background: #dc2626;
}

.post-delete-confirm-btn:hover {
    background: #b91c1c;
    color: #fff;
}

/* === 글 액션: 즐겨찾기/북마크 텍스트 전환 === */
/* 기본: 데스크탑 — "즐겨찾기" 표시, "북마크" 숨김 */
.post-bookmark-text-mobile {
    display: none;
}

/* === 글 액션: 더보기 드롭다운 === */
/* 데스크탑/모바일 모두 표시 (프로필/글/코멘트 보기 접근용) */
.post-more-dropdown {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.post-more-menu {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--wa-color-neutral-200, #e2e8f0);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    min-width: 110px;
}

.post-more-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    color: var(--wa-color-neutral-600, #475569);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    text-decoration: none;
    text-align: left;
    width: 100%;
}

.post-more-item:hover {
    background: var(--wa-color-neutral-95, #f1f5f9);
}

.post-more-item i {
    font-size: 0.72rem;
    width: 1rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.post-more-item-danger {
    color: #dc2626;
}

.post-more-item-danger:hover {
    background: #fef2f2;
}

/* 더보기 메뉴 구분선 */
.post-more-divider {
    height: 1px;
    background: var(--wa-color-neutral-200, #e2e8f0);
    margin: 0.2rem 0.5rem;
}

/* 더보기 메뉴 그룹 라벨 */
.post-more-label {
    padding: 0.3rem 0.75rem 0.15rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--wa-color-neutral-400, #9ca3af);
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    /* 모바일: 인라인 수정/삭제/신고/차단 숨김 */
    .post-desktop-action {
        display: none !important;
    }

    /* 모바일: "즐겨찾기" → "북마크" 텍스트 전환 */
    .post-bookmark-text-desktop {
        display: none;
    }
    .post-bookmark-text-mobile {
        display: inline;
    }

    .post-more-toggle {
        font-size: 0.85rem !important;
        padding: 0.3rem 0.5rem !important;
    }
}

/* === 코멘트 영역 === */
.post-comments-section {
    padding: 1.25rem 0 1rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--wa-color-neutral-200, #e2e8f0);
}

.post-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.post-comments-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--wa-color-neutral-800, #1e293b);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.post-comments-title i {
    color: var(--wa-color-brand-500, #3b82f6);
    font-size: 0.85rem;
}

.post-comments-title wa-badge {
    font-size: 0.6rem;
}

.post-comments-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--wa-color-neutral-50, #475569);
    background: var(--wa-color-neutral-95, #f8fafc);
    border: none;
    border-radius: 12px;
    margin-top: 0.5rem;
}

.post-comments-empty i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--wa-color-neutral-60, #94a3b8);
}

.post-comments-empty p {
    margin: 0 0 0.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wa-color-neutral-40, #475569);
}

.post-comments-empty span {
    font-size: 0.75rem;
    color: var(--wa-color-neutral-50, #64748b);
}

/* === 코멘트 목록 === */
.post-comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* === 코멘트 아이템 (레거시 flat 구조) === */
.post-comment-item {
    display: flex;
    gap: 0.65rem;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    position: relative;
}

.post-comment-item:hover {
    background-color: var(--wa-color-neutral-50, #f8fafc);
}

.post-comment-item + .post-comment-item {
    border-top: 1px solid var(--wa-color-neutral-100, #f1f5f9);
}

/* 대댓글 들여쓰기 + 좌측 연결선 */
.post-comment-item.depth-2 {
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--wa-color-brand-200, #bfdbfe);
    border-radius: 0 8px 8px 0;
}

.post-comment-item.depth-3 {
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid var(--wa-color-brand-100, #dbeafe);
    border-radius: 0 8px 8px 0;
}

.post-comment-item.depth-4 {
    margin-left: 4rem;
    padding-left: 1rem;
    border-left: 2px solid var(--wa-color-neutral-200, #e2e8f0);
    border-radius: 0 8px 8px 0;
}

/* 레거시 대댓글 아이콘 (border-left로 대체) */
.comment-reply-icon {
    display: none;
}

/* === 코멘트 아바타 (레거시) === */
.comment-avatar {
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.comment-avatar wa-avatar {
    --size: 2rem;
    font-size: 0.75rem;
}

.post-comment-item.depth-2 .comment-avatar wa-avatar,
.post-comment-item.depth-3 .comment-avatar wa-avatar,
.post-comment-item.depth-4 .comment-avatar wa-avatar {
    --size: 1.75rem;
    font-size: 0.7rem;
}

/* === 코멘트 본문 래퍼 === */
.comment-body-wrap {
    flex: 1;
    min-width: 0;
}

/* === 코멘트 헤더 === */
.post-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wa-color-neutral-700, #334155);
}

.comment-date {
    font-size: 0.7rem;
    color: var(--wa-color-neutral-400, #94a3b8);
}

.comment-date wa-relative-time {
    font-size: inherit;
    color: inherit;
}

/* === 코멘트 본문 === */
.post-comment-body {
    font-size: 1.0rem;
    line-height: 1.6;
    color: var(--wa-color-neutral-700, #334155);
    word-break: break-word;
}

.comment-blocked {
    color: var(--wa-color-neutral-400, #94a3b8);
    font-style: italic;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* 댓글 블라인드 — 강조 없음, 회색 인라인, 카드/배경/테두리 없음 */
.comment-blinded {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    border-radius: 0 !important;
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-style: normal !important;
    line-height: 1.5 !important;
}

.comment-blind-header {
    display: block !important;
    color: #94a3b8 !important;
}

.comment-blinded .fa-eye-slash {
    color: #cbd5e1 !important;
    margin-right: 0.25rem !important;
}

.comment-blind-reason {
    color: #94a3b8 !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    background: transparent !important;
}

.comment-blind-meta,
.comment-blind-content-quote {
    display: block !important;
    font-size: 0.72rem !important;
    color: #cbd5e1 !important;
    margin: 0.1rem 0 0 1.15em !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    font-style: normal !important;
    line-height: 1.45 !important;
    word-break: break-word;
    max-width: 100%;
}

/* === 코멘트 첨부 이미지 === */
.comment-files {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.comment-image {
    max-width: 200px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--wa-color-neutral-200, #e2e8f0);
    transition: transform 0.15s ease;
    cursor: pointer;
}

.comment-image:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* === 하단 글 목록 === */
.post-bottom-list {
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--wa-color-neutral-200, #e2e8f0);
}

.post-bottom-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.post-bottom-list-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--wa-color-neutral-900, #0f172a);
}

/* 하단 글 목록 글쓰기 버튼 — 콤팩트 + 와인 레드(업소록 등록 버튼과 동일) */
.post-bottom-list-header wa-button::part(base) {
    font-size: 0.68rem;
    height: 1.65rem;
    min-height: 1.65rem;
    padding: 0 0.9rem;
}

.post-bottom-list-header wa-button::part(label) {
    padding: 0 0.15rem;
}

.post-bottom-list-header wa-button[variant="brand"]::part(base) {
    background-color: #7f1d1d;
    border-color: #7f1d1d;
    color: #ffffff;
}

.post-bottom-list-header wa-button[variant="brand"]::part(base):hover {
    background-color: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

.post-bottom-list-header wa-button[variant="brand"]::part(base):focus-visible {
    background-color: #991b1b;
    border-color: #991b1b;
    color: #ffffff;
}

/* 현재 보고 있는 글 하이라이트 */
.post-list-row.current-post {
    background: rgba(37, 99, 235, 0.06);
}

.post-list-row.current-post .post-subject {
    color: var(--wa-color-brand-700, #1d4ed8);
    font-weight: 700;
}

/* 위젯 기반 현재 글 하이라이트 (post-list-widget.php에서 사용) */
.post-tile-current-wrapper .post-tile-row {
    background: rgba(37, 99, 235, 0.06);
}

.post-tile-current-wrapper .post-tile-subject {
    color: var(--wa-color-brand-700, #1d4ed8);
    font-weight: 700;
}

/* ================================================
   코멘트 작성 폼 — 깔끔하고 모던한 디자인
   ================================================ */
/* --- 기본 댓글 작성 폼 컨테이너 --- */
.comment-create-form {
    margin-bottom: 1.25rem;
    transition: all 0.25s ease;
}

/* --- 접힌 상태 (한 줄) --- */
.comment-collapsed-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--wa-color-neutral-95, #f8fafc);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-collapsed-row:hover {
    background: var(--wa-color-neutral-90, #f1f5f9);
}

.comment-collapsed-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--wa-color-neutral-500, #64748b);
    cursor: pointer;
    padding: 0.3rem 0;
    font-family: inherit;
}

.comment-collapsed-input::placeholder {
    color: var(--wa-color-neutral-50, #64748b);
}

.comment-camera-btn {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--wa-color-neutral-50, #64748b);
    cursor: pointer;
    font-size: 1.15rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.comment-camera-btn:hover {
    color: var(--wa-color-brand-50, #3b82f6);
    background: var(--wa-color-brand-95, #eff6ff);
}

.comment-send-btn {
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--wa-color-neutral-50, #64748b);
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.comment-send-btn:hover {
    color: var(--wa-color-brand-600, #2563eb);
}

/* --- 펼친 상태 --- */
.comment-create-form.expanded {
    padding: 0.75rem;
    background: var(--wa-color-neutral-95, #f8fafc);
    border-radius: 10px;
    border: none;
    animation: commentExpandIn 0.25s ease-out;
}

@keyframes commentExpandIn {
    from {
        opacity: 0.8;
        transform: scaleY(0.95);
        transform-origin: top;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.comment-create-form.expanded:focus-within {
    background: var(--wa-color-neutral-90, #f1f5f9);
}

.comment-expanded-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-expanded-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-expanded-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.comment-save-btn {
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    gap: 0.35rem !important;
}

.comment-form-error {
    padding: 0.4rem 0.6rem;
    background: #fef2f2;
    border: none;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-input-row {
    display: flex;
    gap: 0.4rem;
    align-items: flex-end;
}

.comment-textarea {
    flex: 1;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    border: 1px solid var(--wa-color-neutral-200, #e2e8f0);
    border-radius: 8px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    min-height: 2.5rem;
    box-sizing: border-box;
    background: #fff;
    color: var(--wa-color-neutral-800, #1e293b);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-textarea:focus {
    border-color: var(--wa-color-brand-400, #60a5fa);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.06);
}

.comment-textarea::placeholder {
    color: var(--wa-color-neutral-400, #94a3b8);
}

.comment-input-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    flex-shrink: 0;
}

.comment-attach-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--wa-color-neutral-400, #94a3b8);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.15s ease;
}

.comment-attach-btn:hover {
    background: var(--wa-color-brand-95, #eff6ff);
    color: var(--wa-color-brand-600, #2563eb);
}

.comment-submit-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    background: var(--wa-color-brand-600, #2563eb);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-submit-btn:hover {
    background: var(--wa-color-brand-700, #1d4ed8);
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-upload-area {
    margin-top: 0.5rem;
}

/* === 코멘트 액션 버튼 === */
.comment-actions-wrap {
    margin-top: 0.3rem;
}

.comment-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.comment-action-link {
    background: none;
    border: none;
    padding: 0.15rem 0.4rem;
    font-size: 0.7rem;
    color: var(--wa-color-neutral-400, #94a3b8);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    border-radius: 4px;
    transition: all 0.15s;
}

.comment-action-link:hover {
    color: #64748b;
    background: #f1f5f9;
}

.comment-action-danger:hover {
    color: #dc2626 !important;
    background: #fef2f2 !important;
}

/* 수정 폼 기본 스타일 */
.comment-edit-form {
    margin-top: 0.5rem;
    padding: 0.6rem;
    background: var(--wa-color-neutral-95, #f8fafc);
    border-radius: 8px;
    border: none;
}

.comment-edit-form .comment-textarea {
    width: 100%;
    min-height: 3.5rem;
}

/* 대댓글(답글) 폼 — 개선된 디자인 */
.comment-reply-form {
    margin-top: 0.6rem;
    padding: 0.75rem 0.85rem;
    background: var(--wa-color-neutral-95, #f8fafc);
    border-radius: 10px;
    border: none;
    border-left: 3px solid var(--wa-color-brand-400, #60a5fa);
    transition: background 0.2s ease;
    animation: replyFormSlideIn 0.2s ease-out;
}

@keyframes replyFormSlideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-reply-form:focus-within {
    background: var(--wa-color-neutral-90, #f1f5f9);
    border-left-color: var(--wa-color-brand-500, #3b82f6);
}

/* 대댓글 폼 내부: 세로 배치 (textarea 상단, 버튼 하단) */
.comment-reply-form .comment-input-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

/* 대댓글 폼 textarea 전체 너비 */
.comment-reply-form .comment-textarea {
    width: 100%;
    min-height: 3.5rem;
    border-radius: 8px;
}

/* 대댓글 폼 버튼 그룹 — 우측 정렬 */
.comment-reply-form .comment-input-actions {
    align-self: flex-end;
    gap: 0.4rem;
}

.comment-edit-actions {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.35rem;
    align-items: center;
}

.comment-cancel-link {
    background: var(--wa-color-neutral-90, #f1f5f9);
    border: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.76rem;
    color: var(--wa-color-neutral-600, #475569);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.comment-cancel-link:hover {
    background: var(--wa-color-neutral-85, #e2e8f0);
}

/* === 코멘트 즐겨찾기/북마크 텍스트 전환 === */
/* 기본: 데스크탑 — "즐겨찾기" 표시, "북마크" 숨김 */
.comment-bookmark-text-mobile {
    display: none;
}

/* === 코멘트 더보기 드롭다운 === */
/* 데스크탑/모바일 모두 표시 (프로필/글/코멘트 보기 접근용) */
.comment-more-dropdown {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.comment-more-menu {
    position: absolute;
    bottom: calc(100% + 4px);
    right: 0;
    z-index: 100;
    background: #fff;
    border: 1px solid var(--wa-color-neutral-200, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.comment-more-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    line-height: 1;
    color: var(--wa-color-neutral-700, #334155);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    text-decoration: none;
    text-align: left;
    width: 100%;
}

.comment-more-item:hover {
    background: var(--wa-color-neutral-95, #f1f5f9);
}

.comment-more-item i {
    font-size: 0.85rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--wa-color-neutral-500, #64748b);
}

.comment-more-item-danger {
    color: #dc2626;
}

.comment-more-item-danger i {
    color: #dc2626;
}

.comment-more-item-danger:hover {
    background: #fef2f2;
}

/* 코멘트 더보기 메뉴 구분선 */
.comment-more-divider {
    height: 1px;
    background: var(--wa-color-neutral-200, #e2e8f0);
    margin: 0.3rem 0.25rem;
}

/* 코멘트 더보기 메뉴 — 관리자 그룹 레이블 */
.comment-more-group-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.75rem 0.3rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--wa-color-neutral-500, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.comment-more-group-label i {
    font-size: 0.85rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
    color: var(--wa-color-brand-600, #2563eb);
}

@media (max-width: 640px) {
    /* 모바일: 인라인 수정/삭제/신고/차단 숨김 */
    .comment-desktop-action {
        display: none !important;
    }

    /* 모바일: "즐겨찾기" → "북마크" 텍스트 전환 */
    .comment-bookmark-text-desktop {
        display: none;
    }
    .comment-bookmark-text-mobile {
        display: inline;
    }

    /* 모바일: 더보기 드롭다운 오른쪽 정렬 */
    .comment-more-dropdown {
        margin-left: auto;
    }

    .comment-more-toggle {
        font-size: 0.85rem !important;
        padding: 0.15rem 0.5rem !important;
    }
}

/* === 코멘트 모바일 반응형 (레거시 flat 구조) === */
@media (max-width: 640px) {
    .post-comment-item.depth-2 {
        margin-left: 0.75rem;
    }

    .post-comment-item.depth-3 {
        margin-left: 1.25rem;
    }

    .post-comment-item.depth-4 {
        margin-left: 1.5rem;
    }

    .comment-avatar wa-avatar {
        --size: 1.75rem;
        font-size: 0.7rem;
    }

    .post-comment-item.depth-2 .comment-avatar wa-avatar,
    .post-comment-item.depth-3 .comment-avatar wa-avatar,
    .post-comment-item.depth-4 .comment-avatar wa-avatar {
        --size: 1.5rem;
        font-size: 0.65rem;
    }
}

/* ============================================
   Reddit 스타일 코멘트 스레드

   핵심: 아바타 바로 아래에서 세로선이 시작하며,
   마지막 직접 자식의 아바타 중앙까지만 세로선 표시.
   세로선 높이는 JS(adjustThreadLines)로 동적 계산.
   ============================================ */

/* 코멘트 노드: 절대위치 thread-line의 기준 */
.comment-node {
    position: relative;
    padding: 0.4rem 0;
}

/* 코멘트 행: avatar-col + body-col */
.comment-row {
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* 최상위 코멘트 간 구분선 */
.reddit-threads > .comment-node + .comment-node {
    border-top: 1px solid var(--wa-color-neutral-100, #f1f5f9);
    margin-top: 0.15rem;
    padding-top: 0.5rem;
}

/* === 아바타 컬럼: 아바타 + 세로선 시작점 === */
.comment-avatar-col {
    width: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
}

/* 아바타 크기 (드롭다운 위젯 내부 wa-avatar도 포함) */
/* z-index: thread-line(10) 위로 올려 라인이 아바타 위에 표시되는 시각적 결함 방지.
   image 슬롯과 initials 슬롯의 박스 모델 미세 차이로 thread-line 시작 픽셀이
   아바타 영역과 1~2px 겹치더라도 아바타가 항상 위로 그려진다. */
.comment-avatar-col wa-avatar {
    --size: 1.75rem;
    font-size: 0.7rem;
    position: relative;
    z-index: 11;
}

/* 최상위 코멘트 아바타 (약간 더 크게) */
.reddit-threads > .comment-node > .comment-row > .comment-avatar-col wa-avatar {
    --size: 2rem;
    font-size: 0.75rem;
}

/* 드롭다운 컨테이너도 thread-line 위로 — wa-avatar 와 동일 stacking context */
.comment-avatar-col .user-hover-dropdown {
    position: relative;
    z-index: 11;
}

/* === 절대 위치 세로선: 아바타 바로 아래에서 시작 === */
/* height는 JS adjustThreadLines()로 동적 계산 */
.thread-line {
    position: absolute;
    left: 17px;       /* 아바타 컬럼 중앙 (36px/2 - 1px) */
    top: 40px;        /* 초기값, JS adjustThreadLines()에서 재계산 */
    width: 1px;
    background-color: var(--wa-color-neutral-300, #cbd5e1);
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.15s, width 0.15s;
}

.thread-line:hover {
    background-color: var(--wa-color-brand-500, #3b82f6);
    width: 3px;
    left: 16px;
}

/* 접힌 상태에서 세로선 숨김 */
.comment-node.collapsed > .thread-line {
    display: none;
}

/* === 코멘트 본문 컬럼 === */
.comment-body-col {
    flex: 1;
    min-width: 0;
    padding: 4px 0 4px 4px;
}

/* === 접힌 상태 처리 === */
.comment-node.collapsed > .comment-row .post-comment-body,
.comment-node.collapsed > .comment-row .comment-files,
.comment-node.collapsed > .comment-row .post-comment-actions,
.comment-node.collapsed > .thread-children {
    display: none;
}

/* 접힌 상태 알림 텍스트 (기본 숨김) */
.thread-collapsed-info {
    display: none;
    font-size: 0.72rem;
    color: var(--wa-color-brand-600, #2563eb);
    cursor: pointer;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* 접힌 상태: "[+N개 답글]" 텍스트 표시 */
.comment-node.collapsed .thread-collapsed-info {
    display: inline;
}

/* === 자식 코멘트 영역: 아바타 중앙 기준 들여쓰기 === */
.thread-children {
    margin-left: 18px;
    padding-left: 18px;
}

/* === L자 곡선: 마지막 직접 자식에 곡선 연결선 (Reddit 동일) === */
/* 모든 직접 자식에 곡선 연결선 */
.thread-children > .comment-node::before {
    content: '';
    position: absolute;
    left: -19px;       /* 부모 세로선 위치와 정렬 */
    top: 0;
    width: 15px;
    height: 20px;      /* 아바타 중앙까지 (padding 6px + avatar/2 14px) */
    border-left: 1px solid var(--wa-color-neutral-300, #cbd5e1);
    border-bottom: 1px solid var(--wa-color-neutral-300, #cbd5e1);
    border-bottom-left-radius: 10px;
    border-right: none;
    border-top: none;
    z-index: 5;
}

/* === 모바일 반응형 === */
@media (max-width: 640px) {
    /* 모바일 글 헤더 */
    .post-view-title {
        font-size: 1.1rem;
        padding-left: 0.25rem;
    }

    .post-view-author-row wa-avatar {
        --size: 2rem;
    }

    /* 모바일 액션 바 */
    .post-action-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.72rem;
    }

    /* 모바일 댓글 폼 */
    .comment-create-form {
        padding: 0.6rem;
    }

    .comment-input-row {
        flex-direction: column;
        gap: 0.4rem;
    }

    .comment-input-actions {
        align-self: flex-end;
    }

    /* 모바일 스레드 */
    .comment-avatar-col {
        width: 30px;
        flex: 0 0 30px;
        padding-top: 4px;
    }

    .comment-avatar-col wa-avatar {
        --size: 1.5rem;
        font-size: 0.65rem;
    }

    .reddit-threads > .comment-node > .comment-row > .comment-avatar-col wa-avatar {
        --size: 1.75rem;
        font-size: 0.7rem;
    }

    .thread-line {
        left: 14px;
    }

    .thread-line:hover {
        left: 13px;
    }

    .comment-body-col {
        padding-left: 2px;
    }

    .thread-children {
        margin-left: 15px;
        padding-left: 15px;
    }

    .thread-children > .comment-node::before {
        left: -16px;
        width: 12px;
        height: 16px;
        border-bottom-left-radius: 8px;
    }
}

/* ============================================================
 * AI 답변 영역
 * ============================================================ */

.ai-answer-section {
    margin: 1em 0;
}

.ai-answer-trigger {
    display: flex;
    justify-content: flex-start;
}

.ai-answer-btn {
    color: var(--wa-color-brand-600);
    border: 1px solid var(--wa-color-brand-600);
    border-radius: 4px;
    padding: 0.3em 0.8em;
    font-size: 0.8em;
    cursor: pointer;
    background: transparent;
}

.ai-answer-btn:hover {
    background: var(--wa-color-brand-50);
}

.ai-answer-loading {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 1em;
    color: var(--wa-color-neutral-600);
    font-size: 0.85em;
}

.ai-answer-container {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 1em;
    margin-top: 0.5em;
    border-left: 3px solid var(--wa-color-brand-400, #60a5fa);
}

.ai-answer-header {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 0.6em;
    font-weight: 600;
    font-size: 0.85em;
    color: var(--wa-color-brand-600);
}

.ai-answer-header i {
    font-size: 1em;
}

.ai-answer-label {
    font-size: 0.85em;
}

.ai-answer-content {
    font-size: 0.85em;
    line-height: 1.7;
    color: var(--wa-color-neutral-800);
    word-break: break-word;
}

/* AI 답변 마크다운 렌더링 */
.ai-answer-content.markdown-body h1,
.ai-answer-content.markdown-body h2,
.ai-answer-content.markdown-body h3,
.ai-answer-content.markdown-body h4 {
    margin: 1em 0 0.5em;
    line-height: 1.3;
    color: var(--wa-color-neutral-900);
}

.ai-answer-content.markdown-body h1 { font-size: 1.3em; }
.ai-answer-content.markdown-body h2 { font-size: 1.15em; }
.ai-answer-content.markdown-body h3 { font-size: 1.05em; }
.ai-answer-content.markdown-body h4 { font-size: 1em; }

.ai-answer-content.markdown-body ul,
.ai-answer-content.markdown-body ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.ai-answer-content.markdown-body li {
    margin: 0.3em 0;
}

.ai-answer-content.markdown-body strong {
    font-weight: 700;
    color: var(--wa-color-neutral-900);
}

.ai-answer-content.markdown-body code {
    background: var(--wa-color-neutral-100);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.ai-answer-content.markdown-body pre {
    background: var(--wa-color-neutral-100);
    padding: 0.8em;
    border-radius: 6px;
    overflow-x: auto;
    margin: 0.5em 0;
}

.ai-answer-content.markdown-body pre code {
    background: none;
    padding: 0;
}

.ai-answer-content.markdown-body a {
    color: var(--wa-color-brand-600);
    text-decoration: underline;
}

/* 코멘트 앵커 스크롤 하이라이트 애니메이션 */
@keyframes comment-highlight-fade {
    0% { background-color: rgba(59, 130, 246, 0.15); }
    100% { background-color: transparent; }
}

.comment-node.comment-highlight {
    animation: comment-highlight-fade 3s ease-out;
    border-radius: 6px;
}

/* === AI 검열 블라인드 안내 (사용자) === */
.post-blind-edit-guide {
    display: block;
    margin: 0.5rem 0 0 0 !important;
    padding: 0.5rem 0.65rem !important;
    background: #fef9c3 !important;
    color: #854d0e !important;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
    border-radius: 6px !important;
    border: 1px solid #fde68a !important;
    font-weight: 500 !important;
}

.post-blind-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

/* === AI 검열 결과 (관리자 전용 상세) === */
.post-moderation-status {
    margin: 0.75rem 0 1rem 0;
}

.post-moderation-status wa-details {
    --background-color: #f8fafc;
    --border-color: #e2e8f0;
    border-radius: 8px;
}

.post-moderation-status--blinded wa-details {
    --background-color: #fef2f2;
    --border-color: #fecaca;
}

.post-moderation-status--blinded wa-details::part(summary) {
    color: #b91c1c;
    font-weight: 600;
}

.post-moderation-status--passed wa-details::part(summary) {
    color: #475569;
    font-weight: 500;
}

.post-moderation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #e2e8f0;
}

.post-moderation-meta i {
    margin-right: 0.25rem;
    color: #94a3b8;
}

.post-moderation-reason-box {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 6px;
}

.post-moderation-reason-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #be123c;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-moderation-reason-text {
    font-size: 0.85rem;
    color: #881337;
    line-height: 1.5;
    font-weight: 500;
}

.post-moderation-section {
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px dashed #e2e8f0;
}

.post-moderation-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.post-moderation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.post-moderation-badges wa-badge i {
    margin-right: 0.2rem;
}

.post-moderation-reasons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-moderation-reasons-list li {
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.3rem;
    background: #ffffff;
    border-left: 3px solid #94a3b8;
    border-radius: 0 4px 4px 0;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.5;
    word-break: break-word;
}

.post-moderation-reasons-list li strong {
    color: #1e293b;
    font-weight: 600;
    margin-right: 0.25rem;
}

.post-moderation-status--blinded .post-moderation-reasons-list li {
    border-left-color: #f87171;
}

.post-moderation-info-score {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.post-moderation-info-score wa-progress-bar {
    flex: 1;
    --height: 8px;
    --indicator-color: #22c55e;
}

.post-moderation-info-score-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    min-width: 4rem;
    text-align: right;
}

.post-moderation-section--ok {
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 500;
}

.post-moderation-section--ok i {
    margin-right: 0.4rem;
}

/* 사용자 안내문 박스 (관리자 위젯) */
.post-moderation-user-explanation {
    padding: 0.65rem 0.85rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #78350f;
    line-height: 1.6;
    word-break: break-word;
}
