/* ==================== DOCTOR CARD - SHARED STYLES ==================== */
/* Common styles for doctor cards across all pages */

/* ==================== DOCTOR CARD (List/Grid View) ==================== */
.doctor-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.doctor-card:hover {
    border-color: var(--db-primary, #23458b);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Card Image */
.doctor-card-image,
.doctor-photo-section,
.photo-wrapper {
    height: 280px;
    background: var(--db-primary, #23458b);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.doctor-card-image img,
.doctor-photo-section img,
.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}
.doctor-card:hover .doctor-card-image img,
.doctor-summary-card:hover .doctor-photo-section img,
.doctor-profile-card:hover .photo-wrapper img {
    transform: scale(1.05);
}
.doctor-card-image .placeholder-icon,
.doctor-photo-section .placeholder-icon,
.photo-wrapper .placeholder-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.25);
}

/* Card Content Section */
.doctor-card-content,
.doctor-details-section,
.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
}

/* Doctor Name */
.doctor-name,
.doctor-name-title,
.doctor-card-content h5,
.card-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--db-primary, #23458b);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Position/Title */
.doctor-position,
.doctor-specialty,
.position {
    color: var(--db-secondary, #ca2027);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 18px;
}

/* Department & Info Items with Icon Background */
.doctor-department,
.doctor-info-item,
.doctor-education,
.contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
}
.doctor-department:last-child,
.doctor-info-item:last-child,
.contact-row:last-child {
    margin-bottom: 0;
}

/* Icon Style - Consistent across all */
.doctor-department i,
.doctor-info-item i,
.doctor-education i,
.contact-row i {
    width: 32px;
    height: 32px;
    background: rgba(35, 69, 139, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--db-primary, #23458b);
    font-size: 13px;
    flex-shrink: 0;
}
.doctor-education i {
    background: rgba(202, 32, 39, 0.1);
    color: var(--db-secondary, #ca2027);
}

/* Department Badge (inline style) */
.department-badge,
.department {
    background: rgba(35, 69, 139, 0.1);
    color: var(--db-primary, #23458b);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* Specialties/Tags */
.doctor-specialties,
.card-specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    min-height: 26px;
    flex: 1;
}
.specialty-badge,
.spec-badge {
    background: rgba(35, 69, 139, 0.1);
    color: var(--db-primary, #23458b);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    height: fit-content;
}

/* Contact Info Section */
.card-contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f1f3f4;
}

/* Card Actions */
.doctor-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
}
.btn-book {
    flex: 1;
    background: var(--db-primary, #23458b);
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-book:hover {
    background: var(--db-primary-dark, #1a3366);
    color: white;
    transform: translateY(-2px);
}
.btn-profile {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(35, 69, 139, 0.1);
    color: var(--db-primary, #23458b);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
}
.btn-profile:hover {
    background: var(--db-primary, #23458b);
    color: white;
}

/* Fee Card */
.fee-card {
    background: linear-gradient(135deg, rgba(35, 69, 139, 0.08), rgba(35, 69, 139, 0.15));
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(35, 69, 139, 0.15);
}
.fee-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.fee-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--db-primary, #23458b);
}

/* ==================== DOCTOR SUMMARY CARD (Sidebar) ==================== */
.doctor-summary-card,
.doctor-profile-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #27ae60;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.status-badge i {
    font-size: 6px;
    width: auto;
    height: auto;
    background: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991px) {
    .doctor-card-image,
    .doctor-photo-section,
    .photo-wrapper {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .doctor-card {
        flex-direction: row;
        height: auto;
    }
    .doctor-card-image,
    .doctor-photo-section {
        width: 120px;
        min-width: 120px;
        height: auto;
        min-height: 160px;
    }
    .doctor-card-image .placeholder-icon,
    .doctor-photo-section .placeholder-icon,
    .photo-wrapper .placeholder-icon {
        font-size: 2.5rem;
    }
    .doctor-card-content,
    .doctor-details-section,
    .card-body {
        padding: 15px;
    }
    .doctor-name,
    .doctor-name-title,
    .doctor-card-content h5,
    .card-body h2 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .doctor-position,
    .doctor-specialty,
    .position {
        font-size: 12px;
        margin-bottom: 8px;
    }
    .doctor-department i,
    .doctor-info-item i,
    .doctor-education i,
    .contact-row i {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .doctor-department,
    .doctor-info-item,
    .doctor-education,
    .contact-row {
        font-size: 12px;
        gap: 8px;
        margin-bottom: 6px;
    }
    .doctor-specialties,
    .card-specializations {
        display: none;
    }
    .doctor-card-actions {
        padding-top: 10px;
    }
    .btn-book {
        padding: 10px 14px;
        font-size: 12px;
    }
    .btn-profile {
        width: 38px;
        height: 38px;
    }
    
    /* Summary Card Mobile */
    .doctor-summary-card,
    .doctor-profile-card {
        display: flex;
        flex-wrap: wrap;
    }
    .doctor-summary-card .doctor-photo-section,
    .doctor-profile-card .photo-wrapper {
        width: 100px;
        min-width: 100px;
        height: auto;
        min-height: 130px;
        border-radius: 20px 0 0 0;
    }
    .doctor-summary-card .doctor-details-section,
    .doctor-profile-card .card-body {
        flex: 1;
        padding: 12px;
    }
    .fee-card {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
    }
    .fee-amount {
        font-size: 1.2rem;
    }
}

@media (max-width: 575px) {
    .doctor-card-image,
    .doctor-photo-section {
        width: 100px;
        min-width: 100px;
        min-height: 140px;
    }
    .doctor-card-content,
    .doctor-details-section {
        padding: 12px;
    }
}
