﻿.detail-container {
    width: 832px;
    margin: 40px auto;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans KR', Arial, sans-serif;
    color: #000;
}

    /* 상단 영역 -------------------------------------------------------- */
    .detail-container .post-header {
        border-bottom: 1px solid #000;
        margin-bottom: 8px;
    }

    .detail-container .title {
        font-size: 24px;
        font-weight: 400;
        margin: 0;
    }

    .detail-container .meta {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        font-size: 16px;
    }

    /* 본문 ------------------------------------------------------------ */
    .detail-container .post-content {
        background: #E4E4E4;
        border: 1px solid #000;
        height: 300px;
        padding: 16px;
        line-height: 1.6;
        margin-top: 8px;
    }

    /* 버튼 영역 -------------------------------------------------------- */
    .detail-container .post-actions {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 8px;
    }

    /* 버튼 공통 */
    .detail-container .btn {
        border: 1px solid #000;
        background: #e9e9e9;
        padding: 4px 10px;
        cursor: pointer;
        font-size: 14px;
        -webkit-appearance: none;
        appearance: none;
    }

        /* 핀 버튼 변형 */
        .detail-container .btn.pin {
            background-color: #007bff;
            color: #e9e9e9;
            margin-left: 8px;
        }

        .detail-container .btn.unpin {
            background-color: #6c757d;
            color: #e9e9e9;
            margin-left: 8px;
        }

    /* 댓글 영역 -------------------------------------------------------- */
    .detail-container .comment-section {
        margin-top: 20px;
    }

    .detail-container .comment-title {
        font-size: 20px;
        border-bottom: 1px solid #000;
        margin-bottom: 8px;
    }

    .detail-container .comment {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        border-bottom: 0.5px solid #000;
        padding: 6px 0;
        font-size: 16px;
    }

    .detail-container .comment-author {
        flex: 0 0 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .detail-container .comment-content {
        flex: 1 1 auto;
        word-break: break-word;
    }

    .detail-container .comment-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .detail-container .comment-date {
        font-size: 10px;
        color: #555;
    }

    .detail-container .like-count {
        font-size: 14px;
    }

    .detail-container .no-comment {
        color: #777;
        font-size: 14px;
        margin-top: 4px;
    }

    /* 하트/좋아요 ------------------------------------------------------ */
    .detail-container .like-btn {
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        -webkit-appearance: none;
        appearance: none;
    }

        .detail-container .like-btn:focus,
        .detail-container .like-btn:focus-visible {
            outline: none;
        }

    .detail-container .heart {
        width: 15px;
        height: 15px;
        display: block;
        background: none;
        border: none;
    }

    /* 댓글 작성 -------------------------------------------------------- */
    .detail-container .comment-form {
        margin-top: 12px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .detail-container .comment-me {
        width: 100px;
        font-size: 16px;
        line-height: 29px;
        color: #000;
    }

    .detail-container .comment-form-body {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        flex: 1;
    }

    /* 입력창 */
    .detail-container .comment-input {
        flex: 1;
        min-height: 132px;
        background: #fff;
        border: 1px solid #000;
        padding: 10px;
        resize: none;
        font-size: 16px;
        line-height: 1.5;
        box-sizing: border-box;
    }

    /* 등록 버튼 */
    .detail-container .comment-submit {
        width: 98px;
        height: 44px;
        background: #e9e9e9;
        border: 0.5px solid #000;
        cursor: pointer;
        font-size: 16px;
        box-sizing: border-box;
    }

    /* 댓글 삭제 버튼 (X) ---------------------------------------------- */
    .detail-container .comment-delete-form {
        margin-left: 6px;
    }

    .detail-container .comment-delete-btn {
        position: relative;
        width: 14px;
        height: 14px;
        border: 1px solid #000;
        background: #ededed;
        padding: 0;
        cursor: pointer;
        display: inline-block;
    }

        .detail-container .comment-delete-btn::before,
        .detail-container .comment-delete-btn::after {
            content: "";
            position: absolute;
            left: 2px;
            right: 2px;
            top: 6px;
            height: 1px;
            background: #000;
        }

        .detail-container .comment-delete-btn::before {
            transform: rotate(45deg);
        }

        .detail-container .comment-delete-btn::after {
            transform: rotate(-45deg);
        }

        .detail-container .comment-delete-btn:hover {
            filter: brightness(0.95);
        }
