.container_postbtn {
    margin-top: 40px;
    margin-bottom: 20px;
}

.postbtn_like {
    float: none;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 4px;
}

.postbtn_like .wrap_btn {
    position: relative;
}

.postbtn_like button {
    all: unset;
}

/* 좋아요 버튼 */
.postbtn_like .uoc-icon {
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 70px;
    gap: 4px;
}

.postbtn_like .heart-icon {
    margin-right: 2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.postbtn_like .heart-icon [data-lucide] {
    width: 26px;
    height: 26px;
    stroke: var(--quantum-text-secondary);
    stroke-width: 1.8;
    fill: none;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

/* 공감 활성화 시 하트 채우기 */
.postbtn_like .like_on .heart-icon [data-lucide],
.postbtn_like .empathy_up_without_ani .heart-icon [data-lucide] {
    fill: var(--quantum-danger);
    stroke: var(--quantum-danger);
}

.postbtn_like .ico_like {
    display: none;
}

/* 좋아요 버튼 애니메이션 효과 - 성능 최적화 */
.like_on .ico_like,
.empathy_up_without_ani .ico_like {
    animation: heartBeat 0.6s ease-in-out;
    will-change: transform;
    backface-visibility: hidden;
}

.postbtn_like .uoc-count {
    margin: 0;
    color: var(--quantum-text-secondary);
    font-size: 16px;
    line-height: 16px;
}

/* 댓글 영역 */
.postbtn_like .tt-box-total,
.postbtn_like .tt-box-total .comment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.postbtn_like .tt-box-total {
    margin-right: auto;
    gap: 4px;
}

.postbtn_like .tt-box-total .comment-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.postbtn_like .tt-box-total .comment-icon [data-lucide] {
    width: 24px;
    height: 24px;
    stroke: var(--quantum-text-secondary);
    stroke-width: 1.8;
}

.postbtn_like .tt-box-total .tt_txt_g {
    font-size: 0;
    color: var(--quantum-text-secondary);
}

.postbtn_like .tt-box-total .tt_num_g {
    margin: 0;
    color: var(--quantum-text-secondary);
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    background: none;
    padding: 0;
    border: none;
}

/* 게시글 관리 버튼 */
.wrap_btn_etc {
    position: relative;
    display: inline-block;
}

.wrap_btn_etc .btn_post {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: var(--quantum-glass-bg);
    border: 1px solid var(--quantum-glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--quantum-transition);
    font-size: 13px;
    font-weight: 500;
    color: var(--quantum-text-secondary);
}

.wrap_btn_etc .btn_post:hover {
    background-color: var(--quantum-bg-secondary);
    border-color: var(--quantum-border-medium);
}

.wrap_btn_etc .btn_post[aria-expanded="true"] {
    background-color: rgba(239, 246, 255, 0.9);
    border-color: rgba(var(--quantum-point-rgb), 0.3);
    color: var(--quantum-point);
}

.ico_postbtn.ico_etc {
    display: flex;
    align-items: center;
    font-size: 14px;
    text-indent: -9999px;
    position: relative;
    width: 18px;
    height: 18px;
    overflow: hidden;
    color: transparent;
}

/* 점 3개 아이콘 생성 */
.ico_postbtn.ico_etc::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background-color: var(--quantum-text-secondary);
    border-radius: 50%;
    box-shadow:
        -6px 0 0 var(--quantum-text-secondary),
        6px 0 0 var(--quantum-text-secondary);
}

/* 통계 버튼 스타일 */
.postbtn_like .wrap_btn:has(.ico_statistics) .btn_post {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background-color: var(--quantum-bg-secondary);
    border: 1px solid var(--quantum-border-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--quantum-transition);
}

.postbtn_like .wrap_btn:has(.ico_statistics) .btn_post:hover {
    background-color: var(--quantum-bg-tertiary);
    border-color: var(--quantum-border-medium);
}

.ico_postbtn.ico_statistics {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    text-indent: -9999px;
    position: relative;
    width: 16px;
    height: 16px;
}

/* 막대 차트 아이콘 */
.ico_postbtn.ico_statistics::before {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 3px;
    height: 6px;
    background-color: var(--quantum-text-tertiary);
    border-radius: 1px;
    box-shadow:
        5px 0 0 0 var(--quantum-text-tertiary),
        5px -4px 0 0 var(--quantum-text-tertiary),
        10px 0 0 0 var(--quantum-text-tertiary),
        10px -2px 0 0 var(--quantum-text-tertiary);
}

/* 드롭다운 레이어 */
.layer_post {
    display: none;
    position: absolute;
    z-index: 10;
    background: var(--quantum-bg-primary);
    border: 1px solid var(--quantum-border-light);
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    padding: 4px;
}

/* 드롭다운 위치 - 버튼 아래 + 오른쪽 정렬 */
.wrap_btn_share .layer_post {
    bottom: auto !important;
    left: auto !important;
    top: 100%;
    right: 0;
    margin-top: 4px;
}

.wrap_btn_etc .layer_post {
    bottom: auto !important;
    left: auto !important;
    top: 100%;
    right: 0;
    margin-top: 4px;
}

.bundle_post {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 2px;
}

/* 드롭다운 아이템 */
.container_postbtn .btn_mark {
    all: unset;
    display: block;
    width: 100%;
    padding: 6px 8px;
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    color: var(--quantum-text-secondary);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    border-radius: 4px;
    box-sizing: border-box;
}

.container_postbtn .btn_mark:hover {
    background-color: var(--quantum-bg-tertiary);
    color: var(--quantum-text-primary);
}

.container_postbtn .btn_mark[role="delete"] {
    color: var(--quantum-danger);
}

.container_postbtn .btn_mark[role="delete"]:hover {
    background-color: var(--quantum-bg-tertiary);
    color: var(--quantum-danger-hover);
}

/* 화살표 아이콘 */
.ico_arrbt {
    display: none;
}

/* ========================================
   etc 드롭다운 메뉴 (게시글 관리)
   ======================================== */

#tistoryEtcLayer .btn_mark {
    font-size: 14px;
    font-weight: 400;
    padding: 6px 8px;
    cursor: pointer;
}

