/**
 * User Reviews Page Styles
 * Optimized for Swiper Grid Layout & Premium Aesthetics
 * Fully Responsive for Mobile Devices
 */

/* Main Container Polish */
.user-reviews-page {
    background-color: #fcfcfc;
}

/* Premium Loader */
.testi-loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    width: 100%;
}

.testi-loader {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(188, 28, 92, 0.08);
    border-top: 3px solid #BC1C5C;
    border-radius: 50%;
    animation: testi-spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 15px;
}

@keyframes testi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Typography Refresh */
.user-reviews-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.user-reviews-page h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.testisubtit {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Header & Navigation */
.testi-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    gap: 20px;
}

.testi-nav-wrapper {
    display: flex;
    gap: 12px;
}

.user-reviews-page .swiper-button-next,
.user-reviews-page .swiper-button-prev {
    position: relative;
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    top: auto;
    left: auto;
    right: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.user-reviews-page .swiper-button-next:after,
.user-reviews-page .swiper-button-prev:after {
    display: none;
}

.user-reviews-page .swiper-button-next iconify-icon,
.user-reviews-page .swiper-button-prev iconify-icon {
    font-size: 22px;
    color: #BC1C5C;
    display: flex;
}

.user-reviews-page .swiper-button-next:hover,
.user-reviews-page .swiper-button-prev:hover {
    background: #BC1C5C;
    border-color: #BC1C5C;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(188, 28, 92, 0.15);
}

.user-reviews-page .swiper-button-next:hover iconify-icon,
.user-reviews-page .swiper-button-prev:hover iconify-icon {
    color: #ffffff;
}

.user-reviews-page .swiper-button-disabled {
    background: #fafafa !important;
    border-color: #eee !important;
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none !important;
    transform: none !important;
}

.user-reviews-page .swiper-button-disabled iconify-icon {
    color: #ccc !important;
}

/* Swiper Container */
.user-reviews-page .swiper {
    padding: 10px 0 60px 0;
    overflow: visible;
}

/* Testimonial Card - Premium Polish */
.user-reviews-page .testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(20px, 4vw, 35px);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-sizing: border-box;
}

.user-reviews-page .swiper-slide {
    height: auto;
    display: flex;
}

.user-reviews-page .testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(188, 28, 92, 0.15);
}

.testiquote {
    margin-bottom: 15px;
    display: flex;
}

.testi-content {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    line-height: 1.6;
    color: #444;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 120px;
}

.testi-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f8f8f8;
    padding-top: 20px;
}

.testiimg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testiimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-info {
    display: flex;
    flex-direction: column;
}

.testitit {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2px;
}

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

/* Pagination Dots */
.user-reviews-page .swiper-pagination {
    bottom: 10px !important;
}

.user-reviews-page .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #e0e0e0;
    opacity: 1;
    transition: all 0.3s ease;
}

.user-reviews-page .swiper-pagination-bullet-active {
    width: 20px;
    background: #BC1C5C;
    border-radius: 4px;
}

/* Error State */
.error-msg-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px dashed #eee;
}

/* Swiper Grid Responsive Fixes */
.swiper-grid-column > .swiper-wrapper {
    flex-wrap: wrap;
    flex-direction: column;
}

/* --- Responsive Media Queries --- */

@media (max-width: 767px) {
    .testi-header-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        margin-bottom: 30px;
    }

    .testi-nav-wrapper {
        width: 100%;
        justify-content: center;
    }

    .user-reviews-page .swiper-button-next,
    .user-reviews-page .swiper-button-prev {
        width: 44px;
        height: 44px;
    }

    .testi-content {
        min-height: 100px;
        -webkit-line-clamp: 6; /* Show more text on mobile if needed */
    }

    .user-reviews-page .swiper {
        padding-bottom: 50px;
    }
    
    .testi-footer {
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .user-reviews-page h1 { font-size: 1.8rem; }
    .user-reviews-page h2 { font-size: 1.4rem; }
    .testimonial-card { padding: 20px; }
}