/**
 * PSC Energy Reviews Styles
 * Matches the design from the screenshot
 */

.psc-reviews-section {
    margin: 0;
    padding: 0;
    background: transparent;
    height: calc(90vh / 2); /* Each section takes half of 90vh so 2 fit */
    display: flex;
    flex-direction: column;
    position: relative;
}

.psc-reviews-title {
    display: none; /* Titles removed - added separately */
}

.psc-reviews-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.psc-reviews-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 10px 60px; /* Space for blur effects */
    height: 100%; /* Fill section height */
    align-items: stretch;
}

/* Blur effects on left and right */
.psc-reviews-carousel::before,
.psc-reviews-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 5;
    pointer-events: none;
}

.psc-reviews-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.psc-reviews-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.psc-reviews-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.psc-review-card {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill container height */
}

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

.psc-reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.psc-reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.psc-reviewer-details {
    flex: 1;
}

.psc-reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 4px 0;
}

.psc-reviewer-location {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.psc-review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.psc-rating-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.psc-stars {
    display: flex;
    gap: 2px;
}

.psc-stars-yellow .psc-star.filled {
    color: #fbbf24;
}

.psc-stars-orange .psc-star.filled {
    color: #f97316;
}

.psc-star {
    font-size: 18px;
    color: #d1d5db;
}

.psc-star.filled {
    color: inherit;
}

.psc-star.half {
    background: linear-gradient(90deg, currentColor 50%, #d1d5db 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.psc-google-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.psc-review-content {
    margin-bottom: 16px;
    flex: 1;
}

.psc-review-heading {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.psc-review-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.psc-read-more {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.psc-read-more:hover {
    text-decoration: underline;
}

.psc-review-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.psc-score-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.psc-score-label {
    color: #666;
}

.psc-score-value {
    font-weight: 600;
    color: #000;
}

.psc-review-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.psc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.psc-detail-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.psc-detail-item span {
    font-size: 12px;
    color: #666;
}

.psc-review-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.psc-review-date {
    font-size: 12px;
    color: #999;
}

/* Carousel Navigation Buttons */
.psc-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.psc-carousel-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.psc-carousel-prev {
    left: 10px;
}

.psc-carousel-next {
    right: 10px;
}

.psc-carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .psc-review-card {
        flex: 0 0 280px;
    }
    
    .psc-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .psc-carousel-prev {
        left: 5px;
    }
    
    .psc-carousel-next {
        right: 5px;
    }
    
    .psc-reviews-container {
        padding: 10px 50px; /* Less padding on mobile */
    }
    
    .psc-reviews-carousel::before,
    .psc-reviews-carousel::after {
        width: 50px;
    }
}

/* Google Reviews Specific Styles */
.psc-google-card .psc-review-header {
    margin-bottom: 12px;
}

.psc-rating-google {
    margin-bottom: 16px;
}

/* Additional Info Section */
.psc-review-additional-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.psc-review-additional-info h5 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 12px 0;
}

/* View More Button */
.psc-view-more-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 12px;
    transition: color 0.3s ease;
}

.psc-view-more-btn:hover {
    color: #5568d3;
    text-decoration: underline;
}

.psc-view-more-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.psc-view-more-btn[aria-expanded="true"] .psc-view-more-icon {
    transform: rotate(180deg);
}

/* Additional Info Sections */
.psc-review-additional-info .psc-review-scores,
.psc-review-additional-info .psc-review-details {
    margin-bottom: 16px;
}

.psc-review-additional-info .psc-review-scores:last-child,
.psc-review-additional-info .psc-review-details:last-child {
    margin-bottom: 0;
}

/* Loading State */
.psc-reviews-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

