/* Google Reviews Plugin - Styles */

/* === Stars (shared) === */
.grp-stars {
    position: relative;
    display: inline-block;
    font-size: 1.1em;
    line-height: 1;
    color: #ddd;
    white-space: nowrap;
    vertical-align: middle;
}
.grp-stars-empty {
    letter-spacing: 2px;
}
.grp-stars-filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fbbc04;
    letter-spacing: 2px;
}

/* === Avatar === */
.grp-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

/* === Google Logo === */
.grp-google-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* === Summary === */
.grp-summary {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1.5em;
    flex-wrap: wrap;
    font-size: 1.1em;
}
.grp-summary-name {
    font-weight: 700;
}
.grp-summary-rating {
    font-weight: 700;
}
.grp-summary-count {
    color: #666;
    font-size: 0.9em;
}

/* === Card Layout (Google Maps style) === */
.grp-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25em;
}
.grp-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.25em;
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Card header: author left, G logo right */
.grp-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5em;
}
.grp-card-author {
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.grp-card-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.1em;
}
.grp-author-name {
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
}
.grp-card .grp-time,
.grp-list .grp-time {
    font-size: 0.8em;
    color: #888;
}

/* Card stars row */
.grp-card-stars {
    margin-bottom: 0.6em;
}

/* Card body */
.grp-card-body {
    flex: 1;
}
.grp-card .grp-text,
.grp-list .grp-text {
    font-size: 0.9em;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Card responsive */
@media (max-width: 900px) {
    .grp-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .grp-cards {
        grid-template-columns: 1fr;
    }
}

/* === List Layout === */
.grp-list {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.grp-list-item {
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 1em;
}
.grp-list-item:last-child {
    border-bottom: none;
}
.grp-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5em;
}

/* === Read More / Close === */
.grp-text-wrap {
    font-size: 0.9em;
    line-height: 1.6;
    color: #333;
}
/* Default: rest + close hidden */
.grp-text-rest,
.grp-close-btn {
    display: none;
}
.grp-ellipsis,
.grp-read-more {
    display: inline;
}
/* Open state: rest + close visible, ellipsis + read-more hidden */
.grp-text-wrap.grp-open .grp-text-rest {
    display: inline;
}
.grp-text-wrap.grp-open .grp-close-btn {
    display: block;
    margin-top: 0.3em;
}
.grp-text-wrap.grp-open .grp-ellipsis,
.grp-text-wrap.grp-open .grp-read-more {
    display: none;
}
.grp-read-more,
.grp-close-btn {
    cursor: pointer;
    color: #888;
    font-size: 0.85em;
}
.grp-read-more:hover,
.grp-close-btn:hover {
    color: #333;
}

/* === Attribution === */
.grp-attribution {
    margin-top: 1em;
    font-size: 0.8em;
    color: #999;
    text-align: right;
}

/* === Error / No Reviews === */
.grp-error {
    color: #d32f2f;
    padding: 1em;
    background: #ffebee;
    border-radius: 4px;
}
.grp-no-reviews {
    color: #666;
    font-style: italic;
}
