/* Article Share Components */

.wechat-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-primary);
}

.qr-placeholder {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-xl);
    border: 2px dashed #e9ecef;
    border-radius: var(--border-radius);
}

.qr-code {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.close-modal {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-sm);
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: var(--primary-hover);
}

.share-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.share-toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* TOC Active State */
.toc-link.active {
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
}

.toc-link.active::before {
    content: '▶ ';
    color: var(--primary-color);
}
