/* ============================================================
   Multi-Platform Reviews Pro — frontend.css
   Font: Quicksand | Brand: Anvaya Healthcare Teal (#1a6b7a)
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
.mrp-reviews-wrapper *,
.mrp-reviews-wrapper *::before,
.mrp-reviews-wrapper *::after {
    box-sizing: border-box;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mrp-reviews-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* ── Business Header ─────────────────────────────────────── */
.mrp-business-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.mrp-business-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 220px;
}

.mrp-business-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mrp-google-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.mrp-google-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f6368;
    letter-spacing: 0.3px;
}

.mrp-business-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #202124;
    line-height: 1.3;
}

.mrp-business-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.mrp-rating-number {
    font-size: 22px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

.mrp-header-stars {
    color: #fbbc04;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
}

.mrp-review-count {
    font-size: 13px;
    color: #5f6368;
    font-weight: 500;
}

/* Write a review button */
.mrp-write-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    background: #ffffff;
    color: #1a6b7a;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.mrp-write-review:hover {
    background: #e8f5f7;
    border-color: #1a6b7a;
    color: #0f4d58;
    text-decoration: none;
}

/* ── Slider Outer (arrow positioning) ────────────────────── */
.mrp-slider-outer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Arrows — outside (default) */
.mrp-arrows-outside .mrp-slider-outer {
    padding: 0 0px;
}

.mrp-arrows-outside .mrp-prev-arrow {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.mrp-arrows-outside .mrp-next-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Arrows — inside */
.mrp-arrows-inside .mrp-prev-arrow {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.mrp-arrows-inside .mrp-next-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* ── Arrow buttons ───────────────────────────────────────── */
.mrp-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #1a6b7a;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    z-index: 5;
}

.mrp-arrow:hover {
    background: #1a6b7a;
    color: #ffffff;
    border-color: #1a6b7a;
    box-shadow: 0 3px 10px rgba(26,107,122,0.25);
}

.mrp-arrow i {
    font-size: 14px;
}

.mrp-navigation-bottom {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* ── Reviews Slider ──────────────────────────────────────── */
.mrp-reviews-slider {
    flex: 1;
    min-width: 0;
}

.mrp-review-slide {
    padding: 0 calc(var(--mrp-slide-gap, 20px) / 2);
}

/* ── Review Card ─────────────────────────────────────────── */
.mrp-review-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e8eaed;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* Subtle left accent by platform */
.mrp-platform-google {
    border-left: 3px solid #4285F4;
}

.mrp-platform-practo {
    border-left: 3px solid #28328c;
}

.mrp-platform-trustpilot {
    border-left: 3px solid #00B77F;
}

/* ── Reviewer Header ─────────────────────────────────────── */
.mrp-reviewer-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
}

/* ── Avatar ──────────────────────────────────────────────── */
.mrp-reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8f5f7;
}

.mrp-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.mrp-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a6b7a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
}

/* ── Reviewer Info ───────────────────────────────────────── */
.mrp-reviewer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mrp-reviewer-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mrp-review-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mrp-review-stars {
    color: #fbbc04;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}

.mrp-star-filled,
.mrp-star-half {
    color: #fbbc04;
}

.mrp-star-empty {
    color: #dadce0;
}

.mrp-review-date {
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
}

/* ── Platform Badge (top-right of card) ──────────────────── */
.mrp-platform-badge {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mrp-platform-badge svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* ── Review Content ──────────────────────────────────────── */
.mrp-review-content {
    flex: 1;
}

.mrp-review-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #3c4043;
    font-weight: 400;

    /* Truncate to 5 lines */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Review Footer (Read review link) ────────────────────── */
.mrp-review-footer {
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
    margin-top: auto;
}

.mrp-read-review-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    color: #1a6b7a;
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.2px;
}

.mrp-read-review-link:hover {
    color: #0f4d58;
    text-decoration: none;
}

.mrp-read-review-link svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.mrp-read-review-link:hover svg {
    transform: translate(2px, -2px);
}

/* ── Slick overrides ─────────────────────────────────────── */
.mrp-reviews-slider .slick-track {
    display: flex !important;
}

.mrp-reviews-slider .slick-slide {
    height: inherit !important;
}

.mrp-reviews-slider .slick-slide > div {
    height: 100%;
}

.mrp-review-slide {
    height: 100%;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .mrp-business-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .mrp-arrows-outside .mrp-slider-outer {
        padding: 0 40px;
    }

    .mrp-review-content p {
        -webkit-line-clamp: 6;
    }
}

@media (max-width: 480px) {
    .mrp-arrows-outside .mrp-slider-outer {
        padding: 0 0px;
    }
}
