/**
 * PeptidePro Product Trust Badge – Frontend Styles
 * Scoped under .peptidepro-trust-badge to avoid theme conflicts.
 */

.peptidepro-trust-badge {
    /* Design tokens */
    --pp-primary: #0b3b5c;
    --pp-primary-light: #1e5a7a;
    --pp-accent: #3b9bd7;
    --pp-accent-soft: #e2f0fa;
    --pp-surface: #ffffff;
    --pp-border: #dbe4ee;
    --pp-text-main: #0f1a2b;
    --pp-text-muted: #4d6278;
    --pp-shadow-sm: 0 4px 12px rgba(0, 20, 40, 0.04);
    --pp-shadow-md: 0 12px 28px -8px rgba(0, 30, 60, 0.08);
    --pp-radius-lg: 20px;
    --pp-radius-md: 12px;

    /* Layout */
    box-sizing: border-box;
    background: linear-gradient(145deg, #e8f1fa, #ffffff);
    border-radius: var(--pp-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--pp-shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%;
    max-width: 480px;
    margin: 20px 0 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--pp-text-main);
}

.peptidepro-trust-badge *,
.peptidepro-trust-badge *::before,
.peptidepro-trust-badge *::after {
    box-sizing: border-box;
}

/* ── Stats Row ── */
.peptidepro-trust-badge .peptidepro-visual-stats {
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.peptidepro-trust-badge .peptidepro-stat-item {
    background: var(--pp-surface);
    border-radius: var(--pp-radius-md);
    padding: 14px 12px;
    text-align: center;
    flex: 1;
    box-shadow: var(--pp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.peptidepro-trust-badge .peptidepro-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--pp-shadow-md);
}

.peptidepro-trust-badge .peptidepro-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--pp-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.peptidepro-trust-badge .peptidepro-stat-label {
    font-size: 13px;
    color: var(--pp-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Certificate Card ── */
.peptidepro-trust-badge .peptidepro-certificate-card {
    background: var(--pp-surface);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--pp-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
}

.peptidepro-trust-badge .peptidepro-certificate-card:hover {
    box-shadow: var(--pp-shadow-md);
    transform: translateY(-2px);
}

.peptidepro-trust-badge .peptidepro-certificate-card i {
    font-size: 28px;
    color: var(--pp-accent);
    flex-shrink: 0;
    line-height: 1;
}

.peptidepro-trust-badge .peptidepro-certificate-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.peptidepro-trust-badge .peptidepro-certificate-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--pp-text-main);
    line-height: 1.3;
}

.peptidepro-trust-badge .peptidepro-certificate-sub {
    font-size: 13px;
    color: var(--pp-text-muted);
    line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .peptidepro-trust-badge {
        padding: 18px;
        gap: 12px;
    }
    .peptidepro-trust-badge .peptidepro-visual-stats {
        flex-wrap: wrap;
        gap: 10px;
    }
    .peptidepro-trust-badge .peptidepro-stat-item {
        padding: 12px 8px;
        min-width: 90px;
    }
    .peptidepro-trust-badge .peptidepro-stat-value {
        font-size: 20px;
    }
    .peptidepro-trust-badge .peptidepro-stat-label {
        font-size: 12px;
    }
    .peptidepro-trust-badge .peptidepro-certificate-card {
        padding: 14px 16px;
    }
    .peptidepro-trust-badge .peptidepro-certificate-card i {
        font-size: 24px;
    }
}