/**
 * Premium Testimonials - Frontend Styles
 * All 8+ Professional Layouts
 */

/* ==========================================
   BASE STYLES
   ========================================== */

.pt-testimonials-container {
    margin: 40px 0;
    padding: 0;
}

.pt-testimonials-container * {
    box-sizing: border-box;
}

/* Grid System */
.pt-grid {
    display: grid;
    gap: var(--pt-grid-gap, 30px);
    margin: 0;
    padding: 0;
}

.pt-grid.pt-columns-1 { grid-template-columns: 1fr; }
.pt-grid.pt-columns-2 { grid-template-columns: repeat(2, 1fr); }
.pt-grid.pt-columns-3 { grid-template-columns: repeat(3, 1fr); }
.pt-grid.pt-columns-4 { grid-template-columns: repeat(4, 1fr); }
.pt-grid.pt-columns-5 { grid-template-columns: repeat(5, 1fr); }

/* Base Card */
.pt-card {
    background: var(--pt-background-color, #fff);
    border: 1px solid var(--pt-border-color, #e0e0e0);
    border-radius: var(--pt-border-radius, 12px);
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pt-card:hover {
    box-shadow: var(--pt-card-shadow, 0 4px 15px rgba(0,0,0,0.1));
    transform: translateY(-5px);
}

/* ==========================================
   LAYOUT 1: GRID (Default)
   ========================================== */

.pt-card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pt-card-grid .pt-image {
    position: relative;
    margin-bottom: 20px;
}

.pt-card-grid .pt-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pt-primary-color, #5b2cff);
    display: block;
    margin: 0 auto;
}

.pt-verified-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4caf50;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.pt-card-grid .pt-rating {
    margin-bottom: 15px;
}

.pt-card-grid .pt-text {
    font-size: var(--pt-text-font-size, 15px);
    line-height: 1.6;
    color: var(--pt-text-color, #333);
    margin-bottom: 20px;
    flex: 1; /* Make text expand to fill available space */
}

.pt-card-grid .pt-content {
    flex: 1; /* Expand content area */
    display: flex;
    flex-direction: column;
}

.pt-card-grid .pt-author {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--pt-border-color, #e0e0e0);
    width: 100%;
}

.pt-card-grid .pt-name {
    font-size: var(--pt-name-font-size, 18px);
    font-weight: var(--pt-name-font-weight, 600);
    color: var(--pt-primary-color, #5b2cff);
    margin-bottom: 5px;
}

.pt-card-grid .pt-role {
    font-size: var(--pt-role-font-size, 14px);
    color: #999;
}

/* ==========================================
   LAYOUT 2: MASONRY
   ========================================== */

.pt-layout-masonry .pt-grid {
    column-count: 3;
    column-gap: var(--pt-grid-gap, 30px);
    display: block;
}

.pt-layout-masonry.pt-columns-1 .pt-grid { column-count: 1; }
.pt-layout-masonry.pt-columns-2 .pt-grid { column-count: 2; }
.pt-layout-masonry.pt-columns-4 .pt-grid { column-count: 4; }
.pt-layout-masonry.pt-columns-5 .pt-grid { column-count: 5; }

.pt-card-masonry {
    break-inside: avoid;
    margin-bottom: var(--pt-grid-gap, 30px);
}

.pt-card-masonry .pt-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.pt-card-masonry .pt-avatar-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.pt-card-masonry .pt-author-inline {
    flex: 1;
}

.pt-card-masonry .pt-name {
    font-size: var(--pt-name-font-size, 18px);
    font-weight: var(--pt-name-font-weight, 600);
    color: var(--pt-primary-color, #5b2cff);
    margin-bottom: 5px;
}

.pt-card-masonry .pt-rating-inline {
    margin-top: 5px;
}

.pt-card-masonry .pt-text {
    font-size: var(--pt-text-font-size, 15px);
    line-height: 1.6;
    color: var(--pt-text-color, #333);
    margin-bottom: 15px;
}

.pt-card-masonry .pt-meta {
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid var(--pt-border-color, #e0e0e0);
}

/* ==========================================
   LAYOUT 3: LIST
   ========================================== */

.pt-layout-list .pt-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pt-card-list {
    display: flex;
    gap: 25px;
    padding: 25px;
}

.pt-card-list .pt-avatar-list {
    width: 100px;
    height: 100px;
    border-radius: var(--pt-border-radius, 12px);
    object-fit: cover;
    flex-shrink: 0;
}

.pt-card-list .pt-list-right {
    flex: 1;
}

.pt-card-list .pt-rating {
    margin-bottom: 15px;
}

.pt-card-list .pt-text {
    font-size: var(--pt-text-font-size, 15px);
    line-height: 1.6;
    color: var(--pt-text-color, #333);
    margin-bottom: 15px;
}

.pt-card-list .pt-author-list {
    font-size: 14px;
    color: #666;
}

.pt-card-list .pt-author-list strong {
    color: var(--pt-primary-color, #5b2cff);
    font-weight: var(--pt-name-font-weight, 600);
}

.pt-card-list .pt-sep {
    margin: 0 8px;
    color: #ccc;
}

/* ==========================================
   LAYOUT 4: CARDS (Modern with Hover)
   ========================================== */

.pt-card-modern {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
    position: relative;
    overflow: visible;
}

.pt-card-modern:hover {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(91, 44, 255, 0.15);
}

.pt-card-modern .pt-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--pt-primary-color, #5b2cff);
}

.pt-card-modern .pt-rating {
    margin-bottom: 15px;
}

.pt-card-modern .pt-text {
    font-size: var(--pt-text-font-size, 15px);
    line-height: 1.7;
    color: var(--pt-text-color, #333);
    margin-bottom: 25px;
    font-style: italic;
}

.pt-card-modern .pt-author-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid var(--pt-border-color, #e0e0e0);
}

.pt-card-modern .pt-avatar-card {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--pt-primary-color, #5b2cff);
}

.pt-card-modern .pt-author-info {
    flex: 1;
}

.pt-card-modern .pt-name {
    font-size: var(--pt-name-font-size, 18px);
    font-weight: var(--pt-name-font-weight, 600);
    color: var(--pt-primary-color, #5b2cff);
    margin-bottom: 5px;
}

.pt-card-modern .pt-role {
    font-size: var(--pt-role-font-size, 14px);
    color: #999;
}

/* ==========================================
   LAYOUT 5: MINIMAL
   ========================================== */

.pt-card-minimal {
    background: transparent;
    border: none;
    border-left: 4px solid var(--pt-primary-color, #5b2cff);
    border-radius: 0;
    padding: 20px 30px;
    box-shadow: none;
}

.pt-card-minimal:hover {
    background: #fafafa;
    transform: translateX(5px);
}

.pt-card-minimal .pt-text-minimal {
    font-size: 16px;
    line-height: 1.7;
    color: var(--pt-text-color, #333);
    font-style: italic;
    margin-bottom: 15px;
}

.pt-card-minimal .pt-author-minimal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.pt-card-minimal .pt-name-minimal {
    font-size: 15px;
    font-weight: 600;
    color: var(--pt-primary-color, #5b2cff);
}

/* ==========================================
   LAYOUT 6: MODERN (Gradient)
   ========================================== */

.pt-card-gradient {
    background: #fff;
    position: relative;
    text-align: center;
    padding: 40px 30px;
}

.pt-card-gradient .pt-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, var(--pt-primary-color, #5b2cff) 0%, var(--pt-secondary-color, #7c4dff) 100%);
    border-radius: var(--pt-border-radius, 12px) var(--pt-border-radius, 12px) 0 0;
    z-index: 0;
}

.pt-card-gradient .pt-image-modern {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.pt-card-gradient .pt-avatar-modern {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pt-card-gradient .pt-rating,
.pt-card-gradient .pt-text,
.pt-card-gradient .pt-author {
    position: relative;
    z-index: 1;
}

.pt-card-gradient .pt-rating {
    margin-bottom: 15px;
}

.pt-card-gradient .pt-text {
    font-size: var(--pt-text-font-size, 15px);
    line-height: 1.6;
    color: var(--pt-text-color, #333);
    margin-bottom: 20px;
}

.pt-card-gradient .pt-name {
    font-size: var(--pt-name-font-size, 18px);
    font-weight: var(--pt-name-font-weight, 600);
    color: var(--pt-primary-color, #5b2cff);
    margin-bottom: 5px;
}

.pt-card-gradient .pt-role {
    font-size: var(--pt-role-font-size, 14px);
    color: #999;
}

/* ==========================================
   LAYOUT 7: FEATURED (Large Highlight)
   ========================================== */

.pt-card-featured {
    background: linear-gradient(135deg, #fafafa 0%, #fff 100%);
    padding: 50px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-card-featured:hover {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
}

.pt-card-featured .pt-rating-large {
    margin-bottom: 25px;
}

.pt-card-featured .pt-text-featured {
    font-size: 20px;
    line-height: 1.8;
    color: var(--pt-text-color, #333);
    font-style: italic;
    margin-bottom: 35px;
    font-weight: 300;
}

.pt-card-featured .pt-author-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.pt-card-featured .pt-avatar-featured {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--pt-primary-color, #5b2cff);
}

.pt-card-featured .pt-author-details {
    text-align: left;
}

.pt-card-featured .pt-name-featured {
    font-size: 24px;
    font-weight: var(--pt-name-font-weight, 600);
    color: var(--pt-primary-color, #5b2cff);
    margin-bottom: 8px;
}

.pt-card-featured .pt-role-featured {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

/* ==========================================
   STAR RATINGS
   ========================================== */

.pt-stars {
    display: inline-flex;
    gap: 4px;
    line-height: 1;
}

.pt-star {
    color: var(--pt-star-color, #ffc107);
    font-size: 20px;
}

.pt-stars-small .pt-star {
    font-size: 16px;
}

.pt-stars-large .pt-star {
    font-size: 28px;
}

.pt-star-empty {
    opacity: 0.3;
}

.pt-star-half {
    position: relative;
}

.pt-star-half::after {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    overflow: hidden;
    opacity: 0.5;
}

/* ==========================================
   CAROUSEL LAYOUT
   ========================================== */

.pt-layout-carousel {
    position: relative;
    padding: 0 60px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

.pt-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.pt-carousel-items {
    display: flex;
    transition: transform 0.5s ease;
}

.pt-layout-carousel .pt-testimonial-item {
    width: 100%;
    padding: 0;
}

.pt-carousel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.pt-carousel-arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.pt-carousel-dots {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ==========================================
   FEATURED ITEM
   ========================================== */

.pt-testimonial-item.pt-featured .pt-card {
    border: 2px solid var(--pt-primary-color, #5b2cff);
    box-shadow: 0 8px 30px rgba(91, 44, 255, 0.2);
}

.pt-testimonial-item.pt-featured .pt-card::before {
    content: '★ Featured';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--pt-primary-color, #5b2cff);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .pt-grid.pt-columns-4,
    .pt-grid.pt-columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pt-layout-masonry .pt-grid {
        column-count: 2;
    }
    
}

@media (max-width: 768px) {
    .pt-grid.pt-columns-2,
    .pt-grid.pt-columns-3,
    .pt-grid.pt-columns-4,
    .pt-grid.pt-columns-5 {
        grid-template-columns: 1fr;
    }
    
    .pt-layout-masonry .pt-grid {
        column-count: 1;
    }
    
    .pt-card-list {
        flex-direction: column;
    }
    
    .pt-card-list .pt-avatar-list {
        width: 80px;
        height: 80px;
    }
    
    .pt-card-featured {
        padding: 30px 20px;
    }
    
    .pt-card-featured .pt-author-featured {
        flex-direction: column;
    }
    
    .pt-card-featured .pt-author-details {
        text-align: center;
    }
    
}

@media (max-width: 480px) {
    .pt-card {
        padding: 20px;
    }
    
    .pt-card-featured {
        padding: 25px 15px;
        min-height: 300px;
    }
    
    .pt-card-featured .pt-text-featured {
        font-size: 16px;
    }
}

/* ==========================================
   SLICK SLIDER CUSTOMIZATION
   ========================================== */

/* Container */
.pt-layout-carousel {
    position: relative;
    padding: 0 60px;
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
}

/* Carousel Items Container */
.pt-layout-carousel .pt-carousel-items {
    margin: 0;
    padding: 0;
}

/* Individual Slide */
.pt-layout-carousel .slick-slide {
    padding: 0 10px; /* 20px gap between cards */
    box-sizing: border-box;
    height: auto;
    outline: none;
}

.pt-layout-carousel .slick-slide > div {
    height: 100%;
}

.pt-layout-carousel .pt-testimonial-item {
    height: 100%;
    display: flex;
}

.pt-layout-carousel .pt-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Slick Track - Ensures proper alignment */
.pt-layout-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
}

.pt-layout-carousel .slick-list {
    margin: 0 -10px; /* Compensate slide padding */
    padding: 20px 0 !important; /* Vertical padding for shadows */
}

/* ==========================================
   ARROWS (Navigation)
   ========================================== */

.pt-layout-carousel .slick-arrow {
    position: static;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pt-primary-color, #5b2cff);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(91, 44, 255, 0.3);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pt-layout-carousel .slick-arrow:hover {
    background: var(--pt-secondary-color, #7c4dff);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(91, 44, 255, 0.4);
}

.pt-layout-carousel .slick-arrow:focus {
    outline: 2px solid var(--pt-primary-color, #5b2cff);
    outline-offset: 3px;
}

.pt-layout-carousel .slick-arrow.slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pt-layout-carousel .slick-arrow svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* ==========================================
   DOTS (Pagination)
   ========================================== */

.pt-layout-carousel .slick-dots {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}

.pt-layout-carousel .slick-dots li {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.pt-layout-carousel .slick-dots li button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    line-height: 0;
    text-indent: -9999px;
}

.pt-layout-carousel .slick-dots li button:hover {
    background: var(--pt-secondary-color, #7c4dff);
}

.pt-layout-carousel .slick-dots li.slick-active button {
    background: var(--pt-primary-color, #5b2cff);
    width: 32px;
    border-radius: 6px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1024px) {
    .pt-layout-carousel {
        padding: 0 50px;
    }
    
    .pt-layout-carousel .slick-arrow {
        width: 42px;
        height: 42px;
    }
    
    .pt-layout-carousel .slick-arrow svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .pt-layout-carousel {
        padding: 0 15px;
    }
    
    .pt-layout-carousel .slick-arrow {
        width: 38px;
        height: 38px;
    }
    
    .pt-layout-carousel .slick-arrow svg {
        width: 20px;
        height: 20px;
    }
    
}

@media (max-width: 480px) {
    .pt-layout-carousel {
        padding: 0;
    }
    
    /* Hide arrows on mobile, dots only */
    .pt-layout-carousel .slick-arrow {
        display: none !important;
    }
