/**
 * 焱链统计 - 前端样式
 */

/* 点赞按钮基础样式 */
.site-stats-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

/* 未点赞状态 */
.site-stats-btn .site-stats-icon {
    font-size: 18px;
    transition: all 0.3s ease;
}

/* 已点赞状态 */
.site-stats-btn.liked {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.site-stats-btn.liked .site-stats-icon {
    animation: heartbeat 0.6s ease-in-out;
}

/* 点赞成功动画 - 移除放大 */
.site-stats-btn.like-success {
    animation: none;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
}

@keyframes like-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 数字跳动 */
.site-stats-count.count-bounce {
    animation: count-bounce 0.3s ease;
}

@keyframes count-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* 禁用/加载状态 */
.site-stats-btn:disabled,
.site-stats-btn.loading {
    opacity: 0.85;
    cursor: wait !important;
    pointer-events: none;
}

/* loading 加载动画 - 移除 */
.site-stats-btn.loading .site-stats-icon {
    animation: none;
}

.site-stats-btn.loading .like-loading {
    color: #fff;
}

@keyframes loading-dot {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 点击波纹效果 */
.site-stats-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.site-stats-btn.clicking::after {
    width: 200%;
    height: 200%;
}

/* 数字样式 */
.site-stats-count {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* 浏览量样式 */
.site-stats-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #94a3b8;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.site-stats-views-icon {
    font-size: 14px;
}

.site-stats-views-count {
    font-weight: 500;
}

/* 短代码容器 */
.site-stats-shortcode {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 10px 0;
}

.site-stats-shortcode .site-stats-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* 后台设置页面样式 */
.site-stats-stats-table {
    margin-bottom: 20px;
}

.site-stats-stats-table td {
    padding: 8px 12px;
}
