/* Google Reviews Widget Styles */

.google-reviews-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Header */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-score {
    font-size: 3rem;
    font-weight: 800;
    color: #F59E0B;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.rating-stars .star {
    width: 24px;
    height: 24px;
}

.rating-stars .star.filled {
    color: #F59E0B;
}

.rating-stars .star.half {
    color: #F59E0B;
}

.rating-stars .star.empty {
    color: #4B5563;
}

.rating-count {
    color: #9CA3AF;
    font-size: 0.875rem;
    font-weight: 500;
}

.write-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #1a1a2e;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.write-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.write-review-btn svg {
    width: 20px;
    height: 20px;
}

/* Google Logo */
.google-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: fit-content;
}

.google-logo svg {
    height: 24px;
}

.google-logo span {
    color: #E5E7EB;
    font-weight: 600;
    font-size: 1.125rem;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateX(4px);
}

/* Review Header */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1a1a2e;
}

.reviewer-name {
    font-weight: 600;
    color: #E5E7EB;
    font-size: 1rem;
}

.review-rating-date {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-rating-date .star {
    width: 16px;
    height: 16px;
}

.review-date {
    color: #6B7280;
    font-size: 0.875rem;
}

.google-icon-mini {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.review-card:hover .google-icon-mini {
    opacity: 1;
}

/* Review Text */
.review-text {
    color: #D1D5DB;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* View More Button */
.view-more-btn {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: transparent;
    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 8px;
    color: #F59E0B;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #F59E0B;
}

/* Responsive Design */
@media (max-width: 768px) {
    .google-reviews-widget {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-score {
        font-size: 2.5rem;
    }

    .write-review-btn {
        width: 100%;
        justify-content: center;
    }

    .review-header {
        flex-direction: row;
    }

    .google-logo {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rating-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .reviewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.5s ease forwards;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }

/* Stars Animation */
.rating-stars .star {
    transition: transform 0.2s ease;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .google-reviews-widget {
        border: 2px solid #F59E0B;
    }

    .review-card {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .review-card,
    .rating-stars .star,
    .write-review-btn,
    .review-card,
    .view-more-btn {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .google-reviews-widget {
        background: white;
        color: black;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .write-review-btn,
    .view-more-btn,
    .google-icon-mini {
        display: none;
    }

    .review-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .rating-score,
    .reviewer-name,
    .review-text {
        color: black;
    }

    .rating-stars .star {
        color: #666;
    }
}

/* RTL Support */
[dir="rtl"] .google-reviews-widget,
[dir="rtl"] .rating-badge,
[dir="rtl"] .reviewer-info,
[dir="rtl"] .review-rating-date,
[dir="rtl"] .review-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .review-card:hover {
    transform: translateX(-4px);
}