/* ==========================================================================
   Google Reviews Shortcode Styles (Swiper Carousel)
   ========================================================================== */

.swan-reviews-wrapper {
    --review-bg: rgba(255, 255, 255, 0.85);
    --review-border: rgba(255, 255, 255, 0.4);
    --review-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --review-shadow-hover: 0 15px 50px -15px rgba(0,0,0,0.12);
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --star-color: #fbbc04;
    
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.swan-reviews-wrapper * {
    box-sizing: border-box;
}

/* Header Section */
.swan-reviews-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    text-align: center;
}

.swan-reviews-google-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.swan-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.swan-rating-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.swan-stars-summary {
    display: flex;
    gap: 2px;
    margin: 4px 0;
}

.swan-reviews-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Swiper Carousel Overrides */
.swan-reviews-swiper {
    padding: 10px 10px 50px 10px !important; /* Space for shadow and pagination */
}

/* Review Card */
.swan-review-card {
    background: var(--review-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--review-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--review-shadow);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.swan-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swan-review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--review-shadow-hover);
}

.swan-review-card:hover::before {
    opacity: 1;
}

/* Card Header */
.swan-review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.swan-review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    color: #4a6fa5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.swan-review-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.swan-review-author {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swan-review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Stars inside card */
.swan-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

/* Review Text */
.swan-review-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a5568;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1; /* Pushes google icon down */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Google Icon Corner */
.swan-review-google-icon {
    align-self: flex-end;
    margin-top: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

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

/* Navigation Buttons */
.swan-nav-btn {
    color: var(--text-main) !important;
    background: #fff;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.swan-nav-btn::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}

.swan-nav-btn:hover {
    background: var(--text-main);
    color: #fff !important;
    transform: scale(1.1);
}

.swiper-pagination-bullet-active {
    background: var(--text-main) !important;
}

/* Action Button */
.swan-reviews-action {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.swan-reviews-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
}

.swan-reviews-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: #4285F4; /* Google Blue */
}

.swan-reviews-link-btn svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.swan-reviews-link-btn:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
    .swan-reviews-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .swan-reviews-summary {
        align-items: center;
        text-align: center;
    }
    
    .swan-nav-btn {
        display: none !important; /* Hide arrows on mobile */
    }

    .swan-review-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .swan-reviews-wrapper {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }

    .swan-review-card {
        padding: 1.25rem;
    }

    .swan-review-header {
        gap: 0.75rem;
    }

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

    .swan-review-author {
        font-size: 1rem;
    }

    .swan-rating-number {
        font-size: 1.75rem;
    }

    .swan-reviews-link-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .swan-review-text {
        font-size: 0.95rem;
    }
}
