/**
 * 쌤풀실험실 게시글 공유 및 네비게이션 스타일
 */

/* 공유하기 섹션 */
.share-section {
    border-top: 1px solid var(--border-light);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.btn-share {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.btn-share:hover {
    background: #6c30ed;
    color: white;
    border-color: #6c30ed;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 48, 237, 0.2);
}

.btn-share[data-share="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.btn-share[data-share="twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.btn-share[data-share="kakao"]:hover {
    background: #fee500;
    color: #000000;
    border-color: #fee500;
}

.btn-share[data-share="copy"]:hover {
    background: #10b981;
    border-color: #10b981;
}

/* 이전글/다음글 네비게이션 */
.post-navigation {
    border-top: 1px solid #e5e7eb;
}

.post-nav-item {
    display: block;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 100px;
}

.post-nav-item:hover {
    background: white;
    border-color: #6c30ed;
    box-shadow: 0 4px 12px rgba(108, 48, 237, 0.1);
    transform: translateY(-2px);
}

.post-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.post-nav-item .text-15 {
    color: #1f2937;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-nav-item.next-post {
    text-align: right;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .btn-share {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .post-nav-item {
        padding: 15px;
        min-height: auto;
    }

    .post-nav-item.next-post {
        text-align: left;
    }
}

/* 링크 복사 토스트 */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: slideUp 0.3s ease;
    opacity: 0;
}

.copy-toast.show {
    opacity: 1;
}

@keyframes slideUp {
    from {
        bottom: 0;
        opacity: 0;
    }
    to {
        bottom: 30px;
        opacity: 1;
    }
}
