/**
 * FB Travel Testimonial Widget Styles
 */

.testimonial-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.testimonial-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Review Platforms Section */
.testimonial-platforms {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 20px;
}

.platform-item {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 200px;
}

.platform-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.platform-rating {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 5px;
}

.star {
    font-size: 16px;
    line-height: 1;
}

.star.full {
    color: #ffa500;
}

.star.half {
    color: #ffa500;
    opacity: 0.6;
}

.star.empty {
    color: #e0e0e0;
}

.rating-text {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.reviews-count {
    font-size: 12px;
    color: #666;
}

.submit-review {
    margin-left: auto;
}

.submit-review-btn {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid #007cba;
}

.submit-review-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-header .stars {
    margin-bottom: 0;
}

.review-date {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-date::before {
    content: "📅";
    font-size: 12px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.4;
}

.review-content {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
}

.customer-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.read-more {
    color: #007cba;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #005a87;
    text-decoration: underline;
}

/* See All Reviews */
.see-all-reviews {
    text-align: center;
    margin-top: 30px;
}

.see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid #007cba;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
}

.see-all-btn::after {
    content: "→";
    transition: transform 0.3s ease;
}

.see-all-btn:hover::after {
    transform: translateX(3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 40px 15px;
    }
    
    .testimonial-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .testimonial-platforms {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 25px 20px;
    }
    
    .platform-item {
        justify-content: center;
        min-width: auto;
        width: 100%;
    }
    
    .submit-review {
        margin-left: 0;
        width: 100%;
    }
    
    .submit-review-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .review-date {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .testimonial-section {
        padding: 30px 10px;
    }
    
    .testimonial-title {
        font-size: 20px;
    }
    
    .testimonial-card {
        padding: 16px;
    }
    
    .review-title {
        font-size: 16px;
    }
    
    .platform-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .testimonial-section {
    min-height: 200px;
}

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

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Trustpilot specific styling */
.platform-item.trustpilot .star.full {
    color: #00b67a;
}

.platform-item.trustpilot .star.half {
    color: #00b67a;
    opacity: 0.6;
}

/* Sitejabber specific styling */
.platform-item.sitejabber .star.full {
    color: #ff6d00;
}

.platform-item.sitejabber .star.half {
    color: #ff6d00;
    opacity: 0.6;
}