/* ========================================
   GUESTBOOK 전용 스타일
   댓글 시스템(comments.css)과 동일한 디자인 시스템 적용
   ======================================== */

/* ========================================
   1. 기본 구조 및 레이아웃
   ======================================== */

#entry0Comment {
    width: 100%;
}

.guestbook-section {
    width: 100%;
    max-width: 700px;
}

/* ========================================
   2. 방명록 작성 폼
   ======================================== */

.guestbook-write {
    margin-bottom: 40px;
    flex-direction: column;
}

.guestbook-guest-info {
    position: relative;
    top: auto;
    width: 100%;
    margin-bottom: 16px;
}

.guestbook-guest-info::before {
    display: none;
}

.guestbook-write-wrapper {
    width: 100%;
    padding-top: 0;
}

.guestbook-textarea {
    padding: 10px 10px 0 10px !important;
    margin-bottom: 12px !important;
}

.guestbook-textarea textarea {
    min-height: 100px;
    max-height: 300px;
}

.guestbook-actions {
    justify-content: flex-end;
}

/* ========================================
   3. 방명록 목록
   ======================================== */

.guestbook-list {
    margin-top: 0;
}

.guestbook-item {
    position: relative;
}

/* ========================================
   4. 액션 링크 (답글, 삭제)
   ======================================== */

.guestbook-item .tt-wrap-info {
    gap: 16px;
}

.guestbook-item .tt-wrap-info .tt-link-comment {
    color: var(--quantum-text-secondary);
}

.guestbook-item .tt-wrap-info .tt-link-comment:hover {
    color: var(--quantum-point);
}

.guestbook-item .tt-wrap-info .tt-link-comment .tt_txt_g {
    display: flex;
    align-items: center;
}

.guestbook-item .tt-wrap-info .tt-link-comment .tt_txt_g::after {
    display: none;
}

.guestbook-item .tt-wrap-info .tt-link-comment .tt_txt_g [data-lucide] {
    width: 16px;
    height: 16px;
    margin-right: 0;
}

/* Reply 텍스트 버튼 */
.guestbook-reply-btn .tt_txt_g {
    font-size: 12px;
    text-decoration: underline;
}

/* ========================================
   5. 답글 리스트
   ======================================== */

.guestbook-reply-list {
    margin-top: 20px !important;
    margin-bottom: 0;
}

.guestbook-reply-list .tt-item-reply:first-child {
    padding-top: 0;
}

.guestbook-reply-list .tt-item-reply:last-child {
    padding-bottom: 0;
}

/* 답글 액션 링크 */
.guestbook-reply-list .tt-wrap-info .tt-link-comment .tt_txt_g::after {
    display: none;
}

/* ========================================
   6. 프로필 관련 요소 숨김
   ======================================== */

/* 프로필 하이퍼링크 비활성화 */
.guestbook-section .tt-link-user a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
    cursor: default;
}

/* PROFILE 버튼 숨김 */
.guestbook-section .tistoryProfileLayerTrigger {
    display: none !important;
}

/* ========================================
   7. 반응형 (700px 이하)
   ======================================== */

@media (max-width: 700px) {
    .guestbook-guest-info {
        flex-direction: column;
        gap: 8px;
    }

    .guestbook-guest-info input {
        width: 100%;
        flex: none;
    }

    .guestbook-textarea textarea {
        min-height: 80px;
    }
}
