/**
 * Frontend CSS for Zed Product Review - v1.2.1
 * Redesigned layout with image/description side-by-side
 */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

/* Main Container */
.zpr-product-review {
    font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #7d5860;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Badge - Positioned at top right */
.zpr-badge {
    position: absolute;
    top: -20px;
    right: 30px;
    background: #7B565F;
    color: white;
    padding: 8px 20px;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(123, 86, 95, 0.4);
    z-index: 10;
}

/* Header Section */
.zpr-review-title {
    font-size: 2rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.zpr-review-price {
    font-size: 1.75rem;
    font-weight: 500;
    color: #7B565F;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.zpr-price-label {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.zpr-price-value {
    color: #7B565F;
}

/* Top Section: Image + Description Side by Side */
.zpr-top-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.zpr-review-image {
    width: 100%;
}

.zpr-review-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.zpr-review-image img:hover {
    transform: scale(1.02);
}

.zpr-review-description {
    flex: 1;
}

.zpr-review-summary {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

/* Parameters Section */
.zpr-review-parameters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.zpr-parameter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.zpr-parameter:last-child {
    border-bottom: none;
}

.zpr-parameter-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
    flex: 1;
}

.zpr-parameter-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Overall Rating */
.zpr-overall-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #7B565F;
}

.zpr-overall-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a;
}

.zpr-overall-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: #7B565F;
    margin-left: 0.5rem;
}

/* CTA Button - Exact Amazon Style */
.zpr-cta {
    text-align: center;
}

.zpr-cta-button {
    display: inline-block;
    padding: 14px 50px;
    background: #FFD814;
    border: 1px solid #FCD200;
    border-radius: 8px;
    color: #0F1111;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.15s ease;
    box-shadow: 0 2px 5px rgba(213, 217, 217, 0.5);
}

.zpr-cta-button:hover {
    background: #F7CA00;
    border-color: #F2C200;
    box-shadow: 0 3px 8px rgba(213, 217, 217, 0.7);
    color: #0F1111;
    text-decoration: none;
}

.zpr-cta-button:active {
    background: #F0B800;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

/* Star Rating Styles */
.zpr-star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.zpr-star {
    font-size: 18px;
    line-height: 1;
}

.zpr-star-full {
    color: #ffc107;
}

.zpr-star-half {
    color: #ffc107;
    opacity: 0.5;
}

.zpr-star-empty {
    color: #ddd;
}

.zpr-stars-small .zpr-star {
    font-size: 14px;
}

.zpr-stars-medium .zpr-star {
    font-size: 18px;
}

.zpr-stars-large .zpr-star {
    font-size: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zpr-product-review {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .zpr-badge {
        top: -10px;
        right: 20px;
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .zpr-top-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .zpr-review-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .zpr-review-title {
        font-size: 1.5rem;
    }

    .zpr-review-price {
        font-size: 1.4rem;
    }

    .zpr-parameter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .zpr-overall-rating {
        flex-direction: column;
        gap: 0.75rem;
    }

    .zpr-cta-button {
        padding: 10px 32px;
        font-size: 1rem;
    }
}