/* ================================================
   Product Review Block — Refreshed March 2026
   Phase 1: CSS-only modernization
   ================================================ */

.product-review-block {
    position: relative;
    padding: 0;
    box-sizing: border-box;
    background-color: #fff;
    max-width: 800px;
    margin: 2.5em auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Title — modern clean look instead of dark bar */
.product-title {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 18px 28px;
    border-radius: 0;
    display: block;
    font-size: 1.35em;
    font-weight: 800;
    margin-bottom: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Rating bar — with CSS stars */
.editor-rating {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.15em;
    margin: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    padding: 16px 28px;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.editor-rating img {
    margin-right: 14px;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Star rating via CSS - rendered after the rating text */
.editor-rating::after {
    content: '★★★★½';
    color: #f59e0b;
    font-size: 1.3em;
    margin-left: auto;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

/* Product image */
.product-review-block .image-left,
.product-review-block .image-container {
    text-align: center;
    margin: 0;
    padding: 0 28px;
    padding-top: 20px;
}

.product-review-block .image-left img,
.product-review-block .image-container img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.product-review-block .image-left img:hover,
.product-review-block .image-container img:hover {
    transform: scale(1.01);
}

/* Description */
.product-description {
    background-color: #f8fafc;
    padding: 20px 28px;
    margin: 16px 20px 8px;
    color: #374151;
    line-height: 1.7;
    box-shadow: none;
    border-radius: 12px;
    font-size: 0.95em;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* CTA Button — centered, larger, modern */
.product-link-button {
    display: block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 16px 32px;
    color: #1a1a2e !important;
    font-size: 1.15em;
    border-radius: 12px;
    font-weight: 800;
    margin: 8px 28px 24px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    letter-spacing: 0.01em;
}

.product-link-button:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    transform: translateY(-1px);
    color: #fff !important;
}

.product-link-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

/* Coupon code */
.coupon-code {
    text-align: center;
    margin: 0 28px 20px;
    padding: 14px;
    border: 2px dashed #3b82f6;
    background: #eff6ff;
    border-radius: 10px;
    font-weight: 700;
    color: #1e40af;
    font-size: 0.95em;
}

/* Pros/Cons — colored backgrounds, modern icons */
.pros-cons {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0 20px 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.pros {
    width: 48%;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #bbf7d0;
    border-top: 3px solid #22c55e;
}

.cons {
    width: 48%;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    padding: 20px;
    border-radius: 12px;
    box-shadow: none;
    border: 1px solid #fecaca;
    border-top: 3px solid #ef4444;
}

.pros .pros-cons-header {
    font-weight: 800;
    margin-bottom: 14px;
    color: #15803d;
    font-size: 1.1em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-style: normal;
}

.cons .pros-cons-header {
    font-weight: 800;
    margin-bottom: 14px;
    color: #dc2626;
    font-size: 1.1em;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-style: normal;
}

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

.icon-plus-text-pc-block {
    padding-left: 28px;
    margin: 0 0 12px 0;
    background-size: 18px 18px;
    background-position: left top 3px;
    background-repeat: no-repeat;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #374151;
    background-image: url('https://cdn.photoworkout.com/px/block/plus-circle-g.svg');
}

.icon-minus-text-pc-block {
    padding-left: 28px;
    margin: 0 0 12px 0;
    background-size: 18px 18px;
    background-position: left top 3px;
    background-repeat: no-repeat;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #374151;
    background-image: url('https://cdn.photoworkout.com/px/block/minus-circle-new.svg');
}

.icon-plus-text-pc-block:last-child,
.icon-minus-text-pc-block:last-child {
    margin-bottom: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .product-review-block {
        margin: 1.5em 0;
        border-radius: 12px;
    }
    
    .product-title {
        padding: 14px 20px;
        font-size: 1.2em;
    }
    
    .editor-rating {
        padding: 14px 20px;
        font-size: 1.05em;
        flex-wrap: wrap;
    }
    
    .editor-rating::after {
        margin-left: 8px;
        margin-top: 0;
    }
    
    .product-review-block .image-left,
    .product-review-block .image-container {
        padding: 16px 20px 0;
    }
    
    .product-description {
        padding: 16px 20px;
    }
    
    .product-link-button {
        margin: 8px 20px 20px;
        font-size: 1.05em;
        padding: 14px 24px;
    }
    
    .pros,
    .cons {
        width: 100%;
        margin-bottom: 0;
    }
    
    .pros-cons {
        padding: 0 20px 20px;
        gap: 10px;
    }
    
    .coupon-code {
        margin: 0 20px 16px;
    }
}

/* ================================================
   Phase 2: Badge, Verdict, Specs, Dynamic Stars, Price Split
   ================================================ */

/* Badge */
.review-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.review-badge--editors-pick {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
}

.review-badge--best-value {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
}

.review-badge--best-budget {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
}

.review-badge--top-rated {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a1a2e;
}

/* Dynamic star rating — remove the old ::after pseudo-element */
.editor-rating::after {
    content: none !important;
}

.rating-text {
    flex: 1;
}

.rating-stars {
    font-size: 1.3em;
    letter-spacing: 2px;
    margin-left: auto;
    white-space: nowrap;
}

.stars-filled {
    color: #f59e0b;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
}

.star-half {
    background: linear-gradient(90deg, #f59e0b 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stars-empty {
    color: #d1d5db;
}

/* Verdict callout */
.review-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 28px;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border-left: 4px solid #f59e0b;
    font-size: 1.05em;
    font-weight: 600;
    color: #713f12;
    font-style: italic;
}

.verdict-icon {
    font-size: 1.3em;
    flex-shrink: 0;
}

.verdict-text {
    line-height: 1.4;
}

/* Quick specs bar */
.review-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.spec-item {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.82em;
    font-weight: 600;
    color: #475569;
    border-right: 1px solid rgba(0,0,0,0.06);
    white-space: nowrap;
}

.spec-item:last-child {
    border-right: none;
}

/* Price split styling */
.price-original {
    display: block;
    font-size: 0.75em;
    text-decoration: line-through;
    opacity: 0.65;
    font-weight: 400;
    margin-bottom: 2px;
}

.price-current {
    display: block;
    font-size: 1.1em;
    font-weight: 800;
}

/* Mobile adjustments for new elements */
@media (max-width: 768px) {
    .review-badge {
        top: 10px;
        right: 10px;
        font-size: 0.72em;
        padding: 5px 10px;
    }
    
    .review-verdict {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .review-specs {
        flex-wrap: wrap;
    }
    
    .spec-item {
        flex: 0 0 50%;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        font-size: 0.78em;
    }
    
    .spec-item:nth-child(even) {
        border-right: none;
    }
    
    .rating-stars {
        font-size: 1.1em;
    }
}
