/* Google Reviews Pro - Frontend Styles */
.grp-reviews-wrapper {
    display: grid;
    gap: 25px;
    margin: 30px 0;
}

/* Grid Layout (Default) */
.grp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

/* List Layout */
.grp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grp-reviews-list .grp-single-review {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.grp-reviews-list .grp-review-content {
    flex: 1;
}

/* Slider Layout */
.grp-reviews-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.grp-slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.grp-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.grp-slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.grp-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grp-slider-dot.active {
    background: #0073aa;
    transform: scale(1.2);
}

.grp-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #0073aa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 10;
}

.grp-slider-arrow:hover {
    background: #0073aa;
    color: white;
}

.grp-slider-prev {
    left: 10px;
}

.grp-slider-next {
    right: 10px;
}

/* Review Card */
.grp-single-review {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grp-single-review:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.grp-single-review::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: #f8f9fa;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 1;
}

.grp-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.grp-review-avatar {
    flex-shrink: 0;
}

.grp-review-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.grp-review-meta {
    flex: 1;
}

.grp-review-author {
    font-weight: 700;
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.2;
}

.grp-review-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.grp-stars {
    color: #ffc107;
    font-size: 18px;
    letter-spacing: 2px;
}

.grp-rating-number {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.grp-review-content {
    position: relative;
    z-index: 2;
}

.grp-review-text {
    line-height: 1.7;
    color: #4a5568;
    font-size: 15px;
    margin-bottom: 15px;
    position: relative;
}

.grp-review-excerpt {
    position: relative;
}

.grp-read-more {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.grp-read-more:hover {
    color: #0056b3;
}

.grp-review-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.grp-review-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.grp-review-date::before {
    content: "📅";
    font-size: 12px;
}

.grp-review-source {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #28a745;
    font-weight: 500;
}

.grp-review-source::before {
    content: "⭐";
    font-size: 12px;
}

/* No Reviews State */
.grp-no-reviews {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.grp-no-reviews .dashicons {
    font-size: 48px;
    margin-bottom: 20px;
    color: #adb5bd;
}

.grp-no-reviews h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* Loading State */
.grp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.grp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: grp-spin 1s linear infinite;
}

@keyframes grp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Rating-specific styles */
.grp-rating-5 .grp-single-review {
    border-left-color: #28a745;
}

.grp-rating-4 .grp-single-review {
    border-left-color: #ffc107;
}

.grp-rating-3 .grp-single-review {
    border-left-color: #fd7e14;
}

.grp-rating-1 .grp-single-review,
.grp-rating-2 .grp-single-review {
    border-left-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .grp-reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .grp-reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .grp-reviews-list .grp-single-review {
        flex-direction: column;
        text-align: center;
    }
    
    .grp-review-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .grp-review-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .grp-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .grp-single-review {
        padding: 20px;
    }
    
    .grp-single-review::before {
        font-size: 60px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .grp-reviews-wrapper {
        margin: 20px 0;
    }
    
    .grp-single-review {
        padding: 15px;
        border-radius: 8px;
    }
    
    .grp-review-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .grp-review-author {
        font-size: 16px;
    }
    
    .grp-stars {
        font-size: 16px;
    }
}

/* Animation Classes */
.grp-fade-in {
    animation: grpFadeIn 0.6s ease-in-out;
}

@keyframes grpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grp-stagger-item {
    animation: grpStagger 0.5s ease-in-out forwards;
    opacity: 0;
}

@keyframes grpStagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .grp-single-review {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .grp-review-author {
        color: #f7fafc;
    }
    
    .grp-review-text {
        color: #e2e8f0;
    }
    
    .grp-no-reviews {
        background: #4a5568;
        color: #cbd5e0;
        border-color: #718096;
    }
    
    .grp-review-footer {
        border-top-color: #4a5568;
        color: #a0aec0;
    }
}

/* Print Styles */
@media print {
    .grp-single-review {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .grp-slider-nav,
    .grp-slider-arrow {
        display: none;
    }
    
    .grp-reviews-grid {
        grid-template-columns: 1fr;
    }
}