/* IMC Doctors Reviews Styles */

/* Container principal */
.imc-doctors-reviews {
    max-width: 100%;
    margin: 0 auto;
}
.reviews-header{
    text-align:center;
}
/* Fix pentru .review-content - previne ieșirea din padding */
.imc-doctors-reviews .review-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.imc-doctors-reviews .review-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Animații smooth */
.imc-doctors-reviews .doctor-review-item {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.imc-doctors-reviews .doctor-review-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

/* Featured Review Styles - Layout cu 2 coloane */
.imc-featured-review {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.featured-review-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.featured-review-left {
    flex: 0 0 150px;
    max-width: 150px;
}

.featured-doctor-photo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.featured-review-right {
    flex: 1;
    min-width: 0; /* Permite flex item să se micșoreze */
}

.featured-review-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.featured-doctor-info {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.featured-doctor-name {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.featured-doctor-details {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Responsive pentru featured review */
@media (max-width: 768px) {
    .featured-review-container {
        flex-direction: column;
        text-align: center;
    }
    
    .featured-review-left {
        flex: none;
        max-width: 120px;
        margin: 0 auto 15px auto;
    }
    
    .featured-review-right {
        text-align: left;
    }
}

/* Îmbunătățiri generale pentru recenzii - Layout cu 2 coloane pe desktop */
.imc-doctors-reviews .doctor-review-item {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    gap: 25px;
}

/* Coloana stângă - Doctor Info (35%) */
.imc-doctors-reviews .doctor-info {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 20px;
    border-right: 1px solid #eee;
}

.imc-doctors-reviews .doctor-photo {
    margin-bottom: 15px;
}

.imc-doctors-reviews .doctor-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.imc-doctors-reviews .doctor-details {
    width: 100%;
}

.imc-doctors-reviews .doctor-name {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.2;
}

.imc-doctors-reviews .doctor-verified {
    font-size: 14px;
    color: #27ae60;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.imc-doctors-reviews .doctor-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.imc-doctors-reviews .meta-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 14px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

.imc-doctors-reviews .meta-label {
    font-weight: bold;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.imc-doctors-reviews .meta-value {
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

/* Coloana dreaptă - Review Content (65%) */
.imc-doctors-reviews .review-content {
    flex: 1;
    min-width: 0;
}

.imc-doctors-reviews .review-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.imc-doctors-reviews .review-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.imc-doctors-reviews .show-more-btn {
    background: none;
    border: none;
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 0;
    margin-top: 5px;
}

.imc-doctors-reviews .show-more-btn:hover {
    color: #2980b9;
}

.imc-doctors-reviews .review-highlights {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.imc-doctors-reviews .highlights-label {
    font-weight: bold;
    color: #666;
    margin-right: 10px;
}

.imc-doctors-reviews .highlights-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
}

.imc-doctors-reviews .highlight-tag {
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Load more button */
.imc-doctors-reviews .load-more-container {
    text-align: center;
    margin-top: 20px;
}

.imc-doctors-reviews .load-more-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.imc-doctors-reviews .load-more-btn:hover {
    background: #2980b9;
}

/* Hidden reviews */
.imc-doctors-reviews .load-more-hidden {
    display: none;
}

/* Responsive - Mobil */
@media (max-width: 768px) {
    /* Layout vertical pe mobil */
    .imc-doctors-reviews .doctor-review-item {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .imc-doctors-reviews .doctor-info {
        flex: none;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }
    
    .imc-doctors-reviews .doctor-photo img {
        width: 80px;
        height: 80px;
    }
    
    .imc-doctors-reviews .doctor-name {
        font-size: 18px;
    }
    
    /* Afișare îmbunătățită pentru specialty și medical institution pe mobil */
    .imc-doctors-reviews .doctor-meta {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .imc-doctors-reviews .meta-item {
        flex: 1;
        min-width: 140px;
        padding: 10px 8px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border: 1px solid #dee2e6;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .imc-doctors-reviews .meta-label {
        font-size: 11px;
        color: #6c757d;
        margin-bottom: 6px;
    }
    
    .imc-doctors-reviews .meta-value {
        font-size: 13px;
        font-weight: 600;
        color: #495057;
        line-height: 1.2;
    }
    
    /* Dacă sunt mai mult de 2 meta items, le afișăm pe 2 rânduri */
    .imc-doctors-reviews .doctor-meta:has(.meta-item:nth-child(3)) {
        justify-content: space-between;
    }
    
    .imc-doctors-reviews .doctor-meta:has(.meta-item:nth-child(3)) .meta-item {
        flex: 0 0 calc(50% - 5px);
        min-width: auto;
    }
}

/* Responsive - Tablete */
@media (min-width: 769px) and (max-width: 1024px) {
    .imc-doctors-reviews .doctor-info {
        flex: 0 0 40%;
    }
    
    .imc-doctors-reviews .doctor-photo img {
        width: 90px;
        height: 90px;
    }
    
    .imc-doctors-reviews .doctor-name {
        font-size: 18px;
    }
    
    .imc-doctors-reviews .meta-item {
        padding: 6px;
    }
    
    .imc-doctors-reviews .meta-label {
        font-size: 11px;
    }
    
    .imc-doctors-reviews .meta-value {
        font-size: 13px;
    }
}