/* * Simple Pay Per Post Pro - 前端样式表
 */

/* 1. 付费拦截框样式 (Paywall) */
.sppp-pay-box {
    border: 2px dashed #e2e8f0;
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 30px 0;
    transition: border-color 0.3s ease;
}

.sppp-pay-box:hover {
    border-color: #3b82f6;
}

.sppp-pay-box h4 {
    margin-top: 0;
    color: #1e293b;
    font-size: 1.25rem;
}

.sppp-pay-box .price-tag {
    color: #ef4444;
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
}

.sppp-pay-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* 2. 通用按钮设计 */
.sppp-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.sppp-btn-primary { background: #3b82f6; color: white; }
.sppp-btn-primary:hover { background: #2563eb; }

.sppp-btn-wechat { background: #07c160; color: white; }
.sppp-btn-wechat:hover { background: #06ae56; }

.sppp-btn-alipay { background: #1677ff; color: white; }
.sppp-btn-alipay:hover { background: #0958d9; }

.sppp-btn-vip { background: #1e293b; color: #fbbf24; border: 1px solid #fbbf24; }
.sppp-btn-vip:hover { background: #0f172a; transform: translateY(-2px); }

/* 3. 个人中心仪表盘 (Member Center) */
.sppp-dashboard {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.sppp-user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.sppp-stat-card {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.sppp-stat-card small {
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.sppp-stat-card strong {
    font-size: 1.2rem;
    color: #0f172a;
}

/* 4. 推广链接区域 */
.sppp-ref-box {
    margin-top: 20px;
    background: #eff6ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
}

.sppp-ref-input-group {
    display: flex;
    margin-top: 10px;
}

.sppp-ref-input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    background: #fff;
}

.sppp-ref-input-group button {
    border-radius: 0 4px 4px 0;
    padding: 8px 15px;
}

/* 5. 已购列表表格 */
.sppp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.sppp-table th {
    background: #f8fafc;
    padding: 12px;
    text-align: left;
    font-size: 14px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.sppp-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 15px;
}

.sppp-table tr:hover {
    background: #f1f5f9;
}

/* 6. 响应式适配 */
@media (max-width: 600px) {
    .sppp-pay-actions {
        flex-direction: column;
    }
    .sppp-btn {
        width: 100%;
    }
    .sppp-user-stats {
        grid-template-columns: 1fr;
    }
}