/* 分享组件样式 */
/* 文件路径：public/css/share-components.css */

/* 分享按钮容器 */
.share-button-container {
    position: relative;
    display: inline-block;
}

/* 主分享按钮 */
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--text-secondary);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 5px 0;
    background-color: transparent;  
}

.share-button:hover {
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--text-primary);
}

.share-button:active {
    color: var(--text-white);
    transform: translateY(0);
    background-color: var(--text-primary);
}

/* 移除按钮边框 */
/* 移除分享按钮的边框 */
.share-button-container button,
.share-button-container .btn {
    border: none;
    outline: none;
}

/* 分享菜单 */
.share-menu {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 0;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius-full, 4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    min-width: 35px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.share-menu.active {
    opacity: 1;
    transform: translateY(-110px);
}

/* 分享选项按钮 */
.share-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 20px;
    color: var(--text-secondary, #666666);
}

.share-option:hover {
    background: var(--bg-light, #f8f9fa);
}

/* 微信图标颜色 */
.share-option:nth-child(1):hover,
.share-option:nth-child(2):hover,
.share-option:nth-child(3):hover {
    color: var(--text-primary);
    background:var(--bg-primary);
}


/* 提示消息样式 */
.share-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white, #ffffff);
    padding: 12px;
    border-radius: var(--border-radius-base, 8px);
    font-size: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.share-toast.show {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .share-menu {
        right: auto;
        left: 0;
    }
    
    .share-option {
        padding: 10px;
        font-size: 18px;
    }
}


/* 确保分享按钮在作品集项目中的位置 */
.portfolio-meta .share-button-container {
    margin-left: auto;
}

/* 如果portfolio-meta使用flex布局 */
.portfolio-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.portfolio-meta button { 
    border: 0;
}