.google-reviews-widget {
    background: linear-gradient(135deg,
        #fef3f9 0%,
        #f5f3ff 25%,
        #f0f9ff 50%,
        #fff1f7 75%,
        #f8f7ff 100%);
    border-radius: 24px;
    padding: 60px 40px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(197, 31, 93, 0.15),
                0 15px 40px rgba(138, 43, 226, 0.12),
                inset 0 2px 4px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(197, 31, 93, 0.2);
}

.google-reviews-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%,
        rgba(197, 31, 93, 0.12) 0%,
        rgba(138, 43, 226, 0.08) 30%,
        transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.google-reviews-widget > * {
    position: relative;
    z-index: 1;
}

.reviews-title {
    color: var(--text-primary, #1e1b29);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #c51f5d 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-header {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(197, 31, 93, 0.1);
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.google-icon {
    width: 32px;
    height: 32px;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #c51f5d 0%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stars {
    font-size: 1.2rem;
    line-height: 1;
}

.review-count {
    color: var(--text-muted, #6b6580);
    font-size: 1rem;
}

.review-button {
    background: linear-gradient(135deg, #c51f5d 0%, #8a2be2 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(197, 31, 93, 0.3);
}

.review-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(197, 31, 93, 0.4);
    color: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

/* Review Card - Light Theme */
.review-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(138, 43, 226, 0.08);
    border: 1px solid rgba(197, 31, 93, 0.1);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(197, 31, 93, 0.15);
    border-color: rgba(197, 31, 93, 0.2);
}

.review-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviewer-info {
    flex: 1;
    min-width: 0;
}

.reviewer-name {
    color: var(--text-primary, #1e1b29);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verified-badge {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.review-meta {
    font-size: 0.875rem;
    color: var(--text-muted, #6b6580);
    display: flex;
    align-items: center;
    gap: 4px;
}

.google-label {
    color: #4285F4;
    font-weight: 500;
}

.review-stars {
    font-size: 1rem;
    line-height: 1;
    color: #FFC107;
}

.review-text {
    color: var(--text-secondary, #4a4458);
    line-height: 1.6;
    font-size: 0.95rem;
}

.review-content {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.review-content.expanded {
    display: block;
}

.read-more-btn {
    background: none;
    border: none;
    color: #c51f5d;
    cursor: pointer;
    padding: 0;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
    text-decoration: none;
}

.read-more-btn:hover {
    color: #8a2be2;
    text-decoration: underline;
}

/* Widget Footer */
.widget-footer {
    text-align: center;
    padding-top: 20px;
}

.widget-attribution {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #6b6580);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.widget-attribution:hover {
    color: var(--text-secondary, #4a4458);
}

body.dark-mode .google-reviews-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .google-reviews-widget::before {
    background-image:
        radial-gradient(circle at 20% 30%, rgba(197, 31, 93, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
}

body.dark-mode .reviews-title {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: initial;
}

body.dark-mode .reviews-header {
    background-color: rgba(45, 45, 45, 0.95);
    border-color: rgba(197, 31, 93, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .rating-number {
    background: linear-gradient(135deg, #d946a3 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-mode .review-count {
    color: #a0a0a0;
}

body.dark-mode .review-card {
    background-color: rgba(45, 45, 45, 0.95);
    border-color: rgba(197, 31, 93, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

body.dark-mode .review-card:hover {
    box-shadow: 0 8px 24px rgba(197, 31, 93, 0.2);
    border-color: rgba(197, 31, 93, 0.3);
}

body.dark-mode .reviewer-name {
    color: #f5f5f5;
}

body.dark-mode .review-meta {
    color: #a0a0a0;
}

body.dark-mode .review-text {
    color: #e0e0e0;
}

body.dark-mode .read-more-btn {
    color: #d946a3;
}

body.dark-mode .read-more-btn:hover {
    color: #a855f7;
}

body.dark-mode .widget-attribution {
    color: rgba(255, 255, 255, 0.6);
}

body.dark-mode .widget-attribution:hover {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .google-reviews-widget {
        padding: 40px 20px;
        border-radius: 16px;
        margin: 40px 0;
    }

    .reviews-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .reviews-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .rating-summary {
        justify-content: center;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .review-card {
        padding: 20px;
    }

    .rating-number {
        font-size: 1.5rem;
    }

    .review-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .reviews-title {
        font-size: 1.75rem;
    }

    .review-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

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

.reviews-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-primary, #1e1b29);
    font-size: 1.2rem;
}

body.dark-mode .reviews-loading {
    color: #f5f5f5;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(197, 31, 93, 0.2);
    border-radius: 50%;
    border-top-color: #c51f5d;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.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;
}

.review-card:nth-child(6) {
    animation-delay: 0.6s;
}
