@charset "UTF-8";

/* ==========================================================================
   Comment System - Refined UI 😊💬
   ========================================================================== */
.zzan-comment-area {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #EEE;
}

.comment-header { margin-bottom: 40px; }
.comment-title { font-size: 22px; font-weight: 800; color: var(--zp-black); }
.comment-title span { color: var(--zp-electric-blue); margin-left: 6px; }

.comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 60px; }

/* 댓글 카드 기본 스타일 (들여쓰기 계층 구조 중심) */
.comment-card {
    position: relative;
    background: #FFF;
    border: 1px solid #F0F0F0;
    border-radius: 20px;
    padding: 24px;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.comment-card:hover { border-color: #DDD; box-shadow: 0 8px 24px rgba(0,0,0,0.05); }

.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.comment-meta .author { font-weight: 700; color: var(--zp-black); font-size: 15px; }
.comment-meta .date { color: #AAA; font-size: 13px; }

.comment-content { font-size: 16px; line-height: 1.6; color: #444; margin-bottom: 15px; }

.comment-footer { display: flex; gap: 15px; }
.comment-footer button { 
    background: none; border: none; padding: 0; color: #888; font-size: 13px; cursor: pointer; 
    transition: 0.2s; font-weight: 500;
}
.comment-footer button:hover { color: var(--zp-electric-blue); text-decoration: underline; }
.btn-comment-delete:hover { color: #ff4d4d !important; }

/* 답글(Reply) 시스템 🧩 - 유연한 연결 라인 시스템 (Modular Line System) */
.comment-item {
    position: relative;
    display: flex;
    flex-direction: column;
}

.comment-item.comment-reply {
    padding-left: 48px; /* 답글 들여쓰기 🚀 */
}

/* 동적 보조 폼 (답글 작성/수정 시 등장) 🧩 */
.secondary-comment-form {
    position: relative;
    margin: 20px 0;
    padding-left: 48px; /* 답글과 동일한 들여쓰기 */
    display: none;
    background: transparent;
}

/* 3. 답글 토글 버튼 전용 스타일 */
.reply-toggle-wrapper {
    position: relative;
    padding-left: 48px; /* 댓글 들여쓰기 높이와 맞춤 */
    margin: 15px 0;
}

.reply-icon {
    position: absolute;
    left: 14px;
    top: 24px;
    color: var(--zp-gray-500);
    opacity: 0.6;
}

/* 토글 버튼 영역의 아이콘 위치 조정 */
.reply-toggle-wrapper .reply-icon {
    top: 10px; /* 버튼 높이에 맞춰 상단 위치 조정 */
}

.btn-reply-toggle {
    position: relative;
    z-index: 10;
    background: #FFF;
}

.btn-reply-toggle {
    background: #FFF;
    border: 1px solid #EEE;
    color: var(--zp-electric-blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px; /* 알약 형태의 카드 */
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.btn-reply-toggle:hover {
    background: var(--zp-gray-50);
    border-color: var(--zp-electric-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(var(--zp-electric-blue-rgb), 0.1);
}

.btn-reply-toggle svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-reply-toggle.is-active svg {
    transform: rotate(180deg);
}

.comment-item.comment-reply .comment-card {
    background: var(--zp-gray-50);
    flex: 1;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
    border-left: 4px solid var(--zp-electric-blue); /* 포인트 컬러 바 유지 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* 답글 작성자 옆 아이콘 색상 */
.comment-meta .author svg {
    color: var(--zp-electric-blue);
    opacity: 0.7;
}

/* 댓글 작성 폼 커스터마이징 */
.comment-form-area {
    background: var(--zp-gray-50);
    padding: 30px;
    border-radius: 24px;
}

.comment-form .form-header { display: flex; gap: 10px; margin-bottom: 15px; }
.input-comment {
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 14px;
    width: 150px;
}

.textarea-comment {
    width: 100%;
    height: 120px;
    background: #FFF;
    border: 1px solid #DDD;
    border-radius: 12px;
    padding: 15px;
    font-size: 15px;
    resize: none;
    outline: none;
    transition: 0.3s;
}
.textarea-comment:focus { border-color: var(--zp-electric-blue); }

.form-footer { display: flex; justify-content: flex-end; margin-top: 15px; }
.btn-comment-submit {
    background: var(--zp-black);
    color: #FFF;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-comment-submit:hover { transform: scale(1.05); }

.btn-comment-cancel {
    background: #eee;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: 0.3s;
}
.btn-comment-cancel:hover { background: #ddd; }
