/* Google Reviews Frontend Styles */

.bgr-reviews-container {
    margin: 20px 0;
    font-family: inherit;
}

.bgr-no-reviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* List Layout */
.bgr-reviews-list .bgr-review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.bgr-reviews-list .bgr-review-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Grid Layout */
.bgr-reviews-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.bgr-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.bgr-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.bgr-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bgr-reviews-grid .bgr-review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bgr-reviews-grid .bgr-review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Review Item Structure */
.bgr-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bgr-reviewer-photo {
    margin-right: 15px;
    flex-shrink: 0;
}

.bgr-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.bgr-reviewer-info {
    flex: 1;
    min-width: 0;
}

.bgr-reviewer-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
}

.bgr-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.bgr-stars {
    color: #ffa500;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
}

.bgr-rating-number {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.bgr-review-date {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.bgr-review-content {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
    flex: 1;
    margin-top: 10px;
}

.bgr-review-content p {
    margin: 0 0 10px 0;
}

.bgr-review-content p:last-child {
    margin-bottom: 0;
}

/* Reviews Stats */
.bgr-reviews-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
}

.bgr-average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bgr-average-rating .bgr-rating-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.bgr-average-rating .bgr-stars {
    font-size: 20px;
}

.bgr-total-reviews {
    color: #666;
    font-size: 14px;
}

/* Carousel Layout (if implemented) */
.bgr-reviews-carousel {
    position: relative;
    overflow: hidden;
}

.bgr-reviews-carousel .bgr-review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bgr-reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .bgr-review-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bgr-reviewer-photo {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .bgr-reviewer-info {
        text-align: center;
    }
    
    .bgr-rating {
        justify-content: center;
    }
    
    .bgr-reviews-stats {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .bgr-review-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bgr-reviews-container {
        margin: 15px 0;
    }
    
    .bgr-review-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .bgr-reviewer-name {
        font-size: 15px;
    }
    
    .bgr-review-content {
        font-size: 14px;
    }
    
    .bgr-photo {
        width: 40px;
        height: 40px;
    }
}

/* Additional Utility Classes */
.bgr-text-center {
    text-align: center;
}

.bgr-text-left {
    text-align: left;
}

.bgr-text-right {
    text-align: right;
}

.bgr-mb-0 {
    margin-bottom: 0 !important;
}

.bgr-mb-1 {
    margin-bottom: 10px !important;
}

.bgr-mb-2 {
    margin-bottom: 20px !important;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .bgr-review-item {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .bgr-reviewer-name {
        color: #fff;
    }
    
    .bgr-review-content {
        color: #ccc;
    }
    
    .bgr-review-date,
    .bgr-rating-number,
    .bgr-total-reviews {
        color: #aaa;
    }
    
    .bgr-reviews-stats {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .bgr-no-reviews {
        background: #2a2a2a;
        border-color: #444;
        color: #aaa;
    }
}