/* Testimonials Premium Styles - Matches Galleries Design */

/* Testimonials Grid */
.mgwpp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Testimonial Card */
.mgwpp-testimonial-card {
    background: var(--mg-bg-card);
    border: 1px solid var(--mg-border);
    border-radius: var(--mg-radius-md);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    backdrop-filter: blur(10px);
}

.mgwpp-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--mg-border), transparent, var(--mg-border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: 0.5s;
}

.mgwpp-testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--mg-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px var(--mg-primary-glow);
}

body.mgwpp-dark-mode .mgwpp-testimonial-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--mg-primary-glow);
}

.mgwpp-testimonial-card:hover::before {
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
}

/* Card Header with Avatar */
.mgwpp-testimonial-card .mgwpp-card-header {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1), rgba(0, 136, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.mgwpp-dark-mode .mgwpp-testimonial-card .mgwpp-card-header {
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.2), rgba(0, 242, 255, 0.2));
}

.mgwpp-testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--mg-primary);
    box-shadow: 0 0 20px var(--mg-primary-glow);
    transition: transform 0.4s;
    z-index: 1;
}

.mgwpp-testimonial-card:hover .mgwpp-testimonial-avatar {
    transform: scale(1.1);
}

.mgwpp-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mgwpp-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.mgwpp-avatar-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #fff;
}

/* Card Overlay */
.mgwpp-testimonial-card .mgwpp-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(10, 10, 20, 0.6), rgba(0,0,0,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s;
    backdrop-filter: blur(8px);
    z-index: 3;
}

.mgwpp-testimonial-card:hover .mgwpp-card-overlay {
    opacity: 1;
}

/* Card Body */
.mgwpp-testimonial-card .mgwpp-card-body {
    padding: 24px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.05));
    text-align: center;
}

body.mgwpp-dark-mode .mgwpp-testimonial-card .mgwpp-card-body {
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
}

/* Quote Icon */
.mgwpp-testimonial-quote {
    margin-bottom: 15px;
}

.mgwpp-testimonial-quote .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--mg-primary);
    opacity: 0.5;
    transform: rotate(180deg);
}

/* Content */
.mgwpp-testimonial-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mg-text-main);
    margin-bottom: 20px;
    font-style: italic;
    min-height: 80px;
}

/* Rating */
.mgwpp-testimonial-rating {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.mgwpp-testimonial-rating .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.mgwpp-testimonial-rating .dashicons-star-filled {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.mgwpp-testimonial-rating .dashicons-star-empty {
    color: var(--mg-border);
}

/* Author Info */
.mgwpp-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 15px;
    border-top: 1px dashed var(--mg-border);
}

.mgwpp-author-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--mg-text-main);
}

.mgwpp-author-position {
    font-size: 13px;
    color: var(--mg-primary);
    font-weight: 500;
}

/* Empty State */
.mgwpp-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--mg-bg-card);
    border: 2px dashed var(--mg-border);
    border-radius: var(--mg-radius-lg);
    margin: 40px 0;
}

.mgwpp-empty-icon {
    margin-bottom: 25px;
}

.mgwpp-empty-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--mg-primary);
    opacity: 0.6;
}

.mgwpp-empty-state h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--mg-text-main);
    margin-bottom: 10px;
}

.mgwpp-empty-state p {
    font-size: 16px;
    color: var(--mg-text-muted);
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 768px) {
    .mgwpp-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mgwpp-testimonial-card {
    animation: fadeInUp 0.5s ease-out backwards;
}

.mgwpp-testimonial-card:nth-child(1) { animation-delay: 0.05s; }
.mgwpp-testimonial-card:nth-child(2) { animation-delay: 0.1s; }
.mgwpp-testimonial-card:nth-child(3) { animation-delay: 0.15s; }
.mgwpp-testimonial-card:nth-child(4) { animation-delay: 0.2s; }
.mgwpp-testimonial-card:nth-child(5) { animation-delay: 0.25s; }
.mgwpp-testimonial-card:nth-child(6) { animation-delay: 0.3s; }
