/* ========================================
   TESTIMONIALS PAGE - RESPONSIVE DESIGN
   ======================================== */

/* Container */
.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Section */
.testimonials-header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.testimonials-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Testimonial Card */
.testimonial-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* Header with Avatar and User Info */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #f8f9fa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.testimonial-avatar-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initial {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.testimonial-user-info {
    flex: 1;
}

.testimonial-username {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

/* Star Rating */
.testimonial-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 18px;
    line-height: 1;
}

.star-filled {
    color: #f39c12;
}

.star-empty {
    color: #dcdde1;
}

/* Content Section */
.testimonial-content {
    flex: 1;
    position: relative;
    padding-left: 10px;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 60px;
    color: #ecf0f1;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-text-wrapper {
    position: relative;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.testimonial-text-wrapper.is-collapsible {
    max-height: 200px; /* Aproximativ 5-6 rânduri */
}

.testimonial-text-wrapper.is-collapsible.expanded {
    max-height: 2000px; /* Valoare mare pentru a acomoda orice text */
}

.testimonial-text-wrapper.is-collapsible::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.testimonial-text-wrapper.is-collapsible.expanded::after {
    opacity: 0;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #34495e;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Read More/Less Button */
.testimonial-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.testimonial-toggle-btn:hover {
    color: #2980b9;
    transform: translateX(2px);
}

.testimonial-toggle-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    border-radius: 4px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.testimonial-toggle-btn[data-state="expanded"] .toggle-icon {
    transform: rotate(180deg);
}

/* Date */
.testimonial-date {
    font-size: 0.875rem;
    color: #95a5a6;
    margin-top: 15px;
    text-align: right;
    font-style: italic;
}

/* Empty State */
.testimonials-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 20px;
}

.testimonials-empty p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (max-width: 992px) {
    .testimonials-container {
        padding: 30px 15px;
    }

    .testimonials-header h1 {
        font-size: 2rem;
    }

    .testimonials-subtitle {
        font-size: 1rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    .testimonial-card {
        padding: 25px;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .testimonials-container {
        padding: 20px 15px;
    }

    .testimonials-header {
        margin-bottom: 30px;
    }

    .testimonials-header h1 {
        font-size: 1.75rem;
        margin-bottom: 10px;
    }

    .testimonials-subtitle {
        font-size: 0.95rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-header {
        gap: 12px;
    }

    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }

    .avatar-initial {
        font-size: 24px;
    }

    .testimonial-username {
        font-size: 1.1rem;
    }

    .star {
        font-size: 16px;
    }

    .quote-icon {
        font-size: 50px;
        top: -8px;
        left: -8px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-date {
        font-size: 0.8rem;
    }
}

/* ========================================
   SMALL MOBILE DEVICES
   ======================================== */

@media (max-width: 480px) {
    .testimonials-container {
        padding: 15px 10px;
    }

    .testimonials-header h1 {
        font-size: 1.5rem;
    }

    .testimonials-subtitle {
        font-size: 0.9rem;
    }

    .testimonial-card {
        padding: 18px;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .testimonial-avatar {
        width: 70px;
        height: 70px;
        align-self: center;
    }

    .testimonial-user-info {
        width: 100%;
        text-align: center;
    }

    .testimonial-rating {
        justify-content: center;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .testimonial-card:hover {
        transform: none;
    }
}