/*
 * SMPN Testimonial Plugin Styles
 * Premium and Modern Design
 */

.smpn-testimonials-container {
    margin: 0;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.smpn-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.smpn-testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0,0,0,0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.smpn-testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smpn-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0,0,0,0.05);
}

.smpn-testimonial-card:hover::before {
    opacity: 1;
}

.smpn-t-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.smpn-t-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-right: 1rem;
}

.smpn-t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smpn-t-meta {
    flex-grow: 1;
}

.smpn-t-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.smpn-t-role-class {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.smpn-t-quote-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    color: rgba(59, 130, 246, 0.15);
}

.smpn-t-quote-icon svg {
    width: 100%;
    height: 100%;
}

.smpn-t-content {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
    flex-grow: 1;
}

.smpn-t-content p {
    margin-bottom: 0;
}

.smpn-t-content p:not(:last-child) {
    margin-bottom: 1rem;
}

/* Pagination Styles */
.smpn-testimonials-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.smpn-testimonials-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.smpn-testimonials-pagination .page-numbers:hover {
    background: #f3f4f6;
    color: #1f2937;
    transform: translateY(-2px);
}

.smpn-testimonials-pagination .page-numbers.current {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

/* Specific view adjustments */
.smpn-view-latest .smpn-testimonials-grid {
    /* Limit to 3 columns max for latest view */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 768px) {
    .smpn-testimonials-grid {
        grid-template-columns: 1fr;
    }
}
