/* ============================================
   Sales Agent Card - Professional Design
   نفس التصميم من event-auction-items
   ============================================ */

.mec-sales-agent {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.mec-sales-agent-title {
    font-size: 20px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-weight: 700;
    padding-bottom: 0;
    direction: rtl;
    text-align: right;
}

.mec-sales-agent-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Agent Header with Avatar */
.mec-sales-agent-header {
    display: flex;
    align-items: center;
    gap: 16px;
    direction: rtl;
    margin-bottom: 16px;
}

.mec-sales-agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.mec-sales-agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 50% !important;
    clip-path: circle(50%);
}

.mec-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #6b7280;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
    z-index: 2;
    border-radius: 50% !important;
}

.mec-avatar-icon {
    font-size: 28px;
    opacity: 0.7;
    display: none; /* Hide icon when using initials */
}

.mec-sales-agent-name-wrapper {
    flex: 1;
    min-width: 0;
}

.mec-sales-agent-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.4;
    direction: rtl;
    text-align: right;
}

.mec-sales-agent-name-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.mec-sales-agent-name-link:hover {
    color: #0073aa;
}

/* Followers Count */
.mec-sales-agent-followers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.mec-followers-icon {
    font-size: 14px;
    opacity: 0.7;
}

.mec-followers-count {
    color: #666;
    font-weight: 400;
}

/* Divider */
.mec-sales-agent-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

/* Contact List */
.mec-sales-agent-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mec-sales-agent-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    direction: rtl;
}

.mec-contact-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.mec-contact-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mec-contact-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    direction: rtl;
    text-align: right;
}

.mec-contact-link {
    font-size: 15px;
    font-weight: 500;
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
    direction: rtl;
    text-align: right;
}

.mec-contact-link:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .mec-sales-agent-title {
        font-size: 18px;
    }

    .mec-sales-agent-name {
        font-size: 18px;
    }

    .mec-sales-agent-card {
        padding: 16px;
    }

    .mec-sales-agent-header {
        gap: 12px;
    }

    .mec-sales-agent-avatar {
        width: 48px;
        height: 48px;
    }

    .mec-avatar-icon {
        font-size: 24px;
    }
}

/* Follow Agent Button */
.mec-sales-agent-follow-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.mec-follow-agent-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
}

.mec-follow-agent-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.mec-follow-agent-btn:active {
    transform: translateY(0);
}

.mec-follow-agent-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mec-follow-agent-btn.following {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    color: #991b1b;
}

.mec-follow-agent-btn.following:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #fca5a5;
}

.mec-follow-icon {
    font-size: 18px;
    line-height: 1;
}

.mec-follow-text {
    font-size: 15px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .mec-follow-agent-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .mec-follow-icon {
        font-size: 16px;
    }
    
    .mec-follow-text {
        font-size: 14px;
    }
}

