/* Grid Layout */
.grs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.grs-review-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.grs-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.grs-review-author {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.grs-author-avatar img,
.grs-default-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.grs-default-avatar {
    background: #007cba;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.grs-author-name {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.grs-rating {
    color: #ffc107;
}

.grs-stars {
    font-size: 16px;
    letter-spacing: 2px;
}

.grs-review-date {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.grs-review-content p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* Slider Layout */
.grs-reviews-slider {
    position: relative;
    margin: 20px 0;
}

.grs-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 20px;
    padding: 10px 0;
}

.grs-slider-container::-webkit-scrollbar {
    display: none;
}

.grs-slide {
    flex: 0 0 auto;
    width: 300px;
}

.grs-slider-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.grs-prev,
.grs-next {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grs-prev:hover,
.grs-next:hover {
    background: #005a87;
}

/* Loading and Error States */
.grs-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.grs-loading:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.grs-error {
    text-align: center;
    padding: 40px 20px;
    color: #d32f2f;
    font-size: 16px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    margin: 20px 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Demo section styles */
.grs-demo-section {
    margin: 40px 0;
}

.grs-demo-section h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .grs-reviews-grid {
        grid-template-columns: 1fr;
    }

    .grs-slide {
        width: 280px;
    }

    .grs-review-header {
        flex-direction: column;
        gap: 10px;
    }

    .grs-review-date {
        align-self: flex-start;
    }
}
