
/* 잠긴 글 안내 */
.locked-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    margin: 15px 0;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #d83d44;
    font-size: 12px;
}

.locked-notice .lock-reason {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 8px;
}

/* 좋아요/싫어요 링크 (PATO 스타일) */
.reaction-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    /* 본문 이미지의 float이 남아있어도 이 버튼은 항상 아래 라인에 배치되도록 */
    clear: both;
}

.reaction-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-dark);
    transition: all 0.15s ease;
}

.reaction-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

.reaction-link.like-link.active {
    color: #d83d44;
}

.reaction-link.dislike-link.active {
    color: #6b7280;
}

.reaction-link span {
    font-size: 22px;
    font-weight: 700;
}

/* 신고/잠금 버튼 */
.reaction-link.report-link {
    font-size: 11px;
    padding: 5px 10px;
    color: #a16207;
    border-color: rgba(245, 158, 11, 0.3);
}

.reaction-link.report-link:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.reaction-link.lock-link,
.reaction-link.unlock-link {
    font-size: 11px;
    padding: 5px 10px;
}

.reaction-link.lock-link {
    color: #d83d44;
    border-color: rgba(239, 68, 68, 0.3);
}

.reaction-link.lock-link:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.reaction-link.unlock-link {
    color: #1ea459;
    border-color: rgba(16, 185, 129, 0.3);
}

.reaction-link.unlock-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #6db142;
}

/* 작성자 뱃지 스타일 */
.view-author {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.level-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
}

.level-icon-small {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.author-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.author-link:hover {
    color: var(--accent-primary);
}

.view-category {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
}

.view-category.danger {
    background: #dc2626;
}

.view-info-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.info-row {
    display: flex;
    gap: var(--spacing-md);
}

.info-label {
    font-weight: bold;
    min-width: 80px;
    color: var(--text-secondary);
}

.info-value {
    color: var(--accent-primary);
}

.info-value a {
    color: var(--accent-primary);
    text-decoration: underline;
    word-break: break-all;
}
.info-value a:hover { opacity: 0.8; }

/* ===== 먹튀제보 전용 정보 박스: 엑셀 테이블 스타일 (목록과 동일한 톤) ===== */
.report-info-box {
    display: table;
    width: auto;
    max-width: 520px;
    border-collapse: collapse;
    border: 1px solid var(--border-dark);
    background: var(--bg-primary);
    margin: 10px auto 14px;  /* 가운데 정렬 */
    font-size: 12px;
    border-radius: 0;
    padding: 0;
    grid-template-columns: none;
    gap: 0;
    background-image: none;
    border-left: 1px solid var(--border-dark);
}

.report-info-box .info-row {
    display: table-row;
    padding: 0;
    border-bottom: none;
    gap: 0;
}

.report-info-box .info-label {
    display: table-cell;
    width: 100px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-dark);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 0;
    letter-spacing: 0;
    text-transform: none;
}
.report-info-box .info-label::before {
    content: '';
    display: none;
}

.report-info-box .info-value {
    display: table-cell;
    padding: 5px 12px;
    border: 1px solid var(--border-dark);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    vertical-align: middle;
    word-break: break-all;
}

.report-info-box .info-value a {
    color: #60a5fa;
    text-decoration: none;
    border-bottom: none;
    transition: opacity 0.15s;
}
.report-info-box .info-value a:hover {
    color: #1ea459;
    opacity: 1;
}

.report-damage {
    color: #d83d44 !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0;
    text-shadow: none;
}

@media (max-width: 640px) {
    .report-info-box {
        max-width: 100%;
    }
    .report-info-box .info-label {
        width: 85px;
        font-size: 11px;
    }
    .report-info-box .info-value,
    .report-damage {
        font-size: 11px !important;
    }
}

