/* ==========================================================================
   v2-product-review.css — Product review page styles
   Builds on v2-shared.css. All classes use v2-pr- prefix.
   ========================================================================== */

/* ---------- Page layout ---------- */

.v2-pr-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.v2-pr-main {
    min-width: 0;
}

.v2-pr-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 960px) {
    .v2-pr-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Header ---------- */

.v2-pr-header {
    margin-bottom: 32px;
}

.v2-pr-header h1 {
    font-size: 1.6em;
    margin: 0 0 10px;
    line-height: 1.3;
    color: var(--v2-text);
}

.v2-pr-page-tag {
    display: inline-block;
    font-size: .72em;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: var(--v2-teal);
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1.3;
    margin-bottom: 14px;
}

.v2-pr-byline {
    font-size: .9em;
    color: var(--v2-text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

.v2-pr-byline a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.v2-pr-byline a:hover {
    text-decoration: underline;
}

.v2-pr-authorbox-testlink {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--v2-border);
    font-size: .93em;
}

.v2-pr-authorbox-testlink-cta {
    font-weight: 700;
    text-decoration: none;
    color: var(--v2-teal);
}

.v2-pr-authorbox-testlink-cta:hover {
    text-decoration: underline;
}

.v2-pr-subtitle {
    font-size: .95em;
    color: var(--v2-text-muted);
    margin: 24px 0 0;
    line-height: 1.55;
}


/* ---------- Hero: image + scores + total ---------- */

.v2-pr-hero {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    gap: 32px;
    align-items: center;
}

.v2-pr-image {
    position: relative;
}

.v2-pr-image picture,
.v2-pr-image img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.v2-pr-scores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-pr-total {
    text-align: center;
    padding-top: 4px;
}

.v2-pr-total .v2-total-circle {
    width: 80px;
    height: 80px;
    font-size: 1.6em;
}

@media (max-width: 1200px) {
    .v2-pr-hero {
        grid-template-columns: 1fr auto;
        gap: 20px;
    }

    .v2-pr-image {
        grid-column: 1 / -1;
        text-align: center;
    }

    .v2-pr-image img { max-height: 200px; }
}

@media (max-width: 500px) {
    .v2-pr-hero {
        grid-template-columns: 1fr;
    }

    .v2-pr-total {
        text-align: center;
    }
}


/* ---------- Editorial row (boxes + badge) ---------- */

.v2-pr-editorial-box {
}

.v2-pr-editorial-row {
    display: flex;
    gap: 48px;
    align-items: center;
}

.v2-pr-editorial-boxes {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-pr-editorial-badge {
    flex-shrink: 0;
    width: 128px;
    display: flex;
    align-items: center;
}

.v2-pr-editorial-badge img {
    border-radius: 50%;
    display: block;
    width: 128px;
    height: 128px;
}

@media (max-width: 500px) {
    .v2-pr-editorial-row {
        flex-direction: column;
        gap: 16px;
    }

    .v2-pr-editorial-badge {
        justify-content: center;
        width: auto;
    }
}


/* ---------- Review body ---------- */

.v2-pr-review-body {
    font-size: 1em;
    line-height: 1.7;
    color: var(--v2-text);
}

.v2-pr-review-body p {
    margin-bottom: 16px;
}

.v2-pr-review-body h3 {
    font-size: 1.15em;
    margin: 28px 0 12px;
    color: var(--v2-text);
}


/* ---------- Sections ---------- */

.v2-pr-section {
    margin-bottom: 32px;
}

.v2-pr-section-title {
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--v2-border);
    color: var(--v2-text);
}


/* ---------- Detailed scores ---------- */

.v2-pr-detailed-scores {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v2-pr-detail-reasoning {
    margin: 6px 0 0;
    padding-left: 170px;
    font-size: .88em;
    line-height: 1.5;
    color: var(--v2-text-muted);
}

@media (max-width: 768px) {
    .v2-pr-detail-reasoning { padding-left: 120px; }
}

@media (max-width: 600px) {
    .v2-pr-detail-reasoning { padding-left: 100px; }
}


/* ---------- Price section ---------- */

.v2-pr-prices--empty {
    text-align: center;
    padding: 28px 24px;
}

.v2-pr-prices--empty p {
    color: #888;
    margin: 0 0 16px;
    font-size: .9em;
}

.v2-pr-cta {
    display: inline-block;
    background: #1c4766;
    color: #fff;
    font-weight: 600;
    font-size: .9em;
    padding: 11px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background .15s;
}

.v2-pr-cta:hover,
.v2-pr-cta:visited {
    background: #244f6f;
    color: #fff;
}


/* ---------- Sources & consumer reviews ---------- */

.v2-pr-consumer-section {
    margin-bottom: 24px;
}

.v2-pr-consumer-summary {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.v2-pr-consumer-avg {
    display: flex;
    align-items: center;
    gap: 6px;
}

.v2-pr-consumer-avg-score {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--v2-text);
    line-height: 1;
}

.v2-pr-consumer-avg-stars {
    display: flex;
    gap: 2px;
}

.v2-pr-star {
    fill: #d5dbe0;
}

.v2-pr-star--full {
    fill: #f5a623;
}

.v2-pr-star--half {
    fill: url(#star-half-gradient);
}

.v2-pr-consumer-meta {
    font-size: .85em;
    color: var(--v2-text-muted);
}

.v2-pr-consumer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.v2-pr-consumer-item {
    border-bottom: 1px solid var(--v2-border);
}

.v2-pr-consumer-item:last-child {
    border-bottom: none;
}

.v2-pr-consumer-link,
.v2-pr-consumer-link:visited {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--v2-text);
}

.v2-pr-consumer-link:hover {
    color: var(--v2-teal);
}

.v2-pr-consumer-name {
    font-weight: 600;
    font-size: .9em;
}

.v2-pr-consumer-details {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .85em;
    color: var(--v2-text-muted);
    flex-shrink: 0;
}

.v2-pr-consumer-score {
    font-weight: 700;
    color: var(--v2-text);
}

.v2-pr-sources-section--has-consumer {
    padding-top: 20px;
    border-top: 2px solid var(--v2-border);
}

.v2-pr-sources-heading {
    font-size: .95em;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--v2-text);
}

.v2-pr-sources-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.v2-pr-source-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--v2-border);
}

