/**
 * Top Rated Doctors Plugin Styles
 * Uses MyListing theme global styles for consistency
 */

.top-rated-doctors-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
}

.doctor-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 1px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    position: relative;
}

.doctor-card:first-child {
    border-radius: 8px 8px 0 0;
}

.doctor-card:last-child {
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
}

.doctor-card:only-child {
    border-radius: 8px;
}

.doctor-card:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Rank Number */
.doctor-rank {
    flex-shrink: 0;
    margin-right: 16px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent, #007bff);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    line-height: 1;
}

/* Doctor Information */
.doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
    line-height: 1.3;
    word-wrap: break-word;
}

.doctor-specialty {
    font-size: 14px;
    color: #666666;
    line-height: 1.2;
}

/* Rating Section */
.doctor-rating {
    flex-shrink: 0;
    text-align: right;
    margin-left: 16px;
}

.stars-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 4px;
    gap: 2px;
}

.star-icon {
    font-size: 16px;
    line-height: 1;
    font-style: normal;
}

.star-full {
    color: #ffc107;
}

.star-half {
    color: #ffc107;
    opacity: 0.6;
}

.star-empty {
    color: #e4e5e9;
}

.rating-number {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin-left: 8px;
}

.reviews-count {
    font-size: 12px;
    color: #8c98a4;
    line-height: 1.2;
}

/* No doctors found message */
.no-doctors-found {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

/* Responsive Design */
@media (max-width: 480px) {
    .doctor-card {
        padding: 14px 16px;
    }
    
    .doctor-rank {
        margin-right: 12px;
    }
    
    .rank-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .doctor-name {
        font-size: 15px;
    }
    
    .doctor-specialty {
        font-size: 13px;
    }
    
    .doctor-rating {
        margin-left: 12px;
    }
    
    .star-icon {
        font-size: 14px;
    }
    
    .rating-number {
        font-size: 15px;
    }
    
    .reviews-count {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .top-rated-doctors-container {
        margin: 0 -10px;
    }
    
    .doctor-card {
        padding: 12px 14px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    
    .doctor-card:first-child {
        border-radius: 0;
    }
    
    .doctor-card:last-child {
        border-radius: 0;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-card {
    animation: fadeInUp 0.3s ease forwards;
}

.doctor-card:nth-child(1) { animation-delay: 0.1s; }
.doctor-card:nth-child(2) { animation-delay: 0.2s; }
.doctor-card:nth-child(3) { animation-delay: 0.3s; }
.doctor-card:nth-child(4) { animation-delay: 0.4s; }
.doctor-card:nth-child(5) { animation-delay: 0.5s; }
.doctor-card:nth-child(6) { animation-delay: 0.6s; }
.doctor-card:nth-child(7) { animation-delay: 0.7s; }
.doctor-card:nth-child(8) { animation-delay: 0.8s; }
.doctor-card:nth-child(9) { animation-delay: 0.9s; }
.doctor-card:nth-child(10) { animation-delay: 1.0s; }
