/* Base styles - shared across all themes */
.cgr-reviews {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Grid layout */
.cgr-layout-grid {
    display: grid;
    gap: 24px;
}
.cgr-cols-1 { grid-template-columns: 1fr; }
.cgr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.cgr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.cgr-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* List layout */
.cgr-layout-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Carousel layout */
.cgr-carousel-wrapper {
    position: relative;
    overflow: hidden;
}
.cgr-carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    align-items: stretch;
}
.cgr-carousel-track .cgr-review-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
}
.cgr-cols-2 .cgr-carousel-track .cgr-review-card {
    flex: 0 0 calc(50% - 10px);
}
.cgr-cols-4 .cgr-carousel-track .cgr-review-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 220px;
}

/* Card base */
.cgr-review-card {
    padding: 28px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Header */
.cgr-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.cgr-author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.cgr-author-initial {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}
.cgr-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cgr-author-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
}
.cgr-review-date {
    font-size: 12px;
    opacity: 0.6;
}
.cgr-google-icon {
    flex-shrink: 0;
}

/* Stars */
.cgr-stars {
    margin-bottom: 12px;
    font-size: 16px;
    letter-spacing: 2px;
}
.cgr-star-filled {
    color: #fbbc04;
}
.cgr-star-empty {
    color: #ddd;
}

/* Review text */
.cgr-review-text {
    font-size: 14px;
    line-height: 1.7;
}
.cgr-read-more {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    margin-left: 4px;
    text-decoration: underline;
}

/* Carousel nav */
.cgr-carousel-prev,
.cgr-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}
.cgr-carousel-prev { left: -5px; }
.cgr-carousel-next { right: -5px; }

/* No reviews */
.cgr-no-reviews {
    text-align: center;
    padding: 40px;
    opacity: 0.5;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .cgr-cols-3 { grid-template-columns: 1fr; }
    .cgr-cols-2 { grid-template-columns: 1fr; }
    .cgr-carousel-track .cgr-review-card {
        flex: 0 0 calc(100% - 20px);
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .cgr-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