.v2-pr-source-item:last-child {
    border-bottom: none;
}

.v2-pr-source-link,
.v2-pr-source-link:visited {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--v2-text);
}

.v2-pr-source-link:hover {
    color: var(--v2-teal);
}

.v2-pr-source-name {
    font-weight: 600;
    font-size: .9em;
}

.v2-pr-source-domain {
    font-size: .82em;
    color: var(--v2-text-muted);
    flex-shrink: 0;
}

.v2-pr-source-desc {
    margin: 4px 0 0;
    font-size: .82em;
    line-height: 1.45;
    color: var(--v2-text-muted);
}

@media (max-width: 500px) {
    .v2-pr-consumer-summary {
        flex-direction: column;
        gap: 4px;
    }
}


/* ---------- Back link (bottom) ---------- */

.v2-pr-back {
    text-align: center;
    margin-bottom: 32px;
}

.v2-pr-back a {
    color: var(--v2-teal);
    text-decoration: none;
    font-weight: 600;
}

.v2-pr-back a:hover {
    text-decoration: underline;
}


/* ==========================================================================
   Sidebar
   ========================================================================== */

.v2-pr-sidebar-box {
    background: #fff;
    border-radius: var(--v2-radius);
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.v2-pr-sidebar-heading {
    font-size: .95em;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--v2-text);
}


/* -- Test page link -- */

.v2-pr-sidebar-box--plain {
    padding: 0;
    background: none;
    box-shadow: none;
}

.v2-pr-test-link,
.v2-pr-test-link:visited,
.v2-pr-test-link:hover {
    display: block;
    text-decoration: none;
    color: #fff;
    background: #1c4766;
    border-radius: var(--v2-radius);
    padding: 14px 16px;
    transition: background .15s;
}

.v2-pr-test-link:hover {
    background: #244f6f;
}

.v2-pr-test-link-label {
    display: block;
    font-size: .7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .7;
    margin-bottom: 4px;
}

.v2-pr-test-link-title {
    display: block;
    font-weight: 700;
    font-size: .95em;
    line-height: 1.3;
}


/* -- Sidebar product list -- */

.v2-pr-sidebar-products {
    display: flex;
    flex-direction: column;
}

.v2-pr-sidebar-products > :not(:first-child) {
    border-top: 1px solid var(--v2-border);
}

.v2-pr-product-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--v2-text);
    text-decoration: none;
}

a.v2-pr-product-item:hover .v2-pr-item-name {
    color: var(--v2-teal);
}

.v2-pr-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v2-pr-item-name {
    font-size: .88em;
    font-weight: 600;
    line-height: 1.3;
    color: var(--v2-text);
}

.v2-pr-item-badge {
    font-size: .76em;
    font-weight: 600;
    color: #1c4766;
}

.v2-pr-item-tag {
    font-size: .74em;
    font-weight: 500;
    color: var(--v2-text-muted);
}

.v2-pr-item--inactive {
    opacity: .55;
}

a.v2-pr-item--inactive:hover {
    opacity: .75;
}

.v2-pr-item-score {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--v2-navy);
    color: #fff;
    font-size: .78em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* -- Sidebar article cards -- */

.v2-pr-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.v2-pr-article-card,
.v2-pr-article-card:visited,
.v2-pr-article-card:hover {
    display: block;
    text-decoration: none;
    color: #fff;
    background: var(--v2-navy);
    border-radius: 6px;
    overflow: hidden;
    transition: opacity .15s;
}

.v2-pr-article-card:hover {
    opacity: .85;
}

.v2-pr-article-card img {
    width: 100%;
    aspect-ratio: 5 / 2;
    object-fit: cover;
    display: block;
}

.v2-pr-article-title {
    display: block;
    padding: 8px 10px;
    font-weight: 600;
    font-size: .82em;
    line-height: 1.25;
}

@media (max-width: 960px) {
    .v2-pr-sidebar-articles {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .v2-pr-sidebar-articles {
        grid-template-columns: 1fr;
    }
}
