:root {
    --accent: #6b7280;
    --border: #ddd;
    --text: #222;
    --gray: #666;
}

.jw-view {
    padding: 30px 0 80px;
}

.jw-view-container {
    width: 70%;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== 제목 ===== */
.view-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ===== 메타 정보 ===== */
.view-meta {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 25px;
}

.view-meta .cat { font-weight: 600; }
.view-meta .dot { color: #ccc; margin: 0 6px; }

/* ===== 본문 ===== */
.view-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 25px 0;
}

.view-content p {
    margin: 14px 0;
}

/* ===== 버튼 ===== */
.view-buttons {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.view-buttons button {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.view-buttons button:hover {
    background: #52575e;
}

/* ===== 댓글 ===== */
.comment-section {
    margin-top: 60px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.comment-section h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

#commentInput {
    width: 94%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    outline: none;
    margin-bottom: 10px;
}

.comment-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.comment-list li {
    padding: 10px 0;
}

.comment-list .writer {
    font-weight: 600;
    color: var(--text);
}

.comment-list .dot { color: #ccc; margin: 0 4px; }

.comment-list .time {
    font-size: 13px;
    color: var(--gray);
}

.comment-list .text {
    margin-top: 5px;
    font-size: 14px;
    color: var(--text);
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .jw-view-container { width: 92%; }
    .view-title { font-size: 20px; }
    .view-content { font-size: 15px; }
}

/* ===== 본문 이미지 반응형 최적화 ===== */
.view-content img {
    display: block;
    max-width: 70%;
    width: 70%;
    height: auto;
    margin: 12px auto;
    border-radius: 6px;
    object-fit: contain;
}

/* 모바일일 때: 이미지 주변 여백 조정 및 확대 방지 */
@media (max-width: 768px) {
    .jw-view-container {
        width: 94%;
        padding: 0 4px;
    }

    .view-content img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 8px auto;
        border-radius: 4px;
    }
}
