/* Lusaka Eye Hospital - Specialists & Medical Team Section
   Design Language: LEH Portal Design System (Slate-50, Blue-600, rounded-2xl, Inter)
*/

.specialists-section {
    padding: 5.5rem 0 6rem 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.specialists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .specialists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1200px) {
    .specialists-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
    }
}

/* Specialist Card */
.specialist-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.specialist-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 36px -8px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

/* Photo Frame & Status Indicator */
.specialist-photo-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    background-color: #f1f5f9;
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .specialist-photo-wrap {
        height: 300px;
    }
}

.specialist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.specialist-card:hover .specialist-photo {
    transform: scale(1.06);
}

/* Subtle Gradient Shadow on Photo Bottom */
.specialist-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(15, 23, 42, 0.45) 100%);
    pointer-events: none;
}

/* Availability Pill */
.specialist-status-badge {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    font-size: 0.725rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.status-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    position: relative;
}

.status-dot-pulse::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* Specialist Details */
.specialist-info {
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.specialist-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 0.25rem;
    letter-spacing: -0.015em;
}

.specialist-title {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.specialist-creds {
    font-size: 0.775rem;
    color: var(--text-light);
    font-weight: 500;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
    margin-bottom: 1rem;
}

.specialist-focus-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.4rem;
    flex-grow: 1;
}

.focus-tag {
    font-size: 0.725rem;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

/* Book Appointment Action Button */
.btn-book-specialist {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-book-specialist i {
    font-size: 1.05rem;
}

.btn-book-specialist:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-book-specialist:active {
    transform: translateY(0);
}

/* Pulse animation on appointment form when triggered from doctor card */
@keyframes formTargetPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
        border-color: #2563eb;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.2);
        border-color: #2563eb;
    }
    100% {
        box-shadow: var(--shadow-sm);
        border-color: var(--border-color);
    }
}

.appointment-card.highlight-target {
    animation: formTargetPulse 2s ease-out;
}
