/**
 * ============================================
 * DOCTORS LIST PAGE STYLES
 * ============================================
 */

.doctors-container {
    max-width: 1200px;
    margin: 110px auto 40px;
    padding: 20px;
}

.page-header {
    padding: 2rem 0;
}

.page-header h2 {
    color: var(--color-primary);
    font-size: 2rem;
}

.page-header .lead {
    font-size: 1.1rem;
}

.section-header h3 {
    font-weight: 700;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-card {
    height: 100%;
    border: 1px solid var(--color-gray-pale);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--color-white);
    overflow: hidden;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.doctor-card-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    padding: 1.5rem;
    border-bottom: 2px solid var(--color-primary-pale);
}

.doctor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.doctor-specialization {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doctor-card-body {
    padding: 1.5rem;
}

.doctor-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.doctor-info-item i {
    color: var(--color-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.doctor-info-item .info-label {
    font-weight: 600;
    color: var(--color-gray);
    min-width: 90px;
}

.doctor-info-item .info-value {
    color: var(--color-dark);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: #fbbf24;
    font-size: 1.1rem;
}

.rating-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark);
}

.rating-source {
    font-size: 0.75rem;
    color: var(--color-gray);
    background: var(--color-gray-bg);
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-base);
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-info-light);
    color: var(--color-info-dark);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-external-link {
    width: 100%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-base);
    font-weight: 600;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-external-link:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.disclaimer-box {
    border-left: 5px solid var(--color-warning);
    background: var(--color-warning-light);
    margin: 3rem 0;
}

.disclaimer-box h5 {
    color: var(--color-warning-dark);
    font-weight: 700;
}

.disclaimer-box ul {
    padding-left: 1.5rem;
}

.disclaimer-box li {
    margin-bottom: 0.5rem;
}

.specialists-section:last-of-type .doctor-card-header {
    background: linear-gradient(135deg, #fee2e2 0%, #ffffff 100%);
    border-bottom-color: #fecaca;
}

.specialists-section:last-of-type .doctor-specialization {
    color: var(--color-danger-dark);
}

.specialists-section:last-of-type .doctor-card:hover {
    border-color: var(--color-danger);
}

@media (max-width: 768px) {
    .doctors-container {
        margin: 80px 15px 20px;
        padding: 15px;
    }
    .page-header h2 {
        font-size: 1.5rem;
    }
    .section-header h3 {
        font-size: 1.35rem;
    }
    .doctor-name {
        font-size: 1.1rem;
    }
    .doctor-card-header, .doctor-card-body {
        padding: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doctor-card {
    animation: fadeInUp 0.5s ease-out;
}

.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; }

/* Team Member Image Styling */
.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Fallback if image doesn't load */
.team-member-photo img {
    display: block;
}

.team-member-photo i {
    display: none;
}

/* Show icon only if image fails to load */
.team-member-photo:has(img[src=""]) i,
.team-member-photo:has(img:not([src])) i {
    display: block;
}

/* ===== TEAM MEMBER PHOTOS ===== */

.team-member-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* Real image styling */
.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Icon fallback (when no image) */
.team-member-photo i {
    font-size: 4rem;
    color: var(--primary);
}

/* Hide icon when image exists */
.team-member-photo:has(img) i {
    display: none;
}

/* Smooth hover effect */
.team-member-photo img {
    transition: transform 0.3s ease;
}

.team-card:hover .team-member-photo img {
    transform: scale(1.05);
}

/* Loading state */
.member-img[src=""],
.member-img:not([src]) {
    display: none;
}

/* Ensure icon shows if image fails */
.team-member-photo img + i {
    display: none;
}