/**
 * Reviews Carousel Styles - Modern Testimonials Design
 * 
 * Clean, modern design based on reference screenshot
 * 
 * @package ProduktVerleih
 * @since 1.0.1
 */

/* ========================================
   Carousel Wrapper
   ======================================== */
.pv-hidden {
    display: none !important;
}

.pv-reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0;
}

/* ========================================
   Carousel Header (Title + Navigation)
   ======================================== */
.pv-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.pv-carousel-title {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.pv-carousel-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

/* ========================================
   Navigation Buttons (Top Right) - Minimalistic
   ======================================== */
.pv-carousel-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
    border-radius: 9999px;
    box-shadow: none !important;
}

.pv-carousel-btn:hover:not(:disabled) {
    color: #1e293b;
    transform: scale(1.1);
}

.pv-carousel-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.pv-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pv-carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* ========================================
   Carousel Container
   ======================================== */
.pv-reviews-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pv-reviews-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    align-items: flex-start;
    /* Prevent all items from stretching to the same height */
}

/* ========================================
   Review Item
   ======================================== */
.pv-review-item {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Multiple slides per view */
/* Multiple slides per view */
.pv-reviews-carousel-wrapper[data-slides="2"] .pv-review-item {
    width: calc(50% - 1rem);
}

.pv-reviews-carousel-wrapper[data-slides="3"] .pv-review-item {
    width: calc(33.333% - 1.333rem);
}

.pv-reviews-carousel-wrapper[data-slides="4"] .pv-review-item {
    width: calc(25% - 1.5rem);
}

/* ========================================
   Review Card - Modern Clean Design
   ======================================== */
.pv-review-card {
    border-radius: 12px;
    padding: 2rem;
    box-shadow: none !important;
    transition: all 0.3s ease;
    /* height: 100%; */
    /* Removed to allow natural height */
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pv-review-card:hover {
    box-shadow: none !important;
    transform: none;
}

/* ========================================
   Review Top - Stars (left) + Date (right)
   ======================================== */
.pv-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Star Rating */
.pv-star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
}

.pv-star {
    transition: all 0.2s ease;
}

.pv-star-filled {
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(251, 191, 36, 0.2);
}

.pv-star-empty {
    color: #e5e7eb;
}

/* Date */
.pv-review-date {
    font-size: 0.875rem;
    color: #000000;
    font-weight: 500;
}

/* ========================================
   Review Content - Title + Text + Read More
   ======================================== */
.pv-review-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pv-review-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    min-height: 3.15rem;
    /* Force 2 lines height (1.125 * 1.4 * 2) */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pv-review-content {
    position: relative;
    overflow: hidden;
}

.pv-review-text {
    margin: 0;
    color: #475569;
    font-size: 0.938rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Text truncation for collapsed state */
.pv-review-content.collapsed .pv-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Button */
.pv-read-more-btn {
    align-self: flex-start;
    background: transparent !important;
    border: none;
    color: #000000;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: none !important;
}

.pv-read-more-btn:hover {
    background: transparent !important;
    color: #000000;
    text-decoration: underline;
    box-shadow: none !important;
}

.pv-read-more-btn:active {
    transform: scale(0.98);
}

/* ========================================
   Review Footer - Avatar + Name + Product
   ======================================== */
.pv-review-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

/* Avatar */
.pv-review-avatar {
    flex-shrink: 0;
}

.pv-review-avatar img,
.pv-avatar-initials {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #ececec;
}

.pv-avatar-initials {
    background: #000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Author Info */
.pv-review-author-info {
    flex: 1;
    min-width: 0;
}

.pv-review-author {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pv-review-product {
    font-size: 0.875rem;
    color: #000000;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Pagination Dots
   ======================================== */
.pv-carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 2rem;
}

.pv-carousel-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0 !important;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
    outline: none !important;
    margin: 0 !important;
}

.pv-carousel-dot:hover,
.pv-carousel-dot:focus,
.pv-carousel-dot:active {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    transform: none !important;
}

/* Visual dot element */
.pv-dot-visual {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.pv-carousel-dot:hover .pv-dot-visual {
    background: #94a3b8;
    transform: scale(1.15);
}

.pv-carousel-dot.active .pv-dot-visual {
    background: #000000;
    width: 28px;
    border-radius: 5px;
}

/* ========================================
   Empty State
   ======================================== */
.pv-reviews-carousel-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 1rem;
    border: 2px dashed #cbd5e0;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .pv-reviews-carousel-wrapper[data-slides="4"] .pv-review-item {
        width: calc(33.333% - 1.333rem);
    }
}

@media (max-width: 768px) {

    .pv-reviews-carousel-wrapper[data-slides="3"] .pv-review-item,
    .pv-reviews-carousel-wrapper[data-slides="4"] .pv-review-item {
        width: calc(50% - 1rem);
    }

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

    .pv-carousel-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 640px) {
    .pv-carousel-header {
        margin-bottom: 2rem;
    }

    .pv-reviews-carousel-wrapper[data-slides="2"] .pv-review-item,
    .pv-reviews-carousel-wrapper[data-slides="3"] .pv-review-item,
    .pv-reviews-carousel-wrapper[data-slides="4"] .pv-review-item {
        width: 100%;
    }

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

    .pv-carousel-btn {
        width: 40px;
        height: 40px;
    }

    .pv-carousel-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .pv-carousel-nav-buttons,
    .pv-carousel-pagination {
        display: none;
    }

    .pv-reviews-carousel-track {
        flex-wrap: wrap;
    }

    .pv-review-item {
        page-break-inside: avoid;
    }
}