.view-evidence {
    background: var(--bg-primary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.view-evidence h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.view-actions-right {
    display: flex;
    gap: 10px;
}

.comment-form-user {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 10px;
}

.comment-user-name {
    font-weight: 600;
    color: var(--accent-primary);
}

.comment-form-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* 비로그인 블러 오버레이 */
.comments-blur-container {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.comments-blur-content {
    padding: 15px;
    filter: blur(6px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

.blur-comment-item {
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--border-dark) 50%, var(--bg-secondary) 100%);
    height: 60px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.blur-comment-item.short {
    width: 70%;
}

.comments-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.login-overlay-content {
    text-align: center;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.login-overlay-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

/* 댓글 레이아웃 - 데스크탑 */
.comment-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
}

.comment-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.comment-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--accent-primary);
}

.comment-avatar-img.small {
    width: 32px;
    height: 32px;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


.comment-rank-icon {
    font-size: 14px;
}

.comment-rank-badge {
    font-size: 10px;
    background: linear-gradient(135deg, #4a5568, #e7ecf1);
    color: #a0aec0;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.comment-author:hover {
    color: var(--accent-primary);
}

.author-badge {
    background: #dc2626;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.admin-badge {
    background: #7c3aed;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    word-break: break-word;
    white-space: pre-wrap;
}

.comment-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.btn-comment-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-comment-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.btn-comment-action.btn-delete:hover {
    color: #d83d44;
}

.btn-comment-action.btn-report:hover {
    color: #a16207;
}

/* 댓글 구분선 */
.comment-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-dark);
}

.comment-item:first-child {
    padding-top: 12px;
}

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

/* 대댓글 */
.reply-list {
    margin-top: 16px;
    margin-left: 52px;
    list-style: none;
}

.reply-item {
    padding: 12px 0;
    border-top: 1px solid var(--border-dark);
}

.reply-item:first-child {
    border-top: none;
}

.reply-indent {
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* 댓글 입력 폼 */
.comment-form-row-input {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
}
.comment-input-wrapper .mention-textarea-wrapper { flex: 1; min-width: 0; }

.comment-input-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    height: 100%;
    box-sizing: border-box;
}

.comment-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-input-wrapper .btn {
    align-self: stretch;
    flex-shrink: 0;
    padding: 0 22px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .comment-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .comment-input-wrapper .btn {
        align-self: flex-end;
        padding: 10px 22px;
    }
}

/* 가로형 답글 폼 (1:1문의 — 운영자 답변) */
.comment-form-horizontal .comment-input-wrapper {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
}
.comment-form-horizontal .comment-input-wrapper .mention-textarea-wrapper { flex: 1; min-width: 0; height: 264px; }
.comment-form-horizontal .comment-input-wrapper textarea {
    min-height: 264px;
    height: 264px;
    resize: none;
    padding: 10px 12px;
    box-sizing: border-box;
}
.comment-form-horizontal .comment-input-wrapper .btn {
    align-self: stretch;
    flex-shrink: 0;
    height: 264px;
    min-height: 264px;
    padding: 0 18px;
    white-space: nowrap;
    box-sizing: border-box;
}
@media (max-width: 600px) {
    .comment-form-horizontal .comment-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .comment-form-horizontal .comment-input-wrapper .mention-textarea-wrapper { height: auto; }
    .comment-form-horizontal .comment-input-wrapper .btn {
        align-self: flex-end;
        height: auto;
        min-height: 0;
    }
}

/* 답글 폼 */
.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

.reply-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.reply-form textarea::placeholder {
    color: var(--text-muted);
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
}

.btn-outline-danger {
    background: transparent;
    color: #d83d44;
    border: 1px solid #ef4444;
}
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-outline-warning {
    background: transparent;
    color: #a16207;
    border: 1px solid #f59e0b;
}
.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.1);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-dark);
}
.btn-outline-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* 수정 모드 */
.comment-edit-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--accent-primary);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 80px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.comment-edit-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.comment-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* @멘션 자동완성 */
.mention-textarea-wrapper {
    position: relative;
    width: 100%;
}

.mention-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    max-height: 180px;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border-light);
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-bottom: 1px solid var(--border-dark);
}

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

.mention-item:hover,
.mention-item.active {
    background: rgba(20, 184, 166, 0.15);
}

.mention-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
}

.mention-name {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.mention-item:hover .mention-name,
.mention-item.active .mention-name {
    color: var(--accent-primary);
}

/* @멘션 하이라이트 */
.mention-highlight {
    color: var(--accent-primary);
    font-weight: 600;
    background: rgba(20, 184, 166, 0.15);
    padding: 1px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mention-highlight:hover {
    background: rgba(20, 184, 166, 0.25);
    text-decoration: underline;
}

/* ===== 모바일 반응형 (배너, 좋아요 버튼) ===== */
@media (max-width: 768px) {
    .reaction-buttons {
        gap: 15px;
        padding: 15px 0;
    }

    .reaction-link {
        padding: 10px 16px;
        font-size: 16px;
    }

    .reaction-link span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .reaction-buttons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .reaction-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .reaction-link span {
        font-size: 16px;
    }
}

/* ===== 작성자 정보 바 ===== */
.author-info-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.author-profile {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-level-icon {
    width: 24px;
    height: 24px;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.15s;
}

.author-name:hover {
    color: var(--accent-primary);
}

.author-stats-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.author-stats-inline .stat-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.author-stats-inline .stat-item:first-child strong {
    color: var(--accent-primary);
}

.stat-divider {
    color: var(--border-dark);
}

.post-meta-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .author-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post-meta-right {
        margin-left: 0;
    }
}

/* ===== 게시판 최근 글 목록 ===== */
.board-recent-posts {
    background: var(--bg-secondary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: var(--spacing-lg);
}

.board-posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-dark);
}

.board-posts-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.view-all-link {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.view-all-link:hover {
    color: var(--accent-primary);
}


/* 반응형 */
@media (max-width: 768px) {
    .adjacent-posts {
        grid-template-columns: 1fr;
    }

    .adjacent-post.next {
        text-align: left;
    }

    .author-stats {
        grid-template-columns: 1fr 1fr;
    }

}
