/* WPMT Review — Frontend */
.wpmt-review-box {
    --wpmt-accent: #D64F15;
    --wpmt-button: #D64F15;
    --wpmt-bg: #ffffff;
    --wpmt-fg: #1a1a1a;
    --wpmt-muted: #6b7280;
    --wpmt-border: #e5e7eb;
    --wpmt-radius: 14px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--wpmt-bg);
    color: var(--wpmt-fg);
    border: 1px solid var(--wpmt-border);
    border-radius: var(--wpmt-radius);
    padding: 24px;
    margin: 32px 0;
    box-shadow: 0 8px 24px -12px rgba(0,0,0,0.12);
    overflow: hidden;
    position: relative;
}

.wpmt-review-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--wpmt-accent), color-mix(in srgb, var(--wpmt-accent) 60%, #fff));
}

/* Header */
.wpmt-review-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.wpmt-review-image {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wpmt-review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wpmt-review-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
    color: var(--wpmt-accent);
    margin-bottom: 4px;
}

.wpmt-review-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    color: var(--wpmt-fg);
}

.wpmt-review-brand {
    font-size: 13px;
    color: var(--wpmt-muted);
    margin-bottom: 6px;
}

.wpmt-review-summary {
    font-size: 15px;
    color: var(--wpmt-muted);
    margin: 6px 0 0;
}

.wpmt-review-score {
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--wpmt-accent), color-mix(in srgb, var(--wpmt-accent) 70%, #000));
    color: #fff;
    min-width: 100px;
}

.wpmt-score-value {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
}

.wpmt-score-out {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}

.wpmt-score-stars {
    margin-top: 6px;
    font-size: 14px;
    letter-spacing: 1px;
}
.wpmt-star-full,
.wpmt-star-half { color: #ffd84a; }
.wpmt-star-empty { color: rgba(255,255,255,0.4); }

/* Rating bars */
.wpmt-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
}

.wpmt-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr 40px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.wpmt-bar-label {
    font-weight: 600;
    color: var(--wpmt-fg);
}

.wpmt-bar-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.wpmt-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--wpmt-accent), color-mix(in srgb, var(--wpmt-accent) 70%, #fff));
    border-radius: 999px;
    transition: width 0.6s ease;
}

.wpmt-bar-value {
    text-align: right;
    font-weight: 700;
    color: var(--wpmt-fg);
}

/* Pros & Cons */
.wpmt-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}

.wpmt-pros, .wpmt-cons {
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid var(--wpmt-border);
}

.wpmt-pros {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.wpmt-cons {
    background: #fef2f2;
    border-color: #fecaca;
}

.wpmt-pros h4, .wpmt-cons h4 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wpmt-pros h4 { color: #15803d; }
.wpmt-cons h4 { color: #b91c1c; }

.wpmt-pros ul, .wpmt-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wpmt-pros li, .wpmt-cons li {
    padding: 4px 0 4px 22px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.wpmt-pros li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: #15803d;
    font-weight: 700;
}

.wpmt-cons li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 4px;
    color: #b91c1c;
    font-weight: 700;
}

/* Verdict */
.wpmt-verdict {
    margin: 20px 0;
    padding: 16px 18px;
    background: #fafafa;
    border-left: 4px solid var(--wpmt-accent);
    border-radius: 0 10px 10px 0;
}

.wpmt-verdict h4 {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--wpmt-accent);
}

.wpmt-verdict p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--wpmt-fg);
}

/* CTA */
.wpmt-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--wpmt-border);
}

.wpmt-cta-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--wpmt-fg);
}

.wpmt-cta-currency {
    font-size: 14px;
    color: var(--wpmt-muted);
    margin-right: 2px;
}

.wpmt-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--wpmt-button);
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--wpmt-button) 65%, transparent);
}

.wpmt-cta-button:hover,
.wpmt-cta-button:focus {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--wpmt-button) 70%, transparent);
}

.wpmt-cta-arrow {
    transition: transform 0.2s ease;
}

.wpmt-cta-button:hover .wpmt-cta-arrow {
    transform: translateX(3px);
}

.wpmt-cta-disclosure {
    font-size: 11px;
    color: var(--wpmt-muted);
    font-style: italic;
}

/* Responsive */
@media (max-width: 640px) {
    .wpmt-review-box { padding: 18px; }
    .wpmt-review-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .wpmt-review-image {
        margin: 0 auto;
        width: 90px;
        height: 90px;
    }
    .wpmt-proscons { grid-template-columns: 1fr; }
    .wpmt-bar-row {
        grid-template-columns: 100px 1fr 36px;
        font-size: 13px;
    }
    .wpmt-review-title { font-size: 20px; }
    .wpmt-score-value { font-size: 30px; }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .wpmt-review-box {
        --wpmt-bg: #1a1a1a;
        --wpmt-fg: #f5f5f5;
        --wpmt-muted: #9ca3af;
        --wpmt-border: #374151;
    }
    .wpmt-rating-bars,
    .wpmt-verdict { background: #262626; }
    .wpmt-bar-track { background: #374151; }
    .wpmt-pros { background: #052e16; border-color: #166534; }
    .wpmt-cons { background: #450a0a; border-color: #991b1b; }
    .wpmt-pros h4 { color: #86efac; }
    .wpmt-cons h4 { color: #fca5a5; }
}
