/* Front-end Style for Premium Google Reviews (1:1 Design) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.pgr-reviews-container {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #2c3e50;
    max-width: 100%;
    margin: 24px auto;
    padding: 0 10px;
    box-sizing: border-box;
}

.pgr-reviews-container * {
    box-sizing: border-box;
}

/* Responsive Grid Layout */
.pgr-reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1024px) {
    .pgr-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .pgr-reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Card Styling - 1:1 Match of screenshot */
.pgr-review-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 1px 4px 10px 0px rgba(0, 0, 0, 0.1), 0px 0px 2px 0px rgba(0, 0, 0, 0.05);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pgr-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

/* Card Header Layout */
.pgr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pgr-author-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar Circle */
.pgr-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.pgr-avatar-letter {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

/* Author Details */
.pgr-author-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.pgr-author-name {
    margin: 0;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #000000 !important;
    line-height: 1.2;
    font-family: "Cream Bold";
}

.pgr-relative-time {
    font-size: 16px;
    color: #888888;
    margin: 0;
    font-weight: 400;
    font-family: "Grold Rounded Light";
    line-height: 1.2;
}

/* Google 'G' Logo Top-Right */
.pgr-google-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
}
.pgr-google-logo svg {
    width: 22px;
    height: 22px;
}

/* Stars Rating and Verified Badge Row */
.pgr-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.pgr-stars {
    display: flex;
    gap: 2px;
    line-height: 1;
}

.pgr-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.pgr-star-img {
    width: 17px;
    height: 17px;
    display: block;
}

/* Verified Badge - small blue badge next to stars */
.pgr-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
.pgr-verified-badge-img {
    display: block;
    width: 15px;
    height: 15px;
}

/* Review Text Content */
.pgr-review-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.pgr-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    line-height: 21.75px;
    font-size: 18px;
    text-align: left;
    word-wrap: break-word;
    word-break: break-word;
    font-style: normal;
    font-family: "Grold Rounded Light";
    color: #000;
    margin: 0;
    margin-bottom: 0 !important;
    padding-right: 0;
}

.pgr-text.expanded {
    display: block;
    overflow: visible !important;
    -webkit-line-clamp: none;
}

/* Read More Button Inline */
.pgr-read-more-btn {
    display: inline-block;
    align-self: flex-start;
    color: #888888;
    cursor: pointer;
    font-size: 18px;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.15s ease;
    user-select: none;
    font-family: "Grold Rounded Light";
}
.pgr-read-more-btn:hover {
    color: #333333;
    text-decoration: underline;
}

.pgr-hide-btn {
    display: inline-block;
    align-self: flex-start;
    color: #888888;
    cursor: pointer;
    font-size: 13.5px;
    margin-top: 8px;
    font-weight: 500;
    transition: color 0.15s ease;
    user-select: none;
    font-family: 'Montserrat', sans-serif;
}
.pgr-hide-btn:hover {
    color: #333333;
    text-decoration: underline;
}

/* View More Container & Pill Button */
.pgr-view-more-container {
    text-align: center;
    margin-top: 16px;
}

.pgr-view-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.pgr-view-more-btn:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.pgr-view-more-btn:active {
    transform: translateY(0);
}

.pgr-no-reviews {
    text-align: center;
    padding: 40px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}
