/**
 * LV Reviews - Frontend Styles
 * Bootstrap 3 compatible
 */

/* ==========================================================================
   Trustpilot Header
   ========================================================================== */

.lv-trustpilot-header {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.lv-trustpilot-header--mini {
    padding: 15px 20px;
}

.lv-trustpilot-logo svg {
    display: block;
}

.lv-trustpilot-stats {
    text-align: center;
}

.lv-trustpilot-rating {
    margin-bottom: 8px;
}

.lv-trustpilot-score {
    font-size: 32px;
    font-weight: 700;
    color: #191919;
}

.lv-trustpilot-label {
    font-size: 14px;
    color: #666;
    margin-left: 5px;
}

.lv-trustpilot-stars-container {
    display: inline-flex;
    gap: 3px;
}

.lv-tp-star {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #dcdce6;
    position: relative;
}

.lv-tp-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.lv-tp-star--full {
    background-color: #00B67A;
}

.lv-tp-star--half {
    background: linear-gradient(to right, #00B67A 50%, #dcdce6 50%);
}

.lv-trustpilot-count {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.lv-trustpilot-link {
    display: inline-block;
    padding: 10px 20px;
    background: #00B67A;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}

.lv-trustpilot-link:hover,
.lv-trustpilot-link:focus {
    background: #009567;
    color: #fff !important;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.lv-reviews-section {
    margin-top: 40px;
}

.lv-reviews-section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.lv-reviews-subsection-title {
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 20px;
    color: #555;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* ==========================================================================
   Reviews Grid
   ========================================================================== */

.lv-reviews-grid {
    display: flex;
    flex-wrap: wrap;
}

.lv-review-col {
    margin-bottom: 30px;
}

/* ==========================================================================
   Review Cards - Base
   ========================================================================== */

.lv-review-card {
    height: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    margin-bottom: 0;
}

.lv-review-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.lv-review-card .panel-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lv-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.lv-review-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #333;
    line-height: 1.3;
}

.lv-review-card__content {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.lv-review-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.lv-review-card__author strong {
    display: block;
    font-size: 15px;
    color: #333;
}

.lv-review-card__location {
    display: block;
    font-size: 13px;
    color: #888;
}

.lv-review-card__date {
    font-size: 13px;
    color: #888;
}

.lv-review-card__listing {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.lv-review-card__listing a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.lv-review-card__listing a:hover {
    color: #333;
}

.lv-review-card__listing .glyphicon {
    margin-right: 5px;
}

.lv-review-card__readmore {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   Trustpilot Card Specific
   ========================================================================== */

.lv-review-card--trustpilot {
    border-top: 4px solid #00B67A;
}

.lv-review-card__tp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f7f7f7;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #00B67A;
}

.lv-review-card--trustpilot .lv-review-card__readmore {
    color: #00B67A;
}

.lv-review-card--trustpilot .lv-review-card__readmore:hover {
    color: #009567;
}

/* ==========================================================================
   Testimonial Card Specific (LV Native Style)
   ========================================================================== */

.lv-review-card--testimonial {
    border-top: 4px solid #c9a227; /* Gold accent */
    background: linear-gradient(to bottom, #fefefe 0%, #fafafa 100%);
}

.lv-review-card__quote-icon {
    color: #c9a227;
    opacity: 0.6;
}

.lv-review-card__stars--native {
    display: flex;
    gap: 2px;
}

.lv-star {
    font-size: 18px;
    color: #ddd;
}

.lv-star--filled {
    color: #c9a227;
}

.lv-review-card--testimonial .lv-review-card__readmore {
    color: #c9a227;
}

.lv-review-card--testimonial .lv-review-card__readmore:hover {
    color: #a88820;
}

/* ==========================================================================
   Carousel
   ========================================================================== */

.lv-reviews-carousel-wrapper {
    margin-bottom: 50px;
}

.lv-reviews-carousel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 40px 60px;
}

.lv-reviews-carousel .item {
    padding: 0 20px;
}

.lv-reviews-carousel .lv-review-col {
    margin-bottom: 0;
}

.lv-reviews-carousel .lv-review-card {
    max-width: 700px;
    margin: 0 auto;
}

.lv-reviews-carousel .carousel-control {
    background: none !important;
    width: 50px;
    opacity: 0.7;
}

.lv-reviews-carousel .carousel-control:hover {
    opacity: 1;
}

.lv-reviews-carousel .carousel-control .glyphicon {
    font-size: 30px;
    color: #333;
}

.lv-reviews-carousel .carousel-indicators {
    bottom: -35px;
}

.lv-reviews-carousel .carousel-indicators li {
    background-color: #ccc;
    border: none;
}

.lv-reviews-carousel .carousel-indicators .active {
    background-color: #333;
}

/* ==========================================================================
   Single Review Page
   ========================================================================== */

.lv-single-review {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.lv-single-review__header {
    margin-bottom: 30px;
}

.lv-single-review__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.lv-single-review__badge--trustpilot {
    background: #00B67A;
    color: #fff;
}

.lv-single-review__badge--testimonial {
    background: #c9a227;
    color: #fff;
}

.lv-single-review__title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #222;
}

.lv-single-review__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #666;
    font-size: 15px;
}

.lv-single-review__stars {
    display: flex;
    gap: 3px;
}

.lv-single-review__content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #c9a227;
}

.lv-single-review__content--trustpilot {
    border-left-color: #00B67A;
}

.lv-single-review__listing-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.lv-single-review__listing-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.lv-single-review__related {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.lv-single-review__related-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991px) {
    .lv-trustpilot-header {
        justify-content: center;
        text-align: center;
    }
    
    .lv-reviews-carousel {
        padding: 30px 40px;
    }
}

@media (max-width: 767px) {
    .lv-trustpilot-header {
        flex-direction: column;
        padding: 20px;
    }
    
    .lv-reviews-carousel {
        padding: 20px 10px;
    }
    
    .lv-reviews-carousel .carousel-control {
        width: 30px;
    }
    
    .lv-reviews-carousel .carousel-control .glyphicon {
        font-size: 20px;
    }
    
    .lv-single-review__title {
        font-size: 28px;
    }
    
    .lv-single-review__content {
        font-size: 16px;
        padding: 20px;
    }
}
