/* ============================================================
   Vendor / Venue Public Profile — Section 8: Reviews
   Overhaul item 21 — WeddingWire storefront review-card pattern.
   Shared by single-vendor and single-venue. Foundation.css tokens only.
   ============================================================ */

/* Heading matches the other profile sections (.vp-main h2 on vendors); local
   rule so the venue profile renders identically without the vendor-only
   page stylesheet. */
.vp-reviews__headrow h2 {
    font-size: 22px;
    color: var(--sdwd-subtext);
    margin: 0;
    font-weight: 800;
}

.vp-reviews__headrow {
    margin-bottom: 16px;
}

/* Row 2 — big star + bold average left, Write a Review right. */
.vp-reviews__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.vp-reviews__avg {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vp-reviews__avg-star {
    color: var(--sdwd-star-fill);
    font-size: 32px;
    line-height: 1;
}

.vp-reviews__avg-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: var(--sdwd-subtext);
}

.vp-reviews__avg-count {
    font-size: 14px;
    color: var(--sdwd-muted);
}

.vp-reviews__avg-none {
    font-size: 13px;
    color: var(--sdwd-muted);
}

.vp-reviews__write {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sdwd-accent);
    color: #fff;
    border: 0;
    height: 44px;
    padding: 0 24px;
    border-radius: var(--sdwd-radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.vp-reviews__write:hover {
    background: var(--sdwd-btn-primary-hover);
    color: #fff;
}

/* 3 equal-height cards — grid stretch keeps every card in the row the same
   height regardless of content length; the body clamp keeps rows tidy. */
.vp-reviews__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.vp-reviews__card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sdwd-border);
    border-radius: var(--sdwd-radius-lg);
    padding: 16px;
    background: var(--sdwd-bg);
    min-width: 0;
}

.vp-reviews__card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Circle avatar, initials fallback. */
.vp-reviews__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: var(--sdwd-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    user-select: none;
}

.vp-reviews__who {
    min-width: 0;
}

.vp-reviews__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--sdwd-subtext);
    overflow-wrap: anywhere;
}

.vp-reviews__date {
    font-size: 12px;
    color: var(--sdwd-muted);
    margin-top: 1px;
}

.vp-reviews__stars {
    display: flex;
    gap: 2px;
    font-size: 13px;
    line-height: 1;
    margin-bottom: 8px;
}

.vp-reviews__star--full {
    color: var(--sdwd-star-fill);
}

.vp-reviews__star--empty {
    color: var(--sdwd-border);
}

.vp-reviews__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sdwd-subtext);
    margin: 0 0 6px;
    overflow-wrap: anywhere;
}

.vp-reviews__body {
    font-size: 13px;
    line-height: 1.5;
    color: var(--sdwd-body-text);
}

.vp-reviews__text {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.vp-reviews__card--open .vp-reviews__text {
    display: block;
    -webkit-line-clamp: none;
    overflow: visible;
}

/* "Read more" — bold, underlined, inline with the text block. */
.vp-reviews__more {
    display: inline;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    color: var(--sdwd-subtext);
    cursor: pointer;
}

.vp-reviews__more:hover {
    color: var(--sdwd-black);
}

@media (max-width: 900px) {
    .vp-reviews__cards {
        grid-template-columns: 1fr;
    }
}
