/* ======================================
   WP Crypto Connect - 前端样式
   ====================================== */

/* --- 通用按钮 --- */
.wcc-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
    line-height: 1.4;
}

.wcc-btn:hover {
    opacity: 0.9;
}

.wcc-btn:active {
    transform: scale(0.98);
}

.wcc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wcc-btn-primary {
    background: #627eea;   /* Ethereum 蓝 */
    color: #fff;
}

.wcc-btn-success {
    background: #22c55e;
    color: #fff;
}

.wcc-btn-danger {
    background: #ef4444;
    color: #fff;
}

/* --- 登录区 --- */
.wcc-login-wrap {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 16px 0;
    text-align: center;
}

.wcc-logged-in {
    margin-bottom: 8px;
}

.wcc-logout-btn {
    margin-left: 12px;
    color: #ef4444;
    text-decoration: none;
    font-size: 13px;
}

.wcc-loading {
    color: #64748b;
    font-style: italic;
}

.wcc-loading::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #e2e8f0;
    border-top-color: #627eea;
    border-radius: 50%;
    animation: wcc-spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes wcc-spin {
    to { transform: rotate(360deg); }
}

/* --- 付费墙 --- */
.wcc-paywall {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    border-radius: 12px;
    padding: 48px 24px;
    margin: 32px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wcc-paywall::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(98, 126, 234, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.wcc-paywall-inner {
    position: relative;
    z-index: 1;
    max-width: 400px;
    margin: 0 auto;
}

.wcc-paywall-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wcc-paywall h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 8px;
}

.wcc-paywall-price {
    font-size: 32px;
    font-weight: 700;
    color: #facc15;
    margin: 12px 0 20px;
}

.wcc-paywall-price strong {
    font-size: 40px;
}

.wcc-paywall p {
    color: #cbd5e1;
    margin: 8px 0;
}

/* --- 钱包状态 --- */
.wcc-not-connected {
    color: #f87171 !important;
    font-size: 13px;
}

.wcc-connected {
    color: #22c55e !important;
    font-size: 14px;
    font-weight: 600;
}

/* --- 支付结果 --- */
.wcc-success {
    color: #22c55e;
    font-weight: 600;
    padding: 8px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 6px;
}

.wcc-error {
    color: #ef4444;
    font-weight: 600;
    padding: 8px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 6px;
}

.wcc-warning {
    color: #f59e0b;
    font-weight: 600;
    padding: 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
}

.wcc-hint {
    font-size: 12px;
    color: #94a3b8 !important;
    word-break: break-all;
}