/* ========================================
   SNS 공유 드롭다운 메뉴
   ======================================== */

/* SNS 아이콘 숨김 - 텍스트만 표시 */
.ico_sns {
    display: none;
}

/* SNS 공유 버튼 기본 스타일 */
#tistorySnsLayer .btn_mark {
    display: flex;
    align-items: center;
    gap: 8px;
}

#tistorySnsLayer .txt_sns {
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}


/* 공유 버튼 스타일 */
.btn_post.sns_btn.btn_share {
    all: unset;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--quantum-glass-bg);
    border: 1px solid var(--quantum-glass-border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--quantum-transition);
    font-size: 14px;
    font-weight: 500;
    color: var(--quantum-text-secondary);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.btn_post.sns_btn.btn_share:hover {
    background-color: rgba(239, 246, 255, 0.9);
    border-color: rgba(var(--quantum-point-rgb), 0.3);
    color: var(--quantum-point);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.btn_post.sns_btn.btn_share:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* 공유 버튼 활성화 상태 */
.btn_post.sns_btn.btn_share[aria-expanded="true"] {
    background-color: var(--quantum-bg-tertiary);
    border-color: rgba(var(--quantum-point-rgb), 0.3);
    color: var(--quantum-point);
}

/* 공유 아이콘 */
.btn_post.sns_btn.btn_share .share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    position: relative;
}

.btn_post.sns_btn.btn_share .share-icon [data-lucide] {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 0.2s ease;
}

.btn_post.sns_btn.btn_share:hover .share-icon [data-lucide] {
    transform: scale(1.1);
}

/* 공유 텍스트 */
.btn_post.sns_btn.btn_share .ico_postbtn.ico_share {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    text-indent: 0;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

/* 공유 버튼 위치 조정 */
.container_postbtn .btn_share {
    margin-left: auto;
    margin-right: 8px;
}

/* ========================================
   모바일 반응형 (700px 이하)
   ======================================== */

@media (max-width: 700px) {
    .container_postbtn {
        margin: 24px 0;
        padding: 20px 0;
        gap: 20px;
    }

    .btn_post {
        padding: 6px 0;
        font-size: 13px;
    }

    .txt_like,
    .uoc-count {
        font-size: 13px;
    }

    .layer_post {
        left: 0;
        right: 0;
        transform: none;
        width: auto;
    }

    .layer_post.active {
        transform: none;
    }

    /* 공유하기 버튼 모바일 스타일 */
    .btn_post.sns_btn.btn_share {
        padding: 6px 12px;
        font-size: 13px;
        gap: 6px;
    }

    .btn_post.sns_btn.btn_share .share-icon [data-lucide] {
        width: 16px;
        height: 16px;
    }

    /* 더보기 버튼 모바일 스타일 */
    .wrap_btn_etc .btn_post {
        padding: 6px;
    }

    .ico_postbtn.ico_etc {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .container_postbtn {
        gap: 16px;
    }

    .btn_post {
        padding: 4px 0;
        font-size: 12px;
    }

    .txt_like,
    .uoc-count {
        font-size: 12px;
    }
}

/* postbtn_like 영역 다음에 오는 구독 버튼 숨기기 */
.container_postbtn > .btn_subscription,
.postbtn_like + .btn_subscription,
.postbtn_like ~ button.btn_subscription {
    display: none !important;
}
