/* Simple Testimonials Styles with Enhanced Design */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Simple testimonial card styles */
.testimonial-card {
    background: white;
    border: 2px solid #0066cc;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,102,204,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,102,204,0.2);
}

.testimonial-card .testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-card .stars {
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-card .testimonial-date {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.testimonial-card .text {
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card .avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
}

.testimonial-card .info .name {
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 3px;
}

.testimonial-card .info .position {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.testimonial-card .info .verified {
    background: #10b981;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 5px;
}

.testimonial-card .info .id {
    color: #0066cc;
    font-family: monospace;
    font-size: 12px;
}

.testimonial-card.enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.12);
    overflow: hidden;
}

.testimonial-card.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066cc 0%, #004499 100%);
}

.testimonial-card.enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.18);
    border-color: #0066cc;
}

.testimonial-card.enhanced .stars {
    color: #ffd700;
    font-size: 20px;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.testimonial-card.enhanced .text {
    font-style: italic;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 16px;
    position: relative;
}

.testimonial-card.enhanced .text::before {
    content: '"';
    font-size: 2.5rem;
    color: #0066cc;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

.testimonial-card.enhanced .avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0066cc, #004499);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.testimonial-card.enhanced .info .name {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
    font-size: 16px;
}

.testimonial-card.enhanced .info .position {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.testimonial-card.enhanced .info .verified {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-card.enhanced .info .id {
    color: #0066cc;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 500;
}

.testimonial-card.fallback {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e0;
    opacity: 0.7;
}

.testimonial-card.fallback .stars {
    color: #a0aec0;
}

.testimonial-card.fallback .text {
    color: #718096;
}

.testimonial-card.fallback .avatar {
    background: linear-gradient(135deg, #a0aec0, #718096);
}

.testimonial-card.fallback .info .verified {
    background: #a0aec0;
}

.testimonial-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0066cc 0%, #004499 50%, #0066cc 100%);
}

.testimonial-card.premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.testimonial-rating-section {
    margin-bottom: 1.5rem;
}

.testimonial-rating.black-stars {
    font-size: 1.5rem;
    color: #000000;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e293b;
    font-style: italic;
    margin: 0;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #0066cc;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: -15px;
    font-family: serif;
}

.testimonial-author-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.author-position {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.author-status {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.testimonial-id {
    font-size: 0.85rem;
    color: #0066cc;
    font-weight: 500;
    font-family: 'Courier New', monospace;
}

.testimonial-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation for testimonial cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-section .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .testimonials-section .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 1.5rem 0;
        padding: 0 1rem;
    }
    
    .testimonial-card.premium {
        padding: 1.5rem;
    }
    
    .testimonial-rating.black-stars {
        font-size: 1.3rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .testimonial-label {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    /* Statistics responsive */
    .testimonials-stats {
        flex-direction: column;
        gap: 2rem;
        margin-top: 3rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .testimonials-stats {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Special effects for high ratings */
.testimonial-card.premium[data-rating="9"] .testimonial-rating.black-stars,
.testimonial-card.premium[data-rating="8"] .testimonial-rating.black-stars {
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 
    }
    50% { 
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 215, 0, 0.5); 
    }
}